|
Lvg Java 2011 Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.lvg.Lib.LexItem
public class LexItem
This class provides the base element of LVG, LexItem. All Lvg operations, such as flow component and filter options use LexItems as units of inputs and outputs.
History:
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
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 |
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LexItem()
public LexItem(java.lang.String term)
public LexItem(java.lang.String term,
long cat)
public LexItem(java.lang.String term,
long cat,
long infl)
public LexItem(LexItem in,
boolean allFlag)
| Method Detail |
|---|
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 - Vectorpublic 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 String
public static void main(java.lang.String[] args)
|
Lvg Java 2011 Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||