API

com.ibm.xml.xapi
Enum XNodeView.Kind

java.lang.Object
  extended by java.lang.Enum<XNodeView.Kind>
      extended by com.ibm.xml.xapi.XNodeView.Kind
All Implemented Interfaces:
Serializable, Comparable<XNodeView.Kind>
Enclosing interface:
XNodeView

public static enum XNodeView.Kind
extends Enum<XNodeView.Kind>

Enumeration of node kinds. Values are the same as those defined by DOM.


Enum Constant Summary
ATTRIBUTE
           
COMMENT
           
DOCUMENT
           
ELEMENT
           
NAMESPACE_DECL
           
NONE
           
PROCESSING_INSTRUCTION
           
TEXT
           
 
Method Summary
 int getValue()
          Get the value of the enumerator.
static XNodeView.Kind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XNodeView.Kind[] 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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final XNodeView.Kind NONE

ELEMENT

public static final XNodeView.Kind ELEMENT

ATTRIBUTE

public static final XNodeView.Kind ATTRIBUTE

TEXT

public static final XNodeView.Kind TEXT

NAMESPACE_DECL

public static final XNodeView.Kind NAMESPACE_DECL

PROCESSING_INSTRUCTION

public static final XNodeView.Kind PROCESSING_INSTRUCTION

COMMENT

public static final XNodeView.Kind COMMENT

DOCUMENT

public static final XNodeView.Kind DOCUMENT
Method Detail

values

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

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

valueOf

public static XNodeView.Kind 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

getValue

public int getValue()
Get the value of the enumerator. Values are the same as those defined by DOM.

Returns:
The enumerator value.

IBM Copyright 2004-2008