|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<JsonFormat.Shape>
com.fasterxml.jackson.annotation.JsonFormat.Shape
public static enum JsonFormat.Shape
Value enumeration used for indicating preferred Shape; translates loosely to JSON types, with some extra values to indicate less precise choices (i.e. allowing one of multiple actual shapes)
| Enum Constant Summary | |
|---|---|
ANY
Marker enum value that indicates "default" (or "whatever") choice; needed since Annotations can not have null values for enums. |
|
ARRAY
Value that indicates that (JSON) Array type should be used. |
|
BOOLEAN
Value that indicates that (JSON) boolean type (true, false) should be used. |
|
NUMBER
Value that indicates that a numeric (JSON) type should be used (but does not specify whether integer or floating-point representation should be used) |
|
NUMBER_FLOAT
Value that indicates that floating-point numeric type should be used |
|
NUMBER_INT
Value that indicates that integer number type should be used (and not NUMBER_FLOAT). |
|
OBJECT
Value that indicates that (JSON) Object type should be used. |
|
SCALAR
Value that indicates shape should not be structural (that is, not ARRAY or OBJECT, but can be any other shape. |
|
STRING
Value that indicates that (JSON) String type should be used. |
|
| Method Summary | |
|---|---|
boolean |
isNumeric()
|
boolean |
isStructured()
|
static JsonFormat.Shape |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JsonFormat.Shape[] |
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 |
|---|
public static final JsonFormat.Shape ANY
public static final JsonFormat.Shape SCALAR
ARRAY or OBJECT, but can be any other shape.
public static final JsonFormat.Shape ARRAY
public static final JsonFormat.Shape OBJECT
public static final JsonFormat.Shape NUMBER
public static final JsonFormat.Shape NUMBER_FLOAT
public static final JsonFormat.Shape NUMBER_INT
NUMBER_FLOAT).
public static final JsonFormat.Shape STRING
public static final JsonFormat.Shape BOOLEAN
| Method Detail |
|---|
public static JsonFormat.Shape[] values()
for (JsonFormat.Shape c : JsonFormat.Shape.values()) System.out.println(c);
public static JsonFormat.Shape valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean isNumeric()
public boolean isStructured()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||