|
||||||||||
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.rules.UnorderedRules
public class UnorderedRules
This singleton class stores regular expression rules to be used to transform text.
Each rule consists of a regular expression pattern and a replacement string. The rules will be applied in an arbitrary order.
Method Summary | |
---|---|
String |
applyRules(String text)
Applies the rules. |
static UnorderedRules |
getInstance()
Returns the sole instance of this class. |
String |
reverseRules(String text)
Applies the reverse rules. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UnorderedRules getInstance()
public String applyRules(String text)
applyRules
in interface RuleGroup
text
- The text to be translated.
NullPointerException
- if text
is null
.public String reverseRules(String text)
reverseRules
in interface RuleGroup
text
- The text to be translated.
NullPointerException
- if text
is null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |