org.gxml.u
Enum GuEventKind

java.lang.Object
  extended by java.lang.Enum<GuEventKind>
      extended by org.gxml.u.GuEventKind
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GuEventKind>

public enum GuEventKind
extends java.lang.Enum<GuEventKind>

Enumeration representing possible kinds of events in a sequential read of an XDM tree.


Enum Constant Summary
ATTRIBUTE
          An attribute event kind.
COMMENT
          A comment event kind.
END_DOCUMENT
          An end document event kind.
END_ELEMENT
          An end element event kind.
NAMESPACE
          A namespace event kind.
PROCESSING_INSTRUCTION
          A processing instruction event kind.
START_DOCUMENT
          A start document event kind.
START_ELEMENT
          A start element event kind.
TEXT
          A text event kind.
 
Method Summary
 int getEventType()
           
static GuEventKind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GuEventKind[] 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

ATTRIBUTE

public static final GuEventKind ATTRIBUTE
An attribute event kind.


COMMENT

public static final GuEventKind COMMENT
A comment event kind.


END_DOCUMENT

public static final GuEventKind END_DOCUMENT
An end document event kind.


END_ELEMENT

public static final GuEventKind END_ELEMENT
An end element event kind.


NAMESPACE

public static final GuEventKind NAMESPACE
A namespace event kind.


PROCESSING_INSTRUCTION

public static final GuEventKind PROCESSING_INSTRUCTION
A processing instruction event kind.


START_DOCUMENT

public static final GuEventKind START_DOCUMENT
A start document event kind.


START_ELEMENT

public static final GuEventKind START_ELEMENT
A start element event kind.


TEXT

public static final GuEventKind TEXT
A text event kind.

Method Detail

values

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

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

valueOf

public static GuEventKind 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

getEventType

public int getEventType()


Copyright © 2009 TIBCO Software Inc. All Rights Reserved.