public enum EMicroNodeType extends Enum<EMicroNodeType> implements com.helger.commons.id.IHasIntID
IMicroNode objects.| Enum Constant and Description |
|---|
CDATA |
COMMENT |
CONTAINER |
DOCUMENT |
DOCUMENT_TYPE |
ELEMENT |
ENTITY_REFERENCE |
PROCESSING_INSTRUCTION |
TEXT |
| Modifier and Type | Field and Description |
|---|---|
static short |
ILLEGAL_DOM_NODE_TYPE
Represents a non-existing DOM Node Type
|
| Modifier and Type | Method and Description |
|---|---|
short |
getDOMNodeType() |
static EMicroNodeType |
getFromIDOrNull(int nID) |
int |
getID() |
boolean |
hasCorrespondingDOMNodeType() |
boolean |
isCDATA() |
boolean |
isText() |
static EMicroNodeType |
valueOf(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.
|
public static final EMicroNodeType CDATA
public static final EMicroNodeType COMMENT
public static final EMicroNodeType CONTAINER
public static final EMicroNodeType DOCUMENT
public static final EMicroNodeType DOCUMENT_TYPE
public static final EMicroNodeType ELEMENT
public static final EMicroNodeType ENTITY_REFERENCE
public static final EMicroNodeType PROCESSING_INSTRUCTION
public static final EMicroNodeType TEXT
public static final short ILLEGAL_DOM_NODE_TYPE
public static EMicroNodeType[] values()
for (EMicroNodeType c : EMicroNodeType.values()) System.out.println(c);
public static EMicroNodeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnegative public int getID()
getID in interface com.helger.commons.id.IHasIntIDpublic boolean hasCorrespondingDOMNodeType()
true if this micro node type has a corresponding DOM
node type. false if not.public short getDOMNodeType()
ILLEGAL_DOM_NODE_TYPE
if this micro node type has no corresponding DOM node type.public boolean isCDATA()
public boolean isText()
@Nullable public static EMicroNodeType getFromIDOrNull(int nID)
Copyright © 2014–2017 Philip Helger. All rights reserved.