Enum EXMLDOMNodeType

  • All Implemented Interfaces:
    com.helger.commons.id.IHasIntID, Serializable, Comparable<EXMLDOMNodeType>

    public enum EXMLDOMNodeType
    extends Enum<EXMLDOMNodeType>
    implements com.helger.commons.id.IHasIntID
    Represents the different DOM node types. This is a type-safe version of the node types defined in Node.
    Author:
    Philip Helger
    • Enum Constant Detail

      • ELEMENT_NODE

        public static final EXMLDOMNodeType ELEMENT_NODE
        The node is an Element.
      • ATTRIBUTE_NODE

        public static final EXMLDOMNodeType ATTRIBUTE_NODE
        The node is an Attr.
      • TEXT_NODE

        public static final EXMLDOMNodeType TEXT_NODE
        The node is a Text node.
      • CDATA_SECTION_NODE

        public static final EXMLDOMNodeType CDATA_SECTION_NODE
        The node is a CDATASection.
      • ENTITY_REFERENCE_NODE

        public static final EXMLDOMNodeType ENTITY_REFERENCE_NODE
        The node is an EntityReference.
      • ENTITY_NODE

        public static final EXMLDOMNodeType ENTITY_NODE
        The node is an Entity.
      • PROCESSING_INSTRUCTION_NODE

        public static final EXMLDOMNodeType PROCESSING_INSTRUCTION_NODE
        The node is a ProcessingInstruction.
      • COMMENT_NODE

        public static final EXMLDOMNodeType COMMENT_NODE
        The node is a Comment.
      • DOCUMENT_NODE

        public static final EXMLDOMNodeType DOCUMENT_NODE
        The node is a Document.
      • DOCUMENT_TYPE_NODE

        public static final EXMLDOMNodeType DOCUMENT_TYPE_NODE
        The node is a DocumentType.
      • DOCUMENT_FRAGMENT_NODE

        public static final EXMLDOMNodeType DOCUMENT_FRAGMENT_NODE
        The node is a DocumentFragment.
      • NOTATION_NODE

        public static final EXMLDOMNodeType NOTATION_NODE
        The node is a Notation.
    • Method Detail

      • values

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

        public static EXMLDOMNodeType valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getID

        @Nonnegative
        public int getID()
        Specified by:
        getID in interface com.helger.commons.id.IHasIntID