Package de.pdark.decentxml
Enum XMLTokenizer.Type
- All Implemented Interfaces:
Serializable
,Comparable<XMLTokenizer.Type>
- Enclosing class:
XMLTokenizer
Types of tokens the tokenizer can return
-
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.invalid input: '<'!DOCTYPE"|"invalid input: '<!'ATTLIST"(""[""CDATA""-- comment --" inside of a doctypeinvalid input: '<!'ELEMENT">"")""]"invalid input: '<!'ENTITY"#FIXED""#IMPLIED""NDATA"invalid input: '<!'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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XMLTokenizer.Type
Returns the enum constant of this type with the specified name.static XMLTokenizer.Type[]
values()
Returns an array containing the constants of this enum type, 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
invalid input: '<'!DOCTYPE -
DOCTYPE_SYSTEM
"SYSTEM" -
DOCTYPE_PUBLIC
"PUBLIC" -
DOCTYPE_NDATA
"NDATA" -
DOCTYPE_ELEMENT
invalid input: '<!'ELEMENT -
DOCTYPE_ATTLIST
invalid input: '<!'ATTLIST -
DOCTYPE_ENTITY
invalid input: '<!'ENTITY -
DOCTYPE_NOTATION
invalid input: '<!'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"
-
-
Constructor Details
-
Type
private Type()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-