Enum Class XMQNodeType
- All Implemented Interfaces:
Serializable, Comparable<XMQNodeType>, Constable
The node types of the xmq DOM. They mirror the libxml2 xmlElementType
values that xmq uses, since the xmq DOM is modelled after libxml2.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn attribute, eg x="1".An attribute list declaration inside a dtd.A cdata section.A comment.An xml document.A document type definition, the internal subset.An element, eg <a>.An element declaration inside a dtd.An entity declaration inside a dtd.An entity reference, eg ©An html document.A namespace node, only created by xpath namespace axis evaluation.A notation declaration inside a dtd.A parameter entity reference %name; between the declarations of a dtd, kept as written since entities are never expanded implicitly.A processing instruction, eg <?A text node. -
Method Summary
Modifier and TypeMethodDescriptionstatic XMQNodeTypeReturns the enum constant of this class with the specified name.static XMQNodeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ELEMENT
An element, eg <a>. -
ATTRIBUTE
An attribute, eg x="1". -
TEXT
A text node. -
CDATA
A cdata section. -
ENTITY_REF
An entity reference, eg © -
PI
A processing instruction, eg <?target data?> -
COMMENT
A comment. -
DOCUMENT
An xml document. -
HTML_DOCUMENT
An html document. -
DTD
A document type definition, the internal subset. -
ENTITY_DECL
An entity declaration inside a dtd. -
ELEMENT_DECL
An element declaration inside a dtd. -
ATTRIBUTE_DECL
An attribute list declaration inside a dtd. -
NOTATION_DECL
A notation declaration inside a dtd. -
PE_REF
A parameter entity reference %name; between the declarations of a dtd, kept as written since entities are never expanded implicitly. -
NAMESPACE
A namespace node, only created by xpath namespace axis evaluation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-