public enum NodeType extends Enum<NodeType>
Enum Constant and Description |
---|
ATTRIBUTE_NODE |
CDATA_SECTION_NODE |
COMMENT_NODE |
DOCUMENT_FRAGMENT_NODE |
DOCUMENT_NODE |
DOCUMENT_TYPE_NODE |
ELEMENT_NODE |
ENTITY_NODE |
ENTITY_REFERENCE_NODE |
NOTATION_NODE |
PROCESSING_INSTRUCTION_NODE |
TEXT_NODE |
Modifier and Type | Method and Description |
---|---|
static NodeType |
asNodeType(int value) |
int |
getValue() |
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.
|
public static final NodeType ELEMENT_NODE
public static final NodeType ATTRIBUTE_NODE
public static final NodeType TEXT_NODE
public static final NodeType CDATA_SECTION_NODE
public static final NodeType ENTITY_REFERENCE_NODE
public static final NodeType ENTITY_NODE
public static final NodeType PROCESSING_INSTRUCTION_NODE
public static final NodeType COMMENT_NODE
public static final NodeType DOCUMENT_NODE
public static final NodeType DOCUMENT_TYPE_NODE
public static final NodeType DOCUMENT_FRAGMENT_NODE
public static final NodeType NOTATION_NODE
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 nameNullPointerException
- if the argument is nullpublic int getValue()
public static final NodeType asNodeType(int value)
Copyright © 2018 Xalys. All rights reserved.