org.xerial.json
Enum JSONValueType

java.lang.Object
  extended by java.lang.Enum<JSONValueType>
      extended by org.xerial.json.JSONValueType
All Implemented Interfaces:
Serializable, Comparable<JSONValueType>

public enum JSONValueType
extends Enum<JSONValueType>


Enum Constant Summary
Array
           
Boolean
           
Double
           
Integer
           
Null
           
Object
           
String
           
 
Method Summary
static JSONValueType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JSONValueType[] 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

Object

public static final JSONValueType Object

Array

public static final JSONValueType Array

String

public static final JSONValueType String

Integer

public static final JSONValueType Integer

Double

public static final JSONValueType Double

Boolean

public static final JSONValueType Boolean

Null

public static final JSONValueType Null
Method Detail

values

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

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

valueOf

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


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.