org.apache.tapestry5.internal.services
Enum XMLTokenType
java.lang.Object
java.lang.Enum<XMLTokenType>
org.apache.tapestry5.internal.services.XMLTokenType
- All Implemented Interfaces:
- Serializable, Comparable<XMLTokenType>
public enum XMLTokenType
- extends Enum<XMLTokenType>
Identifies type of XMLToken
.
- Since:
- 5.2.0
Method Summary |
static XMLTokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static XMLTokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
DTD
public static final XMLTokenType DTD
START_ELEMENT
public static final XMLTokenType START_ELEMENT
END_ELEMENT
public static final XMLTokenType END_ELEMENT
END_DOCUMENT
public static final XMLTokenType END_DOCUMENT
COMMENT
public static final XMLTokenType COMMENT
SPACE
public static final XMLTokenType SPACE
CHARACTERS
public static final XMLTokenType CHARACTERS
CDATA
public static final XMLTokenType CDATA
ENTITY_REFERENCE
public static final XMLTokenType ENTITY_REFERENCE
ATTRIBUTE
public static final XMLTokenType ATTRIBUTE
NAMESPACE
public static final XMLTokenType NAMESPACE
NOTATION_DECLARATION
public static final XMLTokenType NOTATION_DECLARATION
ENTITY_DECLARATION
public static final XMLTokenType ENTITY_DECLARATION
values
public static XMLTokenType[] 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 (XMLTokenType c : XMLTokenType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static XMLTokenType 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
Copyright © 2003-2012 The Apache Software Foundation.