APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.dtm

public final Class Axis

extends Object
Class Inheritance

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 TypeField and Description
public static final int
ALL

A non-xpath axis, returns all nodes in the tree from and including the root.

public static final int
ALLFROMNODE

A non-xpath axis, traversing the subtree including the subtree root, descendants, attributes, and namespace node decls.

public static final int
ANCESTOR

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.

public static final int
ANCESTORORSELF

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.

public static final int
ATTRIBUTE

the attribute axis contains the attributes of the context node; the axis will be empty unless the context node is an element.

public static final int
CHILD

The child axis contains the children of the context node.

public static final int
DESCENDANT

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.

public static final int
DESCENDANTORSELF

The descendant-or-self axis contains the context node and the descendants of the context node.

public static final int
DESCENDANTSFROMROOT

A non-xpath axis, returns all nodes that aren't namespaces or attributes, from and including the root.

public static final int
DESCENDANTSORSELFFROMROOT

A non-xpath axis, returns all nodes that aren't namespaces or attributes, from and including the root.

public static final int
FILTEREDLIST

A non-xpath axis, for functions.

public static final int
FOLLOWING

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.

public static final int
FOLLOWINGSIBLING

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.

private static final boolean[]
isReverse

A table to identify whether an axis is a reverse axis;

private static final String[]
names

The names of the axes for diagnostic purposes.

public static final int
NAMESPACE

The namespace axis contains the namespace nodes of the context node; the axis will be empty unless the context node is an element.

public static final int
NAMESPACEDECLS

The namespace axis contains the namespace nodes of the context node; the axis will be empty unless the context node is an element.

public static final int
PARENT

The parent axis contains the parent of the context node, if there is one.

public static final int
PRECEDING

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 nodes

public static final int
PRECEDINGANDANCESTOR

A non-xpath axis, traversing the the preceding and the ancestor nodes, needed for inverseing select patterns to match patterns.

public static final int
PRECEDINGSIBLING

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.

public static final int
ROOT

A non-xpath axis, returns root only.

public static final int
SELF

The self axis contains just the context node itself.

Constructor Summary

AccessConstructor and Description
public
Axis()

Method Summary

Modifier and TypeMethod and Description
public static String
getNames(int index)

public static int
public static boolean
isReverse(int axis)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALLback to summary
public static final int ALL

A non-xpath axis, returns all nodes in the tree from and including the root.

ALLFROMNODEback to summary
public static final int ALLFROMNODE

A non-xpath axis, traversing the subtree including the subtree root, descendants, attributes, and namespace node decls.

ANCESTORback to summary
public static final int ANCESTOR

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.

ANCESTORORSELFback to summary
public static final int ANCESTORORSELF

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.

ATTRIBUTEback to summary
public static final int ATTRIBUTE

the attribute axis contains the attributes of the context node; the axis will be empty unless the context node is an element.

CHILDback to summary
public static final int CHILD

The child axis contains the children of the context node.

DESCENDANTback to summary
public static final int DESCENDANT

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.

DESCENDANTORSELFback to summary
public static final int DESCENDANTORSELF

The descendant-or-self axis contains the context node and the descendants of the context node.

DESCENDANTSFROMROOTback to summary
public static final int DESCENDANTSFROMROOT

A non-xpath axis, returns all nodes that aren't namespaces or attributes, from and including the root.

DESCENDANTSORSELFFROMROOTback to summary
public static final int DESCENDANTSORSELFFROMROOT

A non-xpath axis, returns all nodes that aren't namespaces or attributes, from and including the root.

FILTEREDLISTback to summary
public static final int FILTEREDLIST

A non-xpath axis, for functions.

FOLLOWINGback to summary
public static final int FOLLOWING

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.

FOLLOWINGSIBLINGback to summary
public static final int FOLLOWINGSIBLING

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.

isReverseback to summary
private static final boolean[] isReverse

A table to identify whether an axis is a reverse axis;

namesback to summary
private static final String[] names

The names of the axes for diagnostic purposes.

NAMESPACEback to summary
public static final int NAMESPACE

The namespace axis contains the namespace nodes of the context node; the axis will be empty unless the context node is an element.

NAMESPACEDECLSback to summary
public static final int NAMESPACEDECLS

The namespace axis contains the namespace nodes of the context node; the axis will be empty unless the context node is an element.

PARENTback to summary
public static final int PARENT

The parent axis contains the parent of the context node, if there is one.

PRECEDINGback to summary
public static final int PRECEDING

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 nodes

PRECEDINGANDANCESTORback to summary
public static final int PRECEDINGANDANCESTOR

A non-xpath axis, traversing the the preceding and the ancestor nodes, needed for inverseing select patterns to match patterns.

PRECEDINGSIBLINGback to summary
public static final int PRECEDINGSIBLING

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.

ROOTback to summary
public static final int ROOT

A non-xpath axis, returns root only.

SELFback to summary
public static final int SELF

The self axis contains just the context node itself.

Constructor Detail

Axisback to summary
public Axis()

Method Detail

getNamesback to summary
public static String getNames(int index)
getNamesLengthback to summary
public static int getNamesLength()
isReverseback to summary
public static boolean isReverse(int axis)