cc.plural.jsonij
Enum Value.TYPE

java.lang.Object
  extended by java.lang.Enum<Value.TYPE>
      extended by cc.plural.jsonij.Value.TYPE
All Implemented Interfaces:
Serializable, Comparable<Value.TYPE>
Enclosing class:
Value

public static enum Value.TYPE
extends Enum<Value.TYPE>

Type enumeration.


Enum Constant Summary
ARRAY
          ARRAY used to denote JSON Array Types.
FALSE
          False used to denote JSON False Types.
NULL
          Null used to denote JSON Null Types.
NUMERIC
          NUMERIC used to denote JSON Numeric Types.
OBJECT
          OBJECT used to denote JSON Object Types.
STRING
          STRING used to denote JSON String Types.
TRUE
          TRUE used to denote JSON True Types.
 
Method Summary
static Value.TYPE valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Value.TYPE[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OBJECT

public static final Value.TYPE OBJECT
OBJECT used to denote JSON Object Types.


ARRAY

public static final Value.TYPE ARRAY
ARRAY used to denote JSON Array Types.


STRING

public static final Value.TYPE STRING
STRING used to denote JSON String Types.


NUMERIC

public static final Value.TYPE NUMERIC
NUMERIC used to denote JSON Numeric Types.


TRUE

public static final Value.TYPE TRUE
TRUE used to denote JSON True Types.


FALSE

public static final Value.TYPE FALSE
False used to denote JSON False Types.


NULL

public static final Value.TYPE NULL
Null used to denote JSON Null Types.

Method Detail

values

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

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

valueOf

public static Value.TYPE 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


Copyright © 2012. All Rights Reserved.