|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.creole.gazetteer.LinearNode
Linear node specifies an entry of the type : list:major:minor:language
Field Summary | |
private String |
language
the languages member from the node |
private String |
list
the gazetteer list from the node |
private String |
major
the major type from the node |
private String |
minor
the minor type from the node |
Constructor Summary | |
LinearNode(String node)
Parses and create a linear node from a string |
|
LinearNode(String aList,
String aMajor,
String aMinor,
String aLanguage)
Constructs a linear node given its elements |
Method Summary | |
boolean |
equals(Object o)
Checks this node vs another one for equality. |
String |
getLanguage()
Gets the language of the node (the language is optional) |
String |
getList()
Get the gazetteer list filename from the node |
String |
getMajorType()
Gets the major type |
String |
getMinorType()
Gets the minor type |
void |
setLanguage(String aLanguage)
Sets the language of the node |
void |
setList(String aList)
Sets the gazetteer list filename for the node |
void |
setMajorType(String majorType)
Sets the major type |
void |
setMinorType(String minorType)
Sets the minor type |
String |
toString()
Gets the string representation of this node |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private String list
private String minor
private String major
private String language
Constructor Detail |
public LinearNode(String aList, String aMajor, String aMinor, String aLanguage)
aList
- the gazetteer list file nameaMajor
- the major typeaMinor
- the minor typeaLanguage
- the language(s)public LinearNode(String node) throws InvalidFormatException
node
- the linear node to be parsed
InvalidFormatException
Method Detail |
public String getList()
public void setList(String aList)
aList
- the gazetteer list filenamepublic String getLanguage()
public void setLanguage(String aLanguage)
aLanguage
- the language of the nodepublic String getMinorType()
public void setMinorType(String minorType)
public String getMajorType()
public void setMajorType(String majorType)
majorType
- the major typepublic String toString()
public boolean equals(Object o)
o
- another node
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |