Constructor and Description |
---|
DefaultBundle(Document document) |
Modifier and Type | Method and Description |
---|---|
void |
addTree(Root root)
Adds tree to the bundle.
|
Root |
createTree()
Creates tree and adds it to the bundle.
|
Document |
getDocument()
Returns document of the bundle.
|
java.lang.String |
getId() |
int |
getNumber()
Returns index of the bundle.
|
java.util.Optional<Root> |
getTree(java.lang.String zone)
Returns tree with given zone.
|
java.util.List<Root> |
getTrees()
Returns list of sentence trees.
|
void |
remove()
Removes bundle from the document.
|
void |
setDocument(Document document)
Ties bundle with given document.
|
void |
setId(java.lang.String id)
Sets ID of the bundle.
|
public DefaultBundle(Document document)
public void addTree(Root root)
Bundle
public Root createTree()
Bundle
createTree
in interface Bundle
public java.util.List<Root> getTrees()
Bundle
public void setDocument(Document document)
Bundle
setDocument
in interface Bundle
document
- document the bundle will belong topublic Document getDocument()
Bundle
getDocument
in interface Bundle
public java.lang.String getId()
public void setId(java.lang.String id)
Bundle
public java.util.Optional<Root> getTree(java.lang.String zone)
Bundle
public void remove()
Bundle