public class InflectionRule
extends java.lang.Object
History:
Constructor and Description |
---|
InflectionRule(java.lang.String ruleStr)
Create an object of inflection rule, using a rule String
|
Modifier and Type | Method and Description |
---|---|
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<java.lang.String,java.lang.String> |
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.
|
public InflectionRule(java.lang.String ruleStr)
ruleStr
- rule in string formatpublic void Reverse()
public boolean equals(InflectionRule rule)
rule
- a specified inflection rule object to be comapredpublic java.lang.String GetInSuffix()
public java.lang.String GetOutSuffix()
public java.util.Hashtable<java.lang.String,java.lang.String> 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)
args
- arguments