Package gw.lang.reflect.json
Enum JsonSimpleType
- java.lang.Object
-
- java.lang.Enum<JsonSimpleType>
-
- gw.lang.reflect.json.JsonSimpleType
-
- All Implemented Interfaces:
IJsonType,java.io.Serializable,java.lang.Comparable<JsonSimpleType>
enum JsonSimpleType extends java.lang.Enum<JsonSimpleType> implements IJsonType
-
-
Constructor Summary
Constructors Modifier Constructor Description privateJsonSimpleType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonSimpleTypeget(java.lang.Object jsonObj)java.lang.StringgetName()IJsonParentTypegetParent()(package private) JsonSimpleTypemerge(JsonSimpleType other)static JsonSimpleTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JsonSimpleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
String
public static final JsonSimpleType String
-
Boolean
public static final JsonSimpleType Boolean
-
Character
public static final JsonSimpleType Character
-
Byte
public static final JsonSimpleType Byte
-
Short
public static final JsonSimpleType Short
-
Integer
public static final JsonSimpleType Integer
-
Long
public static final JsonSimpleType Long
-
Float
public static final JsonSimpleType Float
-
Double
public static final JsonSimpleType Double
-
BigDecimal
public static final JsonSimpleType BigDecimal
-
BigInteger
public static final JsonSimpleType BigInteger
-
-
Method Detail
-
values
public static JsonSimpleType[] 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 (JsonSimpleType c : JsonSimpleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonSimpleType 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 namejava.lang.NullPointerException- if the argument is null
-
getParent
public IJsonParentType getParent()
-
get
public static JsonSimpleType get(java.lang.Object jsonObj)
-
merge
JsonSimpleType merge(JsonSimpleType other)
-
-