org.jaxen.saxpath
public class Axis extends Object
| 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 |
| Constructor Summary | |
|---|---|
| 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. |
ancestor axisancestor-or-self axisattribute axischild axisdescendant axisdescendant-or-self axisfollowing axisfollowing-sibling axisnamespace axisparent axispreceding axispreceding-sibling axisself axisReturns the name of the axis.
Parameters: axisNum the axis code
Returns: the name of the axis such as might be used in an XPath expression
Throws: JaxenRuntimeException if the number does not represent one of the 13 XPath axes
Returns the code for an axis given its name.
Parameters: axisName the name of the axis: child, parent, descendant, descendant-or-self, etc.
Returns: the axis code