|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ebi.intenz.tools.sib.translator.XCharsASCIITranslator
public class XCharsASCIITranslator
This class translates ENZYME
data into the IntEnz
format and vice versa.
rules
package (see also: RuleGroup
).
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 translated
NullPointerException
- 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 translated
NullPointerException
- 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?
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |