Enum NodeType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<NodeType>

    public enum NodeType
    extends java.lang.Enum<NodeType>
    The node type.
    Version:
    $Id$
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NodeType()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static NodeType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static NodeType[] 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

      • CDATA

        public static final NodeType CDATA
        A CDATA section.
      • CHARACTERS

        public static final NodeType CHARACTERS
        A run of characters.
      • COMMENT

        public static final NodeType COMMENT
        A comment.
      • DOCUMENT

        public static final NodeType DOCUMENT
        A document.
      • DOCUMENT_FRAGMENT

        public static final NodeType DOCUMENT_FRAGMENT
        A document fragment.
      • DTD

        public static final NodeType DTD
        A DTD.
      • ELEMENT

        public static final NodeType ELEMENT
        An element.
      • ENTITY

        public static final NodeType ENTITY
        An entity.
      • IGNORABLE_WHITESPACE

        public static final NodeType IGNORABLE_WHITESPACE
        A run of ignorable whitespace.
      • PROCESSING_INSTRUCTION

        public static final NodeType PROCESSING_INSTRUCTION
        A processing instruction.
      • SKIPPED_ENTITY

        public static final NodeType SKIPPED_ENTITY
        A skipped entity.
    • Constructor Detail

      • NodeType

        private NodeType()
    • Method Detail

      • values

        public static NodeType[] 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 (NodeType c : NodeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NodeType 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