public interface AbstractTreeElement<T extends AbstractTreeElement>
Modifier and Type | Method and Description |
---|---|
void |
accept(ITreeVisitor visitor)
Visitor pattern acceptance method.
|
void |
clearCaches() |
T |
getAttribute(java.lang.String namespace,
java.lang.String name)
Retrieves the TreeElement representing the attribute at
the provided namespace and name, or null if none exists.
|
int |
getAttributeCount()
Returns the number of attributes of this element.
|
java.lang.String |
getAttributeName(int index)
get name of attribute at 'index' in the list
|
java.lang.String |
getAttributeNamespace(int index)
get namespace of attribute at 'index' in the list
|
java.lang.String |
getAttributeValue(int index)
get value of attribute at 'index' in the list
|
java.lang.String |
getAttributeValue(java.lang.String namespace,
java.lang.String name)
get value of attribute with namespace:name' in the list
|
T |
getChild(java.lang.String name,
int multiplicity) |
T |
getChildAt(int i) |
int |
getChildMultiplicity(java.lang.String name) |
java.util.List<T> |
getChildrenWithName(java.lang.String name)
Get all the child nodes of this element, with specific name
|
int |
getDataType() |
int |
getDepth() |
java.lang.String |
getInstanceName() |
int |
getMult() |
java.lang.String |
getName() |
java.lang.String |
getNamespace() |
int |
getNumChildren() |
AbstractTreeElement |
getParent() |
TreeReference |
getRef() |
IAnswerData |
getValue() |
boolean |
hasChildren() |
boolean |
isAttribute() |
boolean |
isChildable() |
boolean |
isLeaf() |
boolean |
isRelevant() |
boolean |
isRepeatable() |
java.util.List<TreeReference> |
tryBatchChildFetch(java.lang.String name,
int mult,
java.util.List<XPathExpression> predicates,
EvaluationContext evalContext)
TODO: Worst method name ever.
|
boolean isLeaf()
boolean isChildable()
java.lang.String getInstanceName()
T getChild(java.lang.String name, int multiplicity)
java.util.List<T> getChildrenWithName(java.lang.String name)
name
- boolean hasChildren()
int getNumChildren()
T getChildAt(int i)
boolean isRepeatable()
boolean isAttribute()
int getChildMultiplicity(java.lang.String name)
void accept(ITreeVisitor visitor)
visitor
- The visitor traveling this treeint getAttributeCount()
java.lang.String getAttributeNamespace(int index)
index
- java.lang.String getAttributeName(int index)
index
- java.lang.String getAttributeValue(int index)
index
- T getAttribute(java.lang.String namespace, java.lang.String name)
java.lang.String getAttributeValue(java.lang.String namespace, java.lang.String name)
TreeReference getRef()
int getDepth()
java.lang.String getName()
int getMult()
AbstractTreeElement getParent()
IAnswerData getValue()
int getDataType()
void clearCaches()
boolean isRelevant()
java.lang.String getNamespace()
java.util.List<TreeReference> tryBatchChildFetch(java.lang.String name, int mult, java.util.List<XPathExpression> predicates, EvaluationContext evalContext)
name
- mult
- predicates
- possibly list of predicates to be evaluated. predicates will be removed from list if they are
able to be evaluatedevalContext
-