public interface Bundle
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.
|
void addTree(Root root)
root
- root of sentence treeRoot createTree()
java.util.List<Root> getTrees()
void setDocument(Document document)
document
- document the bundle will belong toDocument getDocument()
java.lang.String getId()
void setId(java.lang.String id)
id
- new ID of the bundlejava.util.Optional<Root> getTree(java.lang.String zone)
zone
- zone to search forvoid remove()
int getNumber()