Package com.helger.xml.microdom
Enum EMicroNodeType
- java.lang.Object
-
- java.lang.Enum<EMicroNodeType>
-
- com.helger.xml.microdom.EMicroNodeType
-
- All Implemented Interfaces:
com.helger.commons.id.IHasIntID,Serializable,Comparable<EMicroNodeType>
public enum EMicroNodeType extends Enum<EMicroNodeType> implements com.helger.commons.id.IHasIntID
Denotes the type ofIMicroNodeobjects.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CDATACOMMENTCONTAINERDOCUMENTDOCUMENT_TYPEELEMENTENTITY_REFERENCEPROCESSING_INSTRUCTIONTEXT
-
Field Summary
Fields Modifier and Type Field Description static shortILLEGAL_DOM_NODE_TYPERepresents a non-existing DOM Node Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description shortgetDOMNodeType()static EMicroNodeTypegetFromIDOrNull(int nID)intgetID()booleanhasCorrespondingDOMNodeType()booleanisCDATA()booleanisText()static EMicroNodeTypevalueOf(String name)Returns 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.
-
-
-
Enum Constant Detail
-
CDATA
public static final EMicroNodeType CDATA
-
COMMENT
public static final EMicroNodeType COMMENT
-
CONTAINER
public static final EMicroNodeType CONTAINER
-
DOCUMENT
public static final EMicroNodeType DOCUMENT
-
DOCUMENT_TYPE
public static final EMicroNodeType DOCUMENT_TYPE
-
ELEMENT
public static final EMicroNodeType ELEMENT
-
ENTITY_REFERENCE
public static final EMicroNodeType ENTITY_REFERENCE
-
PROCESSING_INSTRUCTION
public static final EMicroNodeType PROCESSING_INSTRUCTION
-
TEXT
public static final EMicroNodeType TEXT
-
-
Field Detail
-
ILLEGAL_DOM_NODE_TYPE
public static final short ILLEGAL_DOM_NODE_TYPE
Represents a non-existing DOM Node Type- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static EMicroNodeType[] 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 (EMicroNodeType c : EMicroNodeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EMicroNodeType 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 nameNullPointerException- if the argument is null
-
getID
@Nonnegative public int 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
@Nullable public static EMicroNodeType getFromIDOrNull(int nID)
-
-