Enum Node.NodeType
- All Implemented Interfaces:
Serializable, Comparable<Node.NodeType>, java.lang.constant.Constable
- Enclosing class:
Node
Enumeration of XML node types supported by DomTrip.
Each node type corresponds to a specific XML construct and determines the node's behavior and capabilities within the XML tree.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionXML comment nodesDocument root nodesXML element nodes with attributes and potential childrenXML processing instruction nodesText content nodes including CDATA sections -
Method Summary
Modifier and TypeMethodDescriptionstatic Node.NodeTypeReturns the enum constant of this type with the specified name.static Node.NodeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ELEMENT
XML element nodes with attributes and potential children -
TEXT
Text content nodes including CDATA sections -
COMMENT
XML comment nodes -
DOCUMENT
Document root nodes -
PROCESSING_INSTRUCTION
XML processing instruction nodes
-
-
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
-