|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.xpath.Token com.novell.xml.xpath.AxisNameToken
Class to represent XPath LocationPath axis name tokens. e.g., ancestors-or-self, etc.
Field Summary | |
static int |
ANCESTOR
Represents "ancestor" axis |
static int |
ANCESTOR_OR_SELF
Represents "ancestor-or-self" axis |
static String |
ANCESTOR_OR_SELF_STRING
|
static String |
ANCESTOR_STRING
|
static int |
ATTRIBUTE
Represents "attribute" axis |
static String |
ATTRIBUTE_STRING
|
static int |
CHILD
Represents "child" axis |
static String |
CHILD_STRING
|
static int |
DESCENDANT
Represents "descendant" axis |
static int |
DESCENDANT_OR_SELF
Represents "descendant-or-self" axis |
static String |
DESCENDANT_OR_SELF_STRING
|
static String |
DESCENDANT_STRING
|
static int |
FOLLOWING
Represents "following" axis |
static int |
FOLLOWING_SIBLING
Represents "following-sibling" axis |
static String |
FOLLOWING_SIBLING_STRING
|
static String |
FOLLOWING_STRING
|
static int |
NAMESPACE
Represents "namespace" axis |
static String |
NAMESPACE_STRING
|
static int |
NOT_AXIS
Special value, represents "not an axis name" |
static int |
PARENT
Represents "parent" axis |
static String |
PARENT_STRING
|
static int |
PRECEDING
Represents "preceding" axis |
static int |
PRECEDING_SIBLING
Represents "preceding-sibling" axis |
static String |
PRECEDING_SIBLING_STRING
|
static String |
PRECEDING_STRING
|
static int |
SELF
Represents "self" axis |
static String |
SELF_STRING
|
Fields inherited from class com.novell.xml.xpath.Token |
AT, AXIS_NAME, COLON_COLON, COMMA, DOT, DOT_DOT, FUNCTION_NAME, LEFT_BRACKET, LEFT_PAREN, LITERAL, MAX_TYPE, NODE_TYPE, NOT_A_TOKEN, NUMBER, OPERATOR, RIGHT_BRACKET, RIGHT_PAREN, VARIABLE_REF, WILDCARD_NAME |
Constructor Summary | |
AxisNameToken(int axisId)
Construct an AxisNameToken representing specified axis |
|
AxisNameToken(String axisName)
Construct an AxisNameToken representing specified axis |
Method Summary | |
boolean |
equals(Token rhs)
Compare this Token to another |
static int |
getAxisIdentifier(String candidate)
Return numeric representation of axis based on axis name |
static String |
getAxisName(int id)
Return axis name based on numeric id |
int |
getId()
Return numeric id of this AxisNameToken |
String |
toString()
Return a text representation of this token |
Methods inherited from class com.novell.xml.xpath.Token |
dump, getType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NOT_AXIS
public static final int ANCESTOR
public static final int ANCESTOR_OR_SELF
public static final int ATTRIBUTE
public static final int CHILD
public static final int DESCENDANT
public static final int DESCENDANT_OR_SELF
public static final int FOLLOWING
public static final int FOLLOWING_SIBLING
public static final int NAMESPACE
public static final int PARENT
public static final int PRECEDING
public static final int PRECEDING_SIBLING
public static final int SELF
public static final String ANCESTOR_STRING
public static final String ANCESTOR_OR_SELF_STRING
public static final String ATTRIBUTE_STRING
public static final String CHILD_STRING
public static final String DESCENDANT_STRING
public static final String DESCENDANT_OR_SELF_STRING
public static final String FOLLOWING_STRING
public static final String FOLLOWING_SIBLING_STRING
public static final String NAMESPACE_STRING
public static final String PARENT_STRING
public static final String PRECEDING_STRING
public static final String PRECEDING_SIBLING_STRING
public static final String SELF_STRING
Constructor Detail |
public AxisNameToken(int axisId)
axisId
- numeric representation of axispublic AxisNameToken(String axisName)
axisName
- textual representation of axisMethod Detail |
public boolean equals(Token rhs)
equals
in class Token
rhs
- Token to compare to
public static int getAxisIdentifier(String candidate)
candidate
- axis name
public static String getAxisName(int id)
id
- id value (AxisNameToken.ANCESTOR, AxisNameToken.SELF, etc.)
public int getId()
public String toString()
toString
in class Token
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |