Package com.ubs.backend.annotations.json
Enum Class JSONType
- All Implemented Interfaces:
Serializable,Comparable<JSONType>,Constable
Datatypes which can be set for an object.
Always has to be set in a JsonElement and JsonFunction annotation
- See Also:
JsonField,JsonMethod
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDatatype BooleanUsed with custom ElementHandler, customType has to be set in the JsonElement or JsonFunction annotationDatatype DoubleEnum variables.Enum variables.Datatype FloatAll Datatypes which are Integers.Class with Json AnnotationAll kinds of listsDatatype String -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
FLOAT
Datatype Float- See Also:
Float,DefaultHandlers.FloatHandler
-
DOUBLE
Datatype Double- See Also:
Double,DefaultHandlers.DoubleHandler
-
INTEGER
All Datatypes which are Integers.- See Also:
Long,Integer,Short,Byte,DefaultHandlers.IntegerHandler
-
STRING
Datatype String- See Also:
DefaultHandlers.StringHandler
-
BOOLEAN
Datatype Boolean- See Also:
DefaultHandlers.BooleanHandler
-
LIST
All kinds of lists- See Also:
DefaultHandlers.ListHandler
-
JSON_ANNOTATED
Class with Json Annotation -
CUSTOM
Used with custom ElementHandler, customType has to be set in the JsonElement or JsonFunction annotation- See Also:
ElementHandler,JsonSerializableObject,JsonMethod,JsonField
-
ENUMERATED_ORDINAL
Enum variables. The Enum will be converted to it's ordinal number- See Also:
DefaultHandlers.EnumerationHandlerOrdinal,Enum
-
ENUMERATED_STRING
Enum variables. The Enum will be converted to it's ordinal number- See Also:
DefaultHandlers.EnumerationHandler,Enum
-
-
Constructor Details
-
JSONType
private JSONType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-