public interface AbstractTreeElement<T extends AbstractTreeElement>
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ITreeVisitor visitor)
Visitor pattern acceptance method.
|
void |
clearCaches() |
T |
getAttribute(String namespace,
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.
|
String |
getAttributeName(int index)
get name of attribute at 'index' in the list
|
String |
getAttributeNamespace(int index)
get namespace of attribute at 'index' in the list
|
String |
getAttributeValue(int index)
get value of attribute at 'index' in the list
|
String |
getAttributeValue(String namespace,
String name)
get value of attribute with namespace:name' in the list
|
T |
getChild(String name,
int multiplicity) |
T |
getChildAt(int i) |
int |
getChildMultiplicity(String name) |
List<T> |
getChildrenWithName(String name)
Get all the child nodes of this element, with specific name
|
int |
getDataType() |
int |
getDepth() |
String |
getInstanceName() |
int |
getMult() |
String |
getName() |
String |
getNamespace() |
int |
getNumChildren() |
AbstractTreeElement |
getParent() |
TreeReference |
getRef() |
IAnswerData |
getValue() |
boolean |
hasChildren() |
boolean |
isAttribute() |
boolean |
isChildable() |
boolean |
isLeaf() |
boolean |
isRelevant() |
boolean |
isRepeatable() |
List<TreeReference> |
tryBatchChildFetch(String name,
int mult,
List<XPathExpression> predicates,
EvaluationContext evalContext)
TODO: Worst method name ever.
|
boolean isLeaf()
boolean isChildable()
String getInstanceName()
List<T> getChildrenWithName(String name)
name - boolean hasChildren()
int getNumChildren()
T getChildAt(int i)
boolean isRepeatable()
boolean isAttribute()
int getChildMultiplicity(String name)
void accept(ITreeVisitor visitor)
visitor - The visitor traveling this treeint getAttributeCount()
String getAttributeNamespace(int index)
index - String getAttributeName(int index)
index - String getAttributeValue(int index)
index - T getAttribute(String namespace, String name)
String getAttributeValue(String namespace, String name)
TreeReference getRef()
int getDepth()
String getName()
int getMult()
AbstractTreeElement getParent()
IAnswerData getValue()
int getDataType()
void clearCaches()
boolean isRelevant()
String getNamespace()
List<TreeReference> tryBatchChildFetch(String name, int mult, 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 - Copyright © 2021. All rights reserved.