com.simonstl.ents
Class EntRules
java.lang.Object
|
+--com.simonstl.ents.EntRules
- Direct Known Subclasses:
- XHTMLRules
- public class EntRules
- extends java.lang.Object
This class stores a set of rules, making it easy to define rule sets separately from the vocabulary defined for the examples.
- Version:
- 0.01 4 February 2002
- Author:
- Simon St.Laurent
Method Summary |
void |
addRule(EntRule rule)
|
void |
print()
prints the lists of rules |
java.lang.String |
resultEntRule(java.lang.String match)
Returns the numeric reference equivalent to a particular entity name. |
java.lang.String |
resultRefRule(java.lang.String match)
Returns the entity name equivalent to a particular numeric reference . |
java.lang.String |
toString()
lists both sets of rules |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
rulesByEnt
protected java.util.HashMap rulesByEnt
rulesByRef
protected java.util.HashMap rulesByRef
EntRules
public EntRules()
addRule
public void addRule(EntRule rule)
resultEntRule
public java.lang.String resultEntRule(java.lang.String match)
- Returns the numeric reference equivalent to a particular entity name.
resultRefRule
public java.lang.String resultRefRule(java.lang.String match)
- Returns the entity name equivalent to a particular numeric reference .
print
public void print()
- prints the lists of rules
toString
public java.lang.String toString()
- lists both sets of rules
- Overrides:
toString
in class java.lang.Object