com.ibm.xml.xapi
Enum XNodeView.Kind
java.lang.Object
java.lang.Enum<XNodeView.Kind>
com.ibm.xml.xapi.XNodeView.Kind
- All Implemented Interfaces:
- Serializable, Comparable<XNodeView.Kind>
- Enclosing interface:
- XNodeView
public static enum XNodeView.Kind
- extends Enum<XNodeView.Kind>
Enumeration of node kinds. Values are the same as those defined
by DOM.
Method Summary |
int |
getValue()
Get the value of the enumerator. |
static XNodeView.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static XNodeView.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
NONE
public static final XNodeView.Kind NONE
ELEMENT
public static final XNodeView.Kind ELEMENT
ATTRIBUTE
public static final XNodeView.Kind ATTRIBUTE
TEXT
public static final XNodeView.Kind TEXT
NAMESPACE_DECL
public static final XNodeView.Kind NAMESPACE_DECL
PROCESSING_INSTRUCTION
public static final XNodeView.Kind PROCESSING_INSTRUCTION
COMMENT
public static final XNodeView.Kind COMMENT
DOCUMENT
public static final XNodeView.Kind DOCUMENT
values
public static XNodeView.Kind[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (XNodeView.Kind c : XNodeView.Kind.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static XNodeView.Kind valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getValue
public int getValue()
- Get the value of the enumerator. Values are the same as those
defined by DOM.
- Returns:
- The enumerator value.