|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.lvg.Trie.InflectionRule
public class InflectionRule
This class creates an object of LVG infelction rule, using a string format of a rule. The string format of a rule is described in the design document
History:
| Constructor Summary | |
|---|---|
InflectionRule(java.lang.String ruleStr)
Create an object of inflection rule, using a rule String |
|
| Method Summary | |
|---|---|
void |
AddException(java.lang.String line)
Add a specific exception to the current inflection rule object. |
boolean |
equals(InflectionRule rule)
Check if the current inflection rule object is the same as a specified inflection rule object by comparing rule strings. |
java.util.Hashtable |
GetExceptions()
Get exceptions (in a hashtable) of the current inflection rule object. |
long |
GetInCategory()
Get the input category of the current inflection rule object. |
java.lang.String |
GetInCategoryStr()
Get the string format of the input category of the current inflection rule object. |
long |
GetInInflection()
Get the input inflection of the current inflection rule object. |
java.lang.String |
GetInInflectionStr()
Get the string format of the input inflection of the current inflection rule object. |
java.lang.String |
GetInSuffix()
Get the input suffix of the current inflection rule object. |
long |
GetOutCategory()
Get the output category of the current inflection rule object. |
java.lang.String |
GetOutCategoryStr()
Get the string format of the output category of the current inflection rule object. |
long |
GetOutInflection()
Get the output inflection of the current inflection rule object. |
java.lang.String |
GetOutInflectionStr()
Get the string format of the output inflection of the current inflection rule object. |
java.lang.String |
GetOutSuffix()
Get the output suffix of the current inflection rule object. |
java.lang.String |
GetRuleStr()
Get the string representation of the current inflection rule object. |
static void |
main(java.lang.String[] args)
Test driver for this class |
void |
Reverse()
Reverse entities for inputs and outputs for a inflection rule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InflectionRule(java.lang.String ruleStr)
| Method Detail |
|---|
public void Reverse()
public boolean equals(InflectionRule rule)
rule - a specified inflection rule object to be comapred
public java.lang.String GetInSuffix()
public java.lang.String GetOutSuffix()
public java.util.Hashtable GetExceptions()
public java.lang.String GetRuleStr()
public long GetInCategory()
public java.lang.String GetInCategoryStr()
public long GetInInflection()
public java.lang.String GetInInflectionStr()
public long GetOutCategory()
public java.lang.String GetOutCategoryStr()
public long GetOutInflection()
public java.lang.String GetOutInflectionStr()
public void AddException(java.lang.String line)
line - the string representation of the specific exception
to be addedpublic static void main(java.lang.String[] args)
|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||