net.ranides.assira.xml
Enum NodeType

java.lang.Object
  extended by java.lang.Enum<NodeType>
      extended by net.ranides.assira.xml.NodeType
All Implemented Interfaces:
Serializable, Comparable<NodeType>, EnumInt

public enum NodeType
extends Enum<NodeType>
implements EnumInt

Author:
ranides

Enum Constant Summary
ATTRIBUTE
          The node is an Attr.
CDATA_SECTION
          The node is a CDATASection.
COMMENT
          The node is a Comment.
DOCUMENT
          The node is a Document.
DOCUMENT_FRAGMENT
          The node is a DocumentFragment.
DOCUMENT_TYPE
          The node is a DocumentType.
ELEMENT
          The node is an Element.
ENTITY
          The node is an Entity.
ENTITY_REFERENCE
          The node is an EntityReference.
NOTATION
          The node is a Notation.
PROCESSING_INSTRUCTION
          The node is a ProcessingInstruction.
TEXT
          The node is a Text node.
 
Method Summary
 boolean match(int value)
           
 boolean match(Node node)
           
 int toEnumKey()
           
static NodeType valueOf(int value)
           
static NodeType valueOf(Node node)
           
static NodeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NodeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ELEMENT

public static final NodeType ELEMENT
The node is an Element.


ATTRIBUTE

public static final NodeType ATTRIBUTE
The node is an Attr.


TEXT

public static final NodeType TEXT
The node is a Text node.


CDATA_SECTION

public static final NodeType CDATA_SECTION
The node is a CDATASection.


ENTITY_REFERENCE

public static final NodeType ENTITY_REFERENCE
The node is an EntityReference.


ENTITY

public static final NodeType ENTITY
The node is an Entity.


PROCESSING_INSTRUCTION

public static final NodeType PROCESSING_INSTRUCTION
The node is a ProcessingInstruction.


COMMENT

public static final NodeType COMMENT
The node is a Comment.


DOCUMENT

public static final NodeType DOCUMENT
The node is a Document.


DOCUMENT_TYPE

public static final NodeType DOCUMENT_TYPE
The node is a DocumentType.


DOCUMENT_FRAGMENT

public static final NodeType DOCUMENT_FRAGMENT
The node is a DocumentFragment.


NOTATION

public static final NodeType NOTATION
The node is a Notation.

Method Detail

values

public static NodeType[] 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 (NodeType c : NodeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NodeType 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 name
NullPointerException - if the argument is null

toEnumKey

public int toEnumKey()
Specified by:
toEnumKey in interface EnumInt

match

public boolean match(Node node)

match

public boolean match(int value)

valueOf

public static NodeType valueOf(Node node)

valueOf

public static NodeType valueOf(int value)


Copyright © 2013. All Rights Reserved.