public enum XmlNodeType extends Enum<XmlNodeType> implements NodeType
Enum Constant and Description |
---|
ATTRIBUTE
node type for xml attributes.
|
ELEMENT
node type for xml elements.
|
TEXT_CONTENT
node type for the content of non-simple xml elements without child elements.
|
Modifier and Type | Method and Description |
---|---|
static XmlNodeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XmlNodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XmlNodeType ELEMENT
public static final XmlNodeType ATTRIBUTE
public static final XmlNodeType TEXT_CONTENT
public static XmlNodeType[] values()
for (XmlNodeType c : XmlNodeType.values()) System.out.println(c);
public static XmlNodeType 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 nullCopyright © 2014. All rights reserved.