| Modifier and Type | Method and Description |
|---|---|
static XCharsASCIITranslator |
getInstance()
Returns the sole instance of this class.
|
String |
toASCII(String text,
boolean useReactionRules)
Deprecated.
Use toAscii(String text, boolean useReactionRules, boolean useDeLineRules)
|
String |
toASCII(String text,
boolean useReactionRules,
boolean useDeLineRules)
Translates a XChars encoded string into its ASCII representation.
|
String |
toASCII(String text,
boolean useReactionRules,
boolean useDeLineRules,
boolean useGrammarRules)
Translates a XChars encoded string into its ASCII representation.
|
List |
toXCharsFormat(List texts,
boolean useReactionRules)
Just calls
toXCharsFormat(String, boolean) method for each item. |
String |
toXCharsFormat(String text,
boolean useReactionRules)
Translates a string into the
IntEnz format. |
public static XCharsASCIITranslator getInstance()
public String toXCharsFormat(String text, boolean useReactionRules)
IntEnz format.text - String to translate.useReactionRules - Set to true if a reaction should be translatedNullPointerException - if text is null.public List toXCharsFormat(List texts, boolean useReactionRules)
toXCharsFormat(String, boolean) method for each item.texts - List of strings.useReactionRules - Set to true if a reaction should be translatedNullPointerException - if texts is null.public String toASCII(String text, boolean useReactionRules)
text - The string to be translated.useReactionRules - true, if specific reaction rules should be applied to the translation process.NullPointerException - if texts is null.public String toASCII(String text, boolean useReactionRules, boolean useDeLineRules)
text - The string to be translated.useReactionRules - true, if specific reaction rules should be applied to the translation process.NullPointerException - if texts is null.public String toASCII(String text, boolean useReactionRules, boolean useDeLineRules, boolean useGrammarRules)
text - The string to be translated.useReactionRules - use the reaction rules?useDeLineRules - use the DE line rules?useGrammarRules - use the grammar rules?Copyright © 2013 EMBL-EBI. All rights reserved.