Enum 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 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
      • 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.
      • 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_COMMENT

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

        public static final XMLTokenizer.Type DOCTYPE_ZERO_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_REQUIRED

        public static final XMLTokenizer.Type DOCTYPE_REQUIRED
        "#REQUIRED"
    • Constructor Detail

      • Type

        private Type()
    • 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