View Javadoc
1   package uk.ac.ebi.intenz.webapp.helper;
2   
3   import uk.ac.ebi.intenz.webapp.IntEnzUtilities;
4   import uk.ac.ebi.rhea.domain.Reaction;
5   import uk.ac.ebi.xchars.SpecialCharacters;
6   import uk.ac.ebi.xchars.domain.EncodingType;
7   
8   
9   /**
10   * This class ...
11   *
12   * @author Michael Darsow
13   * @version $Revision: 1.2 $ $Date: 2009/04/16 15:02:01 $
14   * @deprecated to hell with this and EnzymeEntryHelper
15   */
16  public class EnzymeReactionHelper {
17  
18  //  private static final Logger LOGGER = Logger.getLogger(EnzymeClassHelper.class);
19  
20    private EnzymeReactionHelper() {
21    }
22  
23    public static String textualRepresentationToHTML(Reaction reaction,
24            SpecialCharacters encoding, EncodingType encodingType) {
25      return encoding.xml2Display(
26              IntEnzUtilities.cleanInternalLinks(reaction.getTextualRepresentation(), false),
27              encodingType);
28    }
29  
30  }