|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<NodeType>
net.ranides.assira.xml.NodeType
public enum NodeType
| Enum Constant Summary | |
|---|---|
ATTRIBUTE
The node is an Attr. |
|
CDATA_SECTION
The node is a CDATASection. |
|
COMMENT
The node is a Comment. |
|
DOCUMENT
The node is a Document. |
|
DOCUMENT_FRAGMENT
The node is a DocumentFragment. |
|
DOCUMENT_TYPE
The node is a DocumentType. |
|
ELEMENT
The node is an Element. |
|
ENTITY
The node is an Entity. |
|
ENTITY_REFERENCE
The node is an EntityReference. |
|
NOTATION
The node is a Notation. |
|
PROCESSING_INSTRUCTION
The node is a ProcessingInstruction. |
|
TEXT
The node is a Text node. |
|
| Method Summary | |
|---|---|
boolean |
match(int value)
|
boolean |
match(Node node)
|
int |
toEnumKey()
|
static NodeType |
valueOf(int value)
|
static NodeType |
valueOf(Node node)
|
static NodeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static NodeType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final NodeType ELEMENT
Element.
public static final NodeType ATTRIBUTE
Attr.
public static final NodeType TEXT
Text node.
public static final NodeType CDATA_SECTION
CDATASection.
public static final NodeType ENTITY_REFERENCE
EntityReference.
public static final NodeType ENTITY
Entity.
public static final NodeType PROCESSING_INSTRUCTION
ProcessingInstruction.
public static final NodeType COMMENT
Comment.
public static final NodeType DOCUMENT
Document.
public static final NodeType DOCUMENT_TYPE
DocumentType.
public static final NodeType DOCUMENT_FRAGMENT
DocumentFragment.
public static final NodeType NOTATION
Notation.
| Method Detail |
|---|
public static NodeType[] values()
for (NodeType c : NodeType.values()) System.out.println(c);
public static NodeType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int toEnumKey()
toEnumKey in interface EnumIntpublic boolean match(Node node)
public boolean match(int value)
public static NodeType valueOf(Node node)
public static NodeType valueOf(int value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||