Package com.helger.xml.dom
Enum EXMLDOMNodeType
- All Implemented Interfaces:
com.helger.commons.id.IHasIntID,Serializable,Comparable<EXMLDOMNodeType>,java.lang.constant.Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe node is anAttr.The node is aCDATASection.The node is aComment.The node is aDocumentFragment.The node is aDocument.The node is aDocumentType.The node is anElement.The node is anEntity.The node is anEntityReference.The node is aNotation.The node is aProcessingInstruction.The node is aTextnode. -
Method Summary
Modifier and TypeMethodDescriptionstatic EXMLDOMNodeTypegetFromIDOrNull(int nID) intgetID()static EXMLDOMNodeTypeReturns the enum constant of this type with the specified name.static EXMLDOMNodeType[]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, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.helger.commons.id.IHasIntID
getIDObj
-
Enum Constant Details
-
ELEMENT_NODE
The node is anElement. -
ATTRIBUTE_NODE
The node is anAttr. -
TEXT_NODE
The node is aTextnode. -
CDATA_SECTION_NODE
The node is aCDATASection. -
ENTITY_REFERENCE_NODE
The node is anEntityReference. -
ENTITY_NODE
The node is anEntity. -
PROCESSING_INSTRUCTION_NODE
The node is aProcessingInstruction. -
COMMENT_NODE
The node is aComment. -
DOCUMENT_NODE
The node is aDocument. -
DOCUMENT_TYPE_NODE
The node is aDocumentType. -
DOCUMENT_FRAGMENT_NODE
The node is aDocumentFragment. -
NOTATION_NODE
The node is aNotation.
-
-
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
-
getID
- Specified by:
getIDin interfacecom.helger.commons.id.IHasIntID
-
getFromIDOrNull
-