net.sf.jsefa.xml.lowlevel.model
Enum XmlItemType

java.lang.Object
  extended by java.lang.Enum<XmlItemType>
      extended by net.sf.jsefa.xml.lowlevel.model.XmlItemType
All Implemented Interfaces:
Serializable, Comparable<XmlItemType>

public enum XmlItemType
extends Enum<XmlItemType>

The type of a XmlItem.

Author:
Norman Lahme-Huetig

Enum Constant Summary
ELEMENT_END
          Denotes that the xml item is the end of a xml element.
ELEMENT_START
          Denotes that the xml item is the start of a xml element.
NONE
          Used in cases when there is no xml item and thus no xml item type.
TEXT_CONTENT
          Denotes that the xml item represents text content (consecutive character nodes and CDATA sections).
UNKNOWN
          Denotes that the type of xml item is not supported.
 
Method Summary
static XmlItemType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XmlItemType[] 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 XmlItemType NONE
Used in cases when there is no xml item and thus no xml item type.


UNKNOWN

public static final XmlItemType UNKNOWN
Denotes that the type of xml item is not supported.


ELEMENT_START

public static final XmlItemType ELEMENT_START
Denotes that the xml item is the start of a xml element.


ELEMENT_END

public static final XmlItemType ELEMENT_END
Denotes that the xml item is the end of a xml element.


TEXT_CONTENT

public static final XmlItemType TEXT_CONTENT
Denotes that the xml item represents text content (consecutive character nodes and CDATA sections).

Method Detail

values

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

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

valueOf

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


Copyright © 2014. All rights reserved.