public class TreebankNode
extends Annotation
Modifier and Type | Field and Description |
---|---|
static int |
type |
static int |
typeIndexID |
Modifier | Constructor and Description |
---|---|
protected |
TreebankNode()
Never called.
|
|
TreebankNode(int addr,
TOP_Type type)
Internal - constructor used by generator
|
|
TreebankNode(JCas jcas) |
|
TreebankNode(JCas jcas,
int begin,
int end) |
Modifier and Type | Method and Description |
---|---|
FSArray |
getChildren()
getter for children - gets
|
TreebankNode |
getChildren(int i)
indexed getter for children - gets an indexed value -
|
int |
getHeadIndex()
getter for headIndex - gets The head index tracks the index into the word tokens which is the syntactic head of a phrase.
|
boolean |
getLeaf()
getter for leaf - gets
|
StringArray |
getNodeTags()
getter for nodeTags - gets
|
java.lang.String |
getNodeTags(int i)
indexed getter for nodeTags - gets an indexed value -
|
java.lang.String |
getNodeType()
getter for nodeType - gets
|
java.lang.String |
getNodeValue()
getter for nodeValue - gets
|
TreebankNode |
getParent()
getter for parent - gets
|
int |
getTypeIndexID() |
private void |
readObject()
Write your own initialization here
|
void |
setChildren(FSArray v)
setter for children - sets
|
void |
setChildren(int i,
TreebankNode v)
indexed setter for children - sets an indexed value -
|
void |
setHeadIndex(int v)
setter for headIndex - sets The head index tracks the index into the word tokens which is the syntactic head of a phrase.
|
void |
setLeaf(boolean v)
setter for leaf - sets
|
void |
setNodeTags(int i,
java.lang.String v)
indexed setter for nodeTags - sets an indexed value -
|
void |
setNodeTags(StringArray v)
setter for nodeTags - sets
|
void |
setNodeType(java.lang.String v)
setter for nodeType - sets
|
void |
setNodeValue(java.lang.String v)
setter for nodeValue - sets
|
void |
setParent(TreebankNode v)
setter for parent - sets
|
protected TreebankNode()
public TreebankNode(int addr, TOP_Type type)
addr
- low level Feature Structure referencetype
- the type of this Feature Structurepublic TreebankNode(JCas jcas)
jcas
- JCas to which this Feature Structure belongspublic TreebankNode(JCas jcas, int begin, int end)
jcas
- JCas to which this Feature Structure belongsbegin
- offset to the begin spot in the SofAend
- offset to the end spot in the SofApublic int getTypeIndexID()
private void readObject()
public java.lang.String getNodeType()
public void setNodeType(java.lang.String v)
v
- value to set into the featurepublic java.lang.String getNodeValue()
public void setNodeValue(java.lang.String v)
v
- value to set into the featurepublic boolean getLeaf()
public void setLeaf(boolean v)
v
- value to set into the featurepublic TreebankNode getParent()
public void setParent(TreebankNode v)
v
- value to set into the featurepublic FSArray getChildren()
public void setChildren(FSArray v)
v
- value to set into the featurepublic TreebankNode getChildren(int i)
i
- index in the array to getpublic void setChildren(int i, TreebankNode v)
i
- index in the array to setv
- value to set into the arraypublic StringArray getNodeTags()
public void setNodeTags(StringArray v)
v
- value to set into the featurepublic java.lang.String getNodeTags(int i)
i
- index in the array to getpublic void setNodeTags(int i, java.lang.String v)
i
- index in the array to setv
- value to set into the arraypublic int getHeadIndex()
public void setHeadIndex(int v)
v
- value to set into the feature