Enum JsonUtils.Types
- java.lang.Object
-
- java.lang.Enum<JsonUtils.Types>
-
- org.exoplatform.ws.frameworks.json.impl.JsonUtils.Types
-
- All Implemented Interfaces:
Serializable,Comparable<JsonUtils.Types>
- Enclosing class:
- JsonUtils
public static enum JsonUtils.Types extends Enum<JsonUtils.Types>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_BOOLEANArray of booleans.ARRAY_BYTEArray of bytes.ARRAY_CHARArray of chars.ARRAY_DOUBLEArray of doubles.ARRAY_FLOATArray of floats.ARRAY_INTArray of ints.ARRAY_LONGArray of longs.ARRAY_OBJECTArray of Java Objects (beans).ARRAY_SHORTArray of shorts.ARRAY_STRINGArray of strings.BOOLEANBoolean.BYTEByte.CHARChar.CLASSjava.lang.ClassCOLLECTIONCollection.DOUBLEDouble.ENUMEnum.FLOATFloat.INTInteger.LONGLong.MAPMap.NULLCorresponding to null value.SHORTShort.STRINGString.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonUtils.TypesvalueOf(String name)Returns the enum constant of this type with the specified name.static JsonUtils.Types[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final JsonUtils.Types BYTE
Byte.
-
SHORT
public static final JsonUtils.Types SHORT
Short.
-
INT
public static final JsonUtils.Types INT
Integer.
-
LONG
public static final JsonUtils.Types LONG
Long.
-
FLOAT
public static final JsonUtils.Types FLOAT
Float.
-
DOUBLE
public static final JsonUtils.Types DOUBLE
Double.
-
BOOLEAN
public static final JsonUtils.Types BOOLEAN
Boolean.
-
CHAR
public static final JsonUtils.Types CHAR
Char.
-
STRING
public static final JsonUtils.Types STRING
String.
-
NULL
public static final JsonUtils.Types NULL
Corresponding to null value.
-
ARRAY_BYTE
public static final JsonUtils.Types ARRAY_BYTE
Array of bytes.
-
ARRAY_SHORT
public static final JsonUtils.Types ARRAY_SHORT
Array of shorts.
-
ARRAY_INT
public static final JsonUtils.Types ARRAY_INT
Array of ints.
-
ARRAY_LONG
public static final JsonUtils.Types ARRAY_LONG
Array of longs.
-
ARRAY_FLOAT
public static final JsonUtils.Types ARRAY_FLOAT
Array of floats.
-
ARRAY_DOUBLE
public static final JsonUtils.Types ARRAY_DOUBLE
Array of doubles.
-
ARRAY_BOOLEAN
public static final JsonUtils.Types ARRAY_BOOLEAN
Array of booleans.
-
ARRAY_CHAR
public static final JsonUtils.Types ARRAY_CHAR
Array of chars.
-
ARRAY_STRING
public static final JsonUtils.Types ARRAY_STRING
Array of strings.
-
ARRAY_OBJECT
public static final JsonUtils.Types ARRAY_OBJECT
Array of Java Objects (beans).
-
COLLECTION
public static final JsonUtils.Types COLLECTION
Collection.
-
MAP
public static final JsonUtils.Types MAP
Map.
-
ENUM
public static final JsonUtils.Types ENUM
Enum.
-
CLASS
public static final JsonUtils.Types CLASS
java.lang.Class
-
-
Method Detail
-
values
public static JsonUtils.Types[] 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 (JsonUtils.Types c : JsonUtils.Types.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonUtils.Types 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 nameNullPointerException- if the argument is null
-
-