|
||||||||||
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.NodeTypeToken
Class representing an XPath NodeType token (comment, node, pi, text)
Scanner
Field Summary | |
static int |
COMMENT
Represents a "comment" node type token |
static int |
NODE
Represents a "node" node type token |
static int |
NOT_NODE_TYPE
Represents an invalid value (not a node type) |
static int |
PI
Represents a processing instruction ("processing-instruction") node type token |
static int |
TEXT
Represents a "text" node type token |
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 | |
NodeTypeToken(int t)
Construct a NodeType token with passed type |
Method Summary | |
boolean |
equals(Token rhs)
Compare this Token to passed Token |
int |
getNodeType()
return this Tokens node type value |
static int |
getTypeFromName(String name)
Return token type value based on NodeType string (i.e, return NodeTypeToken.COMMENT given "comment", etc.) |
static String |
getTypeName(int type)
Given a node type token value, return the associated text |
String |
toString()
Return text representing this NodeTypeToken |
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_NODE_TYPE
public static final int COMMENT
public static final int NODE
public static final int PI
public static final int TEXT
Constructor Detail |
public NodeTypeToken(int t)
t
- type (NodeTypeToken.COMMENT, NodeTypeToken.TEXT, etc.)Method Detail |
public boolean equals(Token rhs)
equals
in class Token
rhs
- Token to compare against
public String toString()
toString
in class Token
public int getNodeType()
public static String getTypeName(int type)
type
- NodeTypeToken.COMMENT, NodeTypeToken.PI, etc.
public static int getTypeFromName(String name)
name
- string containing node type text
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |