public class LexItem
extends java.lang.Object
History:
Constructor and Description |
---|
LexItem()
Create a default LexItem object
|
LexItem(LexItem in,
boolean allFlag)
Create a default LexItem object, using a specified LexItem and a flag of
inheriting properties from the specified LexItem.
|
LexItem(java.lang.String term)
Create a default LexItem object, using a specified term
|
LexItem(java.lang.String term,
long cat)
Create a default LexItem object, using a specified term and category
|
LexItem(java.lang.String term,
long cat,
long infl)
Create a default LexItem object, using a specified term, category, and
inflection
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object anObject)
This override method checks the objects sequentiqlly if hascode are the
same.
|
java.lang.String |
GetDetailInformation()
Get the detail information of current LexItem.
|
int |
GetFlowComponentNumber()
Get the flow component number of current LexItem.
|
java.lang.String |
GetFlowHistory()
Get the flow history of current LexItem.
|
int |
GetFlowNumber()
Get the flow number of current LexItem.
|
java.lang.String |
GetMutateInformation()
Get the mutate information of current LexItem.
|
java.lang.String |
GetOriginalTerm()
Get the original term of current LexItem.
|
static java.lang.String |
GetResultString(LexItem in,
java.lang.String originalTerm,
boolean mutateFlag,
int caseFlag,
boolean showCategoryStrFlag,
boolean showInflectionStrFlag,
boolean filterInputFlag,
java.lang.String separator)
Get the string representation of the transformation results.
|
Category |
GetSourceCategory()
Get the source category of current LexItem.
|
Gender |
GetSourceGender()
Get the source gender of current LexItem.
|
Inflection |
GetSourceInflection()
Get the source inflection of current LexItem.
|
java.lang.String |
GetSourceTerm()
Get the source term of current LexItem.
|
long |
GetTag()
Get the tag information of current LexItem.
|
Category |
GetTargetCategory()
Get the target category of current LexItem.
|
Gender |
GetTargetGender()
Get the target gender of current LexItem.
|
Inflection |
GetTargetInflection()
Get the target inflection of current LexItem.
|
java.lang.String |
GetTargetTerm()
Get the target term of current LexItem.
|
int |
hashCode()
This override method is used in hashTable to store data as key.
|
static void |
main(java.lang.String[] args)
A test driver for this class
|
void |
SetDetailInformation(java.lang.String value)
Set the detail information of current LexItem.
|
void |
SetFlowComponentNumber(int flowComponentNum)
Set the flow component number in a flow.
|
void |
SetFlowHistory(java.lang.String value)
Set the flow history of current LexItem.
|
void |
SetFlowNumber(int flowNum)
Set the flow number in pararell flows
|
void |
SetMutateInformation(java.lang.String value)
Set the mutate information of current LexItem.
|
void |
SetOriginalTerm(java.lang.String value)
Set the original term of current LexItem.
|
void |
SetSourceCategory(long value)
Set the source categeroy of current LexItem.
|
void |
SetSourceInflection(long value)
Set the source inflection of current LexItem.
|
void |
SetSourceTerm(java.lang.String value)
Set the source term of current LexItem.
|
void |
SetTag(long value)
Set the tag information of current LexItem.
|
void |
SetTargetCategory(long value)
Set the target category of current LexItem.
|
void |
SetTargetInflection(long value)
Set the target inflection of current LexItem.
|
void |
SetTargetTerm(java.lang.String value)
Set the target term of current LexItem.
|
static java.util.Vector<LexItem> |
TargetsToSources(java.util.Vector<LexItem> tars)
This method change Vector of lexItem of target (outputs from a flow
component) to Vector of LexItem of source (inputs for a flow component).
|
static LexItem |
TargetToSource(LexItem tar)
This method change a target LexItem (output from a flow component) to
a source LexItem (input for a flow component).
|
java.lang.String |
ToString()
This method returns a string of all data members of the current LexItem.
|
java.lang.String |
ToStringDetail()
This method returns a detail string representation of all data members
of the current LexItem.
|
public LexItem()
public LexItem(java.lang.String term)
term
- term of LexItermpublic LexItem(java.lang.String term, long cat)
term
- term of LexItermcat
- category in Longpublic LexItem(java.lang.String term, long cat, long infl)
term
- term of LexItermcat
- category in Long formatinfl
- inflection in Long formatpublic LexItem(LexItem in, boolean allFlag)
in
- input LexItemallFlag
- boolean flag for copying from input LexItempublic boolean equals(java.lang.Object anObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String ToString()
public java.lang.String ToStringDetail()
public static LexItem TargetToSource(LexItem tar)
tar
- an LexItem that is the output of a flow component and
to be changed as an input for next flow component.public static java.util.Vector<LexItem> TargetsToSources(java.util.Vector<LexItem> tars)
tars
- Vector of LexItem of the outputs of a flow component
and to be changed as the inputs for next flow component.public void SetOriginalTerm(java.lang.String value)
value
- string value of the original term to be set.public void SetSourceTerm(java.lang.String value)
value
- string value of the source term to be set.public void SetTargetTerm(java.lang.String value)
value
- string value of the target term to be set.public void SetSourceCategory(long value)
value
- a long integer value of the source categorypublic void SetTargetCategory(long value)
value
- a long integer value of the target categorypublic void SetSourceInflection(long value)
value
- a long integer value of the source inflectionpublic void SetTargetInflection(long value)
value
- a long integer value of the target inflectionpublic void SetDetailInformation(java.lang.String value)
value
- string value of the detail information to be set.public void SetMutateInformation(java.lang.String value)
value
- string value of the mutate information to be set.public void SetTag(long value)
value
- integer value of the tag information to be set.public void SetFlowHistory(java.lang.String value)
value
- string value of the flow history to be set.public void SetFlowNumber(int flowNum)
flowNum
- an integer value of flow numberpublic void SetFlowComponentNumber(int flowComponentNum)
flowComponentNum
- an integer value of flow ocmponent numberpublic java.lang.String GetOriginalTerm()
public java.lang.String GetSourceTerm()
public Gender GetSourceGender()
public java.lang.String GetTargetTerm()
public Category GetSourceCategory()
public Category GetTargetCategory()
public Inflection GetSourceInflection()
public Inflection GetTargetInflection()
public Gender GetTargetGender()
public java.lang.String GetFlowHistory()
public java.lang.String GetDetailInformation()
public long GetTag()
public java.lang.String GetMutateInformation()
public int GetFlowNumber()
public int GetFlowComponentNumber()
public static java.lang.String GetResultString(LexItem in, java.lang.String originalTerm, boolean mutateFlag, int caseFlag, boolean showCategoryStrFlag, boolean showInflectionStrFlag, boolean filterInputFlag, java.lang.String separator)
in
- an output LexItem of a transformationoriginalTerm
- the original input line (term)mutateFlag
- a boolean flag is used to append or not the mutate
information if the value is true or false.caseFlag
- a int flag of modifying case on the outputshowCategoryStrFlag
- a boolean flag of showing categories
in nameshowInflectionStrFlag
- a boolean flag of showing inflections
in namefilterInputFlag
- a boolean flag of filtering out addition
fields from the input line.separator
- field separator in Stringpublic static void main(java.lang.String[] args)
args
- arguments