|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaxen.saxpath.Axis
public class Axis
Internal SAXPath class that contains constants representing XPath operators to avoid a lot of string comparisons.
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
static String |
lookup(int axisNum)
Returns the name of the axis. |
static int |
lookup(String axisName)
Returns the code for an axis given its name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INVALID_AXIS
public static final int CHILD
child
axis
public static final int DESCENDANT
descendant
axis
public static final int PARENT
parent
axis
public static final int ANCESTOR
ancestor
axis
public static final int FOLLOWING_SIBLING
following-sibling
axis
public static final int PRECEDING_SIBLING
preceding-sibling
axis
public static final int FOLLOWING
following
axis
public static final int PRECEDING
preceding
axis
public static final int ATTRIBUTE
attribute
axis
public static final int NAMESPACE
namespace
axis
public static final int SELF
self
axis
public static final int DESCENDANT_OR_SELF
descendant-or-self
axis
public static final int ANCESTOR_OR_SELF
ancestor-or-self
axis
Method Detail |
---|
public static String lookup(int axisNum)
Returns the name of the axis.
axisNum
- the axis code
JaxenRuntimeException
- if the number does not represent one of the 13
XPath axespublic static int lookup(String axisName)
Returns the code for an axis given its name.
axisName
- the name of the axis: child, parent, descendant, descendant-or-self, etc.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |