com.ibm.xml.xapi

Enum XNodeView.Kind

  1. java.lang.Object
  2. extended byjava.lang.Enum<XNodeView.Kind>
  3. extended bycom.ibm.xml.xapi.XNodeView.Kind
All implemented interfaces:
java.io.Serializable, java.lang.Comparable<XNodeView.Kind>
Enclosing interface:
XNodeView

  1. public static enum XNodeView.Kind
  2. extends java.lang.Enum<XNodeView.Kind>
Enumeration of node kinds. Values are the same as those defined by DOM.

Enum Constant Summary

Enum Constant and Description
ATTRIBUTE
COMMENT
DOCUMENT
ELEMENT
NAMESPACE_DECL
NONE
PROCESSING_INSTRUCTION
TEXT

Method Summary

Modifier and Type Method and Description
  1. int
getValue()
Get the value of the enumerator.
  1. static
  2. XNodeView.Kind
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
  1. static
  2. 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

  1. public static final XNodeView.Kind NONE

ELEMENT

  1. public static final XNodeView.Kind ELEMENT

ATTRIBUTE

  1. public static final XNodeView.Kind ATTRIBUTE

TEXT

  1. public static final XNodeView.Kind TEXT

NAMESPACE_DECL

  1. public static final XNodeView.Kind NAMESPACE_DECL

PROCESSING_INSTRUCTION

  1. public static final XNodeView.Kind PROCESSING_INSTRUCTION

COMMENT

  1. public static final XNodeView.Kind COMMENT

DOCUMENT

  1. public static final XNodeView.Kind DOCUMENT

Method Detail

values

  1. 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

  1. public static XNodeView.Kind valueOf( java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValue

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