|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.om.Axis
public final class Axis
An axis, that is a direction of navigation in the document structure.
Field Summary | |
---|---|
static byte |
ANCESTOR
Constant representing the ancestor axis |
static byte |
ANCESTOR_OR_SELF
Constant representing the ancestor-or-self axis |
static byte |
ATTRIBUTE
Constant representing the attribute axis |
static String[] |
axisJavaName
Table giving the name of each axis as used in a generated Java program, for example "ANCESTOR_OR_SELF" |
static String[] |
axisName
Table giving the name of each axis as used in XPath, for example "ancestor-or-self" |
static byte |
CHILD
Constant representing the child axis |
static byte |
DESCENDANT
Constant representing the descendant axis |
static byte |
DESCENDANT_OR_SELF
Constant representing the descendant-or-self axis |
static byte |
FOLLOWING
Constant representing the following axis |
static byte |
FOLLOWING_SIBLING
Constant representing the following-sibling axis |
static boolean[] |
isForwards
Table indicating for each axis whether it is in forwards document order |
static boolean[] |
isPeerAxis
Table indicating for each axis whether it is a peer axis. |
static boolean[] |
isSubtreeAxis
Table indicating for each axis whether it is contained within the subtree rooted at the origin node. |
static byte |
NAMESPACE
Constant representing the namespace axis |
static byte |
PARENT
Constant representing the parent axis |
static byte |
PRECEDING
Constant representing the preceding axis |
static byte |
PRECEDING_OR_ANCESTOR
Constant representing the preceding-or-ancestor axis. |
static byte |
PRECEDING_SIBLING
Constant representing the preceding-sibling axis |
static short[] |
principalNodeType
Table indicating the principal node type of each axis |
static byte |
SELF
Constant representing the self axis |
Method Summary | |
---|---|
static boolean |
containsNodeKind(int axis,
int nodeKind)
Determine whether a given kind of node can be found on a given axis. |
static byte |
getAxisNumber(String name)
Resolve an axis name into a symbolic constant representing the axis |
static boolean |
isAlwaysEmpty(int axis,
int nodeKind)
Ask whether a given axis can contain any nodes when starting at the specified node kind. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte ANCESTOR
public static final byte ANCESTOR_OR_SELF
public static final byte ATTRIBUTE
public static final byte CHILD
public static final byte DESCENDANT
public static final byte DESCENDANT_OR_SELF
public static final byte FOLLOWING
public static final byte FOLLOWING_SIBLING
public static final byte NAMESPACE
public static final byte PARENT
public static final byte PRECEDING
public static final byte PRECEDING_SIBLING
public static final byte SELF
public static final byte PRECEDING_OR_ANCESTOR
public static final short[] principalNodeType
public static final boolean[] isForwards
public static final boolean[] isPeerAxis
public static final boolean[] isSubtreeAxis
public static final String[] axisName
public static final String[] axisJavaName
Method Detail |
---|
public static byte getAxisNumber(String name) throws XPathException
name
-
XPathException
public static boolean isAlwaysEmpty(int axis, int nodeKind)
axis
- the axis, for example ATTRIBUTE
nodeKind
- the node kind of the origin node, for example Type.ATTRIBUTE
public static boolean containsNodeKind(int axis, int nodeKind)
axis
- the axis, for example ATTRIBUTE
nodeKind
- the node kind of the origin node, for example Type.ELEMENT
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |