Package com.helger.xml.microdom
Enum EMicroNodeType
- All Implemented Interfaces:
com.helger.commons.id.IHasIntID,Serializable,Comparable<EMicroNodeType>,java.lang.constant.Constable
Denotes the type of
IMicroNode objects.- 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 ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortRepresents a non-existing DOM Node Type -
Method Summary
Modifier and TypeMethodDescriptionshortstatic EMicroNodeTypegetFromIDOrNull(int nID) intgetID()booleanbooleanisCDATA()booleanisText()static EMicroNodeTypeReturns the enum constant of this type with the specified name.static EMicroNodeType[]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
-
CDATA
-
COMMENT
-
CONTAINER
-
DOCUMENT
-
DOCUMENT_TYPE
-
ELEMENT
-
ENTITY_REFERENCE
-
PROCESSING_INSTRUCTION
-
TEXT
-
-
Field Details
-
ILLEGAL_DOM_NODE_TYPE
public static final short ILLEGAL_DOM_NODE_TYPERepresents a non-existing DOM Node Type- See Also:
-
-
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
-
hasCorrespondingDOMNodeType
public boolean hasCorrespondingDOMNodeType()- Returns:
trueif this micro node type has a corresponding DOM node type.falseif not.
-
getDOMNodeType
public short getDOMNodeType()- Returns:
- The corresponding DOM node type or
ILLEGAL_DOM_NODE_TYPEif this micro node type has no corresponding DOM node type.
-
isCDATA
public boolean isCDATA() -
isText
public boolean isText() -
getFromIDOrNull
-