public class ElementNode extends AbstractNode
Constructor and Description |
---|
ElementNode(AbstractNode root,
AbstractNode parent,
DetailAST detailAst,
int depth,
int indexAmongSiblings)
Creates a new
ElementNode instance. |
Modifier and Type | Method and Description |
---|---|
int |
compareOrder(net.sf.saxon.om.NodeInfo other)
Compares current object with specified for order.
|
protected List<AbstractNode> |
createChildren()
Iterates children of the current node and
recursively creates new Xpath-nodes.
|
String |
getAttributeValue(String namespace,
String localPart)
Returns attribute value.
|
int |
getColumnNumber()
Returns column number.
|
int |
getDepth()
Getter method for node depth.
|
int |
getLineNumber()
Returns line number.
|
String |
getLocalPart()
Returns local part.
|
int |
getNodeKind()
Returns type of the node.
|
net.sf.saxon.om.NodeInfo |
getParent()
Returns parent.
|
net.sf.saxon.om.NodeInfo |
getRoot()
Returns root.
|
int |
getTokenType()
Getter method for token type.
|
DetailAST |
getUnderlyingNode()
Returns underlying node.
|
boolean |
hasChildNodes()
Determine whether the node has any children.
|
net.sf.saxon.tree.iter.AxisIterator |
iterateAxis(int axisNumber)
Determines axis iteration algorithm.
|
atomize, copy, generateId, getAllNamespaces, getBaseURI, getChildren, getConfiguration, getDeclaredNamespaces, getDisplayName, getFingerprint, getPrefix, getPublicId, getSchemaType, getStringValue, getStringValueCS, getSystemId, getTreeInfo, getURI, hasFingerprint, isId, isIdref, isNilled, isSameNodeInfo, isStreamed, iterateAxis, saveLocation, setSystemId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attributes, children, children, equals, getGenre, hashCode, toShortString
getLength, head, itemAt, iterate, reduce, subsequence, toGroundedValue
public ElementNode(AbstractNode root, AbstractNode parent, DetailAST detailAst, int depth, int indexAmongSiblings)
ElementNode
instance.root
- Node
root of the treeparent
- Node
parent of the current nodedetailAst
- reference to DetailAST
depth
- the current node depth in the hierarchyindexAmongSiblings
- the current node index among the parent children nodespublic int compareOrder(net.sf.saxon.om.NodeInfo other)
other
- another NodeInfo
objectpublic int getDepth()
getDepth
in class AbstractNode
protected List<AbstractNode> createChildren()
createChildren
in class AbstractNode
public boolean hasChildNodes()
true
is the node has any children.public String getAttributeValue(String namespace, String localPart)
UnsupportedOperationException
in case,
when name of the attribute is not equal to 'text'.namespace
- namespacelocalPart
- actual name of the attributepublic String getLocalPart()
public int getNodeKind()
public net.sf.saxon.om.NodeInfo getParent()
public net.sf.saxon.om.NodeInfo getRoot()
public net.sf.saxon.tree.iter.AxisIterator iterateAxis(int axisNumber)
UnsupportedOperationException
in case,
when there is no axis iterator for given axisNumber.
Reason of suppression for resource, IOResourceOpenedButNotSafelyClosed:
AxisIterator
implements Closeable
interface,
but none of the subclasses of the AxisIterator
class has non-empty close()
method.
axisNumber
- element from AxisInfo
AxisIterator
objectpublic int getLineNumber()
public int getColumnNumber()
public int getTokenType()
getTokenType
in class AbstractNode
public DetailAST getUnderlyingNode()
getUnderlyingNode
in class AbstractNode
Copyright © 2001–2020. All rights reserved.