Package org.loboevolution.apache.xml.dtm
Class Axis
java.lang.Object
org.loboevolution.apache.xml.dtm.Axis
Specifies values related to XPath Axes.
The ancestor, descendant, following, preceding and self axes partition a document (ignoring attribute and namespace nodes): they do not overlap and together they contain all the nodes in the document.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
A non-xpath axis, returns all nodes in the tree from and including the root.static final int
A non-xpath axis, traversing the subtree including the subtree root, descendants, attributes, and namespace node decls.static final int
The ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; thus, the ancestor axis will always include the root node, unless the context node is the root node.static final int
the ancestor-or-self axis contains the context node and the ancestors of the context node; thus, the ancestor axis will always include the root node.static final int
the attribute axis contains the attributes of the context node; the axis will be empty unless the context node is an element.static final int
The child axis contains the children of the context node.static final int
The descendant axis contains the descendants of the context node; a descendant is a child or a child of a child and so on; thus the descendant axis never contains attribute or namespace nodes.static final int
The descendant-or-self axis contains the context node and the descendants of the context node.static final int
A non-xpath axis, returns all nodes that aren't namespaces or attributes, from and including the root.static final int
A non-xpath axis, returns all nodes that aren't namespaces or attributes, from and including the root.static final int
A non-xpath axis, for functions.static final int
the following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes.static final int
The following-sibling axis contains all the following siblings of the context node; if the context node is an attribute node or namespace node, the following-sibling axis is empty.static final int
The namespace axis contains the namespace nodes of the context node; the axis will be empty unless the context node is an element.static final int
The namespace axis contains the namespace nodes of the context node; the axis will be empty unless the context node is an element.static final int
The parent axis contains the parent of the context node, if there is one.static final int
The preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes and namespace nodesstatic final int
A non-xpath axis, traversing the the preceding and the ancestor nodes, needed for inverseing select patterns to match patterns.static final int
The preceding-sibling axis contains all the preceding siblings of the context node; if the context node is an attribute node or namespace node, the preceding-sibling axis is empty.static final int
A non-xpath axis, returns root only.static final int
The self axis contains just the context node itself. -
Constructor Summary
-
Method Summary
-
Field Details
-
ANCESTOR
public static final int ANCESTORThe ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; thus, the ancestor axis will always include the root node, unless the context node is the root node.- See Also:
-
ANCESTORORSELF
public static final int ANCESTORORSELFthe ancestor-or-self axis contains the context node and the ancestors of the context node; thus, the ancestor axis will always include the root node.- See Also:
-
ATTRIBUTE
public static final int ATTRIBUTEthe attribute axis contains the attributes of the context node; the axis will be empty unless the context node is an element.- See Also:
-
CHILD
public static final int CHILDThe child axis contains the children of the context node.- See Also:
-
DESCENDANT
public static final int DESCENDANTThe descendant axis contains the descendants of the context node; a descendant is a child or a child of a child and so on; thus the descendant axis never contains attribute or namespace nodes.- See Also:
-
DESCENDANTORSELF
public static final int DESCENDANTORSELFThe descendant-or-self axis contains the context node and the descendants of the context node.- See Also:
-
FOLLOWING
public static final int FOLLOWINGthe following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes.- See Also:
-
FOLLOWINGSIBLING
public static final int FOLLOWINGSIBLINGThe following-sibling axis contains all the following siblings of the context node; if the context node is an attribute node or namespace node, the following-sibling axis is empty.- See Also:
-
NAMESPACEDECLS
public static final int NAMESPACEDECLSThe namespace axis contains the namespace nodes of the context node; the axis will be empty unless the context node is an element.- See Also:
-
NAMESPACE
public static final int NAMESPACEThe namespace axis contains the namespace nodes of the context node; the axis will be empty unless the context node is an element.- See Also:
-
PARENT
public static final int PARENTThe parent axis contains the parent of the context node, if there is one.- See Also:
-
PRECEDING
public static final int PRECEDINGThe preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes and namespace nodes- See Also:
-
PRECEDINGSIBLING
public static final int PRECEDINGSIBLINGThe preceding-sibling axis contains all the preceding siblings of the context node; if the context node is an attribute node or namespace node, the preceding-sibling axis is empty.- See Also:
-
SELF
public static final int SELFThe self axis contains just the context node itself.- See Also:
-
ALLFROMNODE
public static final int ALLFROMNODEA non-xpath axis, traversing the subtree including the subtree root, descendants, attributes, and namespace node decls.- See Also:
-
PRECEDINGANDANCESTOR
public static final int PRECEDINGANDANCESTORA non-xpath axis, traversing the the preceding and the ancestor nodes, needed for inverseing select patterns to match patterns.- See Also:
-
ALL
public static final int ALLA non-xpath axis, returns all nodes in the tree from and including the root.- See Also:
-
DESCENDANTSFROMROOT
public static final int DESCENDANTSFROMROOTA non-xpath axis, returns all nodes that aren't namespaces or attributes, from and including the root.- See Also:
-
DESCENDANTSORSELFFROMROOT
public static final int DESCENDANTSORSELFFROMROOTA non-xpath axis, returns all nodes that aren't namespaces or attributes, from and including the root.- See Also:
-
ROOT
public static final int ROOTA non-xpath axis, returns root only.- See Also:
-
FILTEREDLIST
public static final int FILTEREDLISTA non-xpath axis, for functions.- See Also:
-
-
Constructor Details
-
Axis
public Axis()
-
-
Method Details
-
getNames
-
getNamesLength
public static int getNamesLength()
-