DEFAULT_ZONE
Constructor and Description |
---|
DefaultRoot(Document document) |
DefaultRoot(Document document,
Bundle bundle) |
Modifier and Type | Method and Description |
---|---|
void |
addComment(java.lang.String comment)
Add comment to the sentence.
|
void |
addMultiword(java.lang.String multiword)
Adds multiword to the sentence.
|
Root |
copyTree() |
Node |
createChild()
Creates new child of the root and returns it.
|
protected Node |
createNode() |
java.lang.String |
getAddress() |
Bundle |
getBundle() |
java.util.List<java.lang.String> |
getComments()
Returns list of comments belonging to the sentence.
|
java.lang.String |
getDeprel() |
java.lang.String |
getDeps() |
java.util.List<Node> |
getDescendants() |
Document |
getDocument() |
java.lang.String |
getFeats() |
java.lang.String |
getForm() |
java.lang.String |
getId() |
java.lang.String |
getLemma() |
java.lang.String |
getMisc() |
java.util.List<java.lang.String> |
getMultiwords() |
Node |
getNode() |
java.lang.String |
getSentence() |
java.lang.String |
getUpos() |
java.lang.String |
getXpos() |
java.lang.String |
getZone() |
void |
normalizeOrder()
Orders nodes in the tree to reflect correct word order.
|
void |
setBundle(Bundle bundle) |
void |
setId(java.lang.String id) |
void |
setSentence(java.lang.String sentenceText)
Sets sentence in plain text.
|
void |
setZone(java.lang.String zone) |
void |
validateZone()
Validates if the zone is in correct format.
|
public DefaultRoot(Document document)
protected Node createNode()
public Node getNode()
public Document getDocument()
getDocument
in interface Root
public void setBundle(Bundle bundle)
public Bundle getBundle()
public void normalizeOrder()
Root
normalizeOrder
in interface Root
public java.util.List<Node> getDescendants()
getDescendants
in interface Root
public void setZone(java.lang.String zone)
public java.lang.String getZone()
public Root copyTree()
public void setId(java.lang.String id)
public void validateZone()
Root
validateZone
in interface Root
public java.lang.String getAddress()
getAddress
in interface Root
public Node createChild()
Root
createChild
in interface Root
public java.lang.String getForm()
public java.lang.String getLemma()
public java.lang.String getUpos()
public java.lang.String getXpos()
public java.lang.String getFeats()
public java.lang.String getDeprel()
public java.lang.String getDeps()
public java.lang.String getMisc()
public void addComment(java.lang.String comment)
Root
addComment
in interface Root
comment
- comment to addpublic java.util.List<java.lang.String> getComments()
Root
getComments
in interface Root
public void addMultiword(java.lang.String multiword)
Root
addMultiword
in interface Root
multiword
- multiword to addpublic java.util.List<java.lang.String> getMultiwords()
getMultiwords
in interface Root
public void setSentence(java.lang.String sentenceText)
Root
setSentence
in interface Root
sentenceText
- sentence plain textpublic java.lang.String getSentence()
getSentence
in interface Root