com.buildforge.services.common.api.xml
Enum ElementType

java.lang.Object
  extended by java.lang.Enum<ElementType>
      extended by com.buildforge.services.common.api.xml.ElementType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ElementType>

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

The element types that are accepted by this protocol.

See Also:
Element, Protocol.XML

Enum Constant Summary
ARRAY
          Array element.
FALSE
          False element.
HASH
          Hash element.
INTEGER
          Integer element.
NULL
          Null element.
NUMBER
          Number element.
PACKET
          Packet element.
REQUEST
          Request element.
STRING
          String element.
TRUE
          True element.
 
Method Summary
static ElementType fromName(java.lang.String name)
          Identifies an element type from the tag name.
static ElementType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ElementType[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

PACKET

public static final ElementType PACKET
Packet element.

See Also:
PacketElement

REQUEST

public static final ElementType REQUEST
Request element.

See Also:
RequestElement

NULL

public static final ElementType NULL
Null element.

See Also:
NullElement

TRUE

public static final ElementType TRUE
True element.

See Also:
TrueElement

FALSE

public static final ElementType FALSE
False element.

See Also:
FalseElement

INTEGER

public static final ElementType INTEGER
Integer element.

See Also:
IntegerElement

NUMBER

public static final ElementType NUMBER
Number element.

See Also:
NumberElement

STRING

public static final ElementType STRING
String element.

See Also:
StringElement

ARRAY

public static final ElementType ARRAY
Array element.

See Also:
ArrayElement

HASH

public static final ElementType HASH
Hash element.

See Also:
HashElement
Method Detail

values

public static final ElementType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ElementType c : ElementType.values())
        System.out.println(c);

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

valueOf

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

fromName

public static ElementType fromName(java.lang.String name)
Identifies an element type from the tag name.

Parameters:
name - the tag name to resolve
Returns:
the element type, or null if the tag is not recognized