public class LinearNode extends Object
Constructor and Description |
---|
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
|
LinearNode(String list,
String minor,
String major,
String language,
String annotationType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAnnotationType()
Gets the annotationType
|
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
|
int |
hashCode() |
void |
setAnnotationType(String annotationType)
Sets the annotaionType
|
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
|
public LinearNode(String list, String minor, String major, String language, String annotationType)
list
- name of the listminor
- minor typemajor
- major typelanguage
- language featureannotationType
- the annotation type that should be used for annotating mentions of
entries from the listpublic 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 parsedInvalidFormatException
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 getAnnotationType()
public void setAnnotationType(String annotationType)
annotationType
-