public class Axis
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static int |
ANCESTOR |
The
ancestor axis |
static int |
ANCESTOR_OR_SELF |
The
ancestor-or-self axis |
static int |
ATTRIBUTE |
The
attribute axis |
static int |
CHILD |
The
child axis |
static int |
DESCENDANT |
The
descendant axis |
static int |
DESCENDANT_OR_SELF |
The
descendant-or-self axis |
static int |
FOLLOWING |
The
following axis |
static int |
FOLLOWING_SIBLING |
The
following-sibling axis |
static int |
INVALID_AXIS |
Marker for an invalid axis
|
static int |
NAMESPACE |
The
namespace axis |
static int |
PARENT |
The
parent axis |
static int |
PRECEDING |
The
preceding axis |
static int |
PRECEDING_SIBLING |
The
preceding-sibling axis |
static int |
SELF |
The
self axis |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
lookup(int axisNum) |
Returns the name of the axis.
|
static int |
lookup(java.lang.String axisName) |
Returns the code for an axis given its name.
|
public static final int INVALID_AXIS
public static final int CHILD
child axispublic static final int DESCENDANT
descendant axispublic static final int PARENT
parent axispublic static final int ANCESTOR
ancestor axispublic static final int FOLLOWING_SIBLING
following-sibling axispublic static final int PRECEDING_SIBLING
preceding-sibling axispublic static final int FOLLOWING
following axispublic static final int PRECEDING
preceding axispublic static final int ATTRIBUTE
attribute axispublic static final int NAMESPACE
namespace axispublic static final int SELF
self axispublic static final int DESCENDANT_OR_SELF
descendant-or-self axispublic static final int ANCESTOR_OR_SELF
ancestor-or-self axispublic static java.lang.String lookup(int axisNum)
Returns the name of the axis.
axisNum - the axis codeJaxenRuntimeException - if the number does not represent one of the 13
XPath axespublic static int lookup(java.lang.String axisName)
Returns the code for an axis given its name.
axisName - the name of the axis: child, parent, descendant, descendant-or-self, etc.Copyright © 2001–2018 Codehaus. All rights reserved.