|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.cas.impl.AnnotationTreeNodeImpl<T>
public class AnnotationTreeNodeImpl<T extends AnnotationFS>
TODO: Create type comment for AnnotationTreeNodeImpl.
| Method Summary | |
|---|---|
T |
get()
Return the annotation for this node. |
AnnotationTreeNode<T> |
getChild(int i)
Get the i-th child of this node. |
int |
getChildCount()
Get the number of children this node has. |
java.util.ArrayList<AnnotationTreeNode<T>> |
getChildren()
Get all children of this node as an ArrayList. |
AnnotationTreeNode<T> |
getNextSibling()
Get the next sibling (to the right) of this node. |
AnnotationTreeNode<T> |
getParent()
Get the parent of this node. |
AnnotationTreeNode<T> |
getPreviousSibling()
Get the previous sibling (to the left) of this node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public AnnotationTreeNode<T> getParent()
AnnotationTreeNode
getParent in interface AnnotationTreeNode<T extends AnnotationFS>null if this node has no parent (root).public int getChildCount()
AnnotationTreeNode
getChildCount in interface AnnotationTreeNode<T extends AnnotationFS>
public AnnotationTreeNode<T> getChild(int i)
throws CASRuntimeException
AnnotationTreeNode
getChild in interface AnnotationTreeNode<T extends AnnotationFS>i - The index of the child.
CASRuntimeException - If i < 0 or i >= getChildCount().public AnnotationTreeNode<T> getNextSibling()
AnnotationTreeNode
getNextSibling in interface AnnotationTreeNode<T extends AnnotationFS>null if no such sibling exists.public AnnotationTreeNode<T> getPreviousSibling()
AnnotationTreeNode
getPreviousSibling in interface AnnotationTreeNode<T extends AnnotationFS>null if no such sibling exists.public java.util.ArrayList<AnnotationTreeNode<T>> getChildren()
AnnotationTreeNode
getChildren in interface AnnotationTreeNode<T extends AnnotationFS>public T get()
AnnotationTreeNode
get in interface AnnotationTreeNode<T extends AnnotationFS>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||