de.pdark.decentxml
Enum XMLTokenizer.Type

java.lang.Object
  extended by java.lang.Enum<XMLTokenizer.Type>
      extended by de.pdark.decentxml.XMLTokenizer.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<XMLTokenizer.Type>
Enclosing class:
XMLTokenizer

public static enum XMLTokenizer.Type
extends java.lang.Enum<XMLTokenizer.Type>

Types of tokens the tokenizer can return


Enum Constant Summary
ATTRIBUTE
          An attribute in the start tag
BEGIN_ELEMENT
          This is the name part of the start tag
BEGIN_ELEMENT_END
          The token which terminates the start tag.
CDATA
          A CDATA segment (including the CDATA marker)
COMMENT
          A comment (including the begin and end tag
CUSTOM_ATTRIBUTE
          A custom attribute.
CUSTOM_ELEMENT
          A custom element.
DOCTYPE
          
DOCTYPE_ALTERNATIVE
          "|"
DOCTYPE_ATTLIST
          
DOCTYPE_BEGIN_GROUP
          "("
DOCTYPE_BEGIN_SUBSET
          "["
DOCTYPE_CDATA
          "CDATA"
DOCTYPE_COMMENT
          "-- comment --" inside of a doctype
DOCTYPE_ELEMENT
          
DOCTYPE_END
          ">"
DOCTYPE_END_GROUP
          ")"
DOCTYPE_END_SUBSET
          "]"
DOCTYPE_ENTITY
          
DOCTYPE_FIXED
          "#FIXED"
DOCTYPE_IMPLIED
          "#IMPLIED"
DOCTYPE_NDATA
          "NDATA"
DOCTYPE_NOTATION
          
DOCTYPE_ONE_OR_MORE
          "+"
DOCTYPE_PARAMETER_ENTITY
          "%"
DOCTYPE_PARAMETER_ENTITY_END
          ";"
DOCTYPE_PCDATA
          "#PCDATA"
DOCTYPE_PUBLIC
          "PUBLIC"
DOCTYPE_QUOTED_TEXT
          Something between quotes in a doctype
DOCTYPE_REQUIRED
          "#REQUIRED"
DOCTYPE_SEQUENCE
          ","
DOCTYPE_SYSTEM
          "SYSTEM"
DOCTYPE_ZERO_OR_MORE
          "*"
DOCTYPE_ZERO_OR_ONE
          "?"
DOCUMENT
          A document node
DTD_WHITESPACE
          Whitespace in a doctype
ELEMENT
          Node-type for elements after they have been parsed
END_ELEMENT
          The end element
ENTITY
          An entity
PROCESSING_INSTRUCTION
          A processing instruction with the begin and end tag
TEXT
          A piece of text with the entities still intact
 
Method Summary
static XMLTokenizer.Type valueOf(java.lang.String name)
          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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TEXT

public static final XMLTokenizer.Type TEXT
A piece of text with the entities still intact


CDATA

public static final XMLTokenizer.Type CDATA
A CDATA segment (including the CDATA marker)


DTD_WHITESPACE

public static final XMLTokenizer.Type DTD_WHITESPACE
Whitespace in a doctype


PROCESSING_INSTRUCTION

public static final XMLTokenizer.Type PROCESSING_INSTRUCTION
A processing instruction with the begin and end tag


COMMENT

public static final XMLTokenizer.Type COMMENT
A comment (including the begin and end tag


BEGIN_ELEMENT

public static final XMLTokenizer.Type BEGIN_ELEMENT
This is the name part of the start tag


ATTRIBUTE

public static final XMLTokenizer.Type ATTRIBUTE
An attribute in the start tag


CUSTOM_ATTRIBUTE

public static final XMLTokenizer.Type CUSTOM_ATTRIBUTE
A custom attribute. Use this if you extended Attribute and need to distinguish the nodes from common attributes.


BEGIN_ELEMENT_END

public static final XMLTokenizer.Type BEGIN_ELEMENT_END
The token which terminates the start tag. It's value is either '>' or '/>' if it's an empty element


END_ELEMENT

public static final XMLTokenizer.Type END_ELEMENT
The end element


DOCUMENT

public static final XMLTokenizer.Type DOCUMENT
A document node


ELEMENT

public static final XMLTokenizer.Type ELEMENT
Node-type for elements after they have been parsed


CUSTOM_ELEMENT

public static final XMLTokenizer.Type CUSTOM_ELEMENT
A custom element. Use this if you extended Element and need to distinguish the nodes from common elements.


ENTITY

public static final XMLTokenizer.Type ENTITY
An entity


DOCTYPE

public static final XMLTokenizer.Type DOCTYPE

DOCTYPE_SYSTEM

public static final XMLTokenizer.Type DOCTYPE_SYSTEM
"SYSTEM"


DOCTYPE_PUBLIC

public static final XMLTokenizer.Type DOCTYPE_PUBLIC
"PUBLIC"


DOCTYPE_NDATA

public static final XMLTokenizer.Type DOCTYPE_NDATA
"NDATA"


DOCTYPE_ELEMENT

public static final XMLTokenizer.Type DOCTYPE_ELEMENT

DOCTYPE_ATTLIST

public static final XMLTokenizer.Type DOCTYPE_ATTLIST

DOCTYPE_ENTITY

public static final XMLTokenizer.Type DOCTYPE_ENTITY

DOCTYPE_NOTATION

public static final XMLTokenizer.Type DOCTYPE_NOTATION

DOCTYPE_QUOTED_TEXT

public static final XMLTokenizer.Type DOCTYPE_QUOTED_TEXT
Something between quotes in a doctype


DOCTYPE_BEGIN_SUBSET

public static final XMLTokenizer.Type DOCTYPE_BEGIN_SUBSET
"["


DOCTYPE_END_SUBSET

public static final XMLTokenizer.Type DOCTYPE_END_SUBSET
"]"


DOCTYPE_END

public static final XMLTokenizer.Type DOCTYPE_END
">"


DOCTYPE_COMMENT

public static final XMLTokenizer.Type DOCTYPE_COMMENT
"-- comment --" inside of a doctype


DOCTYPE_BEGIN_GROUP

public static final XMLTokenizer.Type DOCTYPE_BEGIN_GROUP
"("


DOCTYPE_END_GROUP

public static final XMLTokenizer.Type DOCTYPE_END_GROUP
")"


DOCTYPE_ALTERNATIVE

public static final XMLTokenizer.Type DOCTYPE_ALTERNATIVE
"|"


DOCTYPE_ZERO_OR_ONE

public static final XMLTokenizer.Type DOCTYPE_ZERO_OR_ONE
"?"


DOCTYPE_ZERO_OR_MORE

public static final XMLTokenizer.Type DOCTYPE_ZERO_OR_MORE
"*"


DOCTYPE_ONE_OR_MORE

public static final XMLTokenizer.Type DOCTYPE_ONE_OR_MORE
"+"


DOCTYPE_PARAMETER_ENTITY

public static final XMLTokenizer.Type DOCTYPE_PARAMETER_ENTITY
"%"


DOCTYPE_PARAMETER_ENTITY_END

public static final XMLTokenizer.Type DOCTYPE_PARAMETER_ENTITY_END
";"


DOCTYPE_PCDATA

public static final XMLTokenizer.Type DOCTYPE_PCDATA
"#PCDATA"


DOCTYPE_IMPLIED

public static final XMLTokenizer.Type DOCTYPE_IMPLIED
"#IMPLIED"


DOCTYPE_REQUIRED

public static final XMLTokenizer.Type DOCTYPE_REQUIRED
"#REQUIRED"


DOCTYPE_FIXED

public static final XMLTokenizer.Type DOCTYPE_FIXED
"#FIXED"


DOCTYPE_SEQUENCE

public static final XMLTokenizer.Type DOCTYPE_SEQUENCE
","


DOCTYPE_CDATA

public static final XMLTokenizer.Type DOCTYPE_CDATA
"CDATA"

Method Detail

values

public static XMLTokenizer.Type[] 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 (XMLTokenizer.Type c : XMLTokenizer.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static XMLTokenizer.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2008-2011. All Rights Reserved.