Package de.pdark.decentxml
Enum Class XMLTokenizer.Type
- All Implemented Interfaces:
Serializable
,Comparable<XMLTokenizer.Type>
,Constable
- Enclosing class:
- XMLTokenizer
Types of tokens the tokenizer can return
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn attribute in the start tagThis is the name part of the start tagThe token which terminates the start tag.A CDATA segment (including the CDATA marker)A comment (including the begin and end tagA custom attribute.A custom element.<!DOCTYPE"|"<!ATTLIST"(""[""CDATA""-- comment --" inside of a doctype<!ELEMENT">"")""]"<!ENTITY"#FIXED""#IMPLIED""NDATA"<!NOTATION"+""%"";""#PCDATA""PUBLIC"Something between quotes in a doctype"#REQUIRED"",""SYSTEM""*""?"A document nodeWhitespace in a doctypeNode-type for elements after they have been parsedThe end elementAn entityA processing instruction with the begin and end tagA piece of text with the entities still intact -
Method Summary
Modifier and TypeMethodDescriptionstatic XMLTokenizer.Type
Returns the enum constant of this class with the specified name.static XMLTokenizer.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEXT
A piece of text with the entities still intact -
CDATA
A CDATA segment (including the CDATA marker) -
DTD_WHITESPACE
Whitespace in a doctype -
PROCESSING_INSTRUCTION
A processing instruction with the begin and end tag -
COMMENT
A comment (including the begin and end tag -
BEGIN_ELEMENT
This is the name part of the start tag -
ATTRIBUTE
An attribute in the start tag -
CUSTOM_ATTRIBUTE
A custom attribute. Use this if you extended Attribute and need to distinguish the nodes from common attributes. -
BEGIN_ELEMENT_END
The token which terminates the start tag. It's value is either '>' or '/>' if it's an empty element -
END_ELEMENT
The end element -
DOCUMENT
A document node -
ELEMENT
Node-type for elements after they have been parsed -
CUSTOM_ELEMENT
A custom element. Use this if you extended Element and need to distinguish the nodes from common elements. -
ENTITY
An entity -
DOCTYPE
<!DOCTYPE -
DOCTYPE_SYSTEM
"SYSTEM" -
DOCTYPE_PUBLIC
"PUBLIC" -
DOCTYPE_NDATA
"NDATA" -
DOCTYPE_ELEMENT
<!ELEMENT -
DOCTYPE_ATTLIST
<!ATTLIST -
DOCTYPE_ENTITY
<!ENTITY -
DOCTYPE_NOTATION
<!NOTATION -
DOCTYPE_QUOTED_TEXT
Something between quotes in a doctype -
DOCTYPE_BEGIN_SUBSET
"[" -
DOCTYPE_END_SUBSET
"]" -
DOCTYPE_END
">" -
DOCTYPE_COMMENT
"-- comment --" inside of a doctype -
DOCTYPE_BEGIN_GROUP
"(" -
DOCTYPE_END_GROUP
")" -
DOCTYPE_ALTERNATIVE
"|" -
DOCTYPE_ZERO_OR_ONE
"?" -
DOCTYPE_ZERO_OR_MORE
"*" -
DOCTYPE_ONE_OR_MORE
"+" -
DOCTYPE_PARAMETER_ENTITY
"%" -
DOCTYPE_PARAMETER_ENTITY_END
";" -
DOCTYPE_PCDATA
"#PCDATA" -
DOCTYPE_IMPLIED
"#IMPLIED" -
DOCTYPE_REQUIRED
"#REQUIRED" -
DOCTYPE_FIXED
"#FIXED" -
DOCTYPE_SEQUENCE
"," -
DOCTYPE_CDATA
"CDATA"
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-