public static enum JsonCreator.Mode extends Enum<JsonCreator.Mode>
Enum Constant and Description |
---|
DEFAULT
Pseudo-mode that indicates that caller is to use default heuristics for
choosing mode to use.
|
DELEGATING
Mode that indicates that if creator takes a single argument, the whole incoming
data value is to be bound into declared type of that argument; this "delegate"
value is then passed as the argument to creator.
|
DISABLED
Pseudo-mode that indicates that creator is not to be used.
|
PROPERTIES
Mode that indicates that the argument(s) for creator are to be bound from matching
properties of incoming Object value, using creator argument names (explicit or implicit)
to match incoming Object properties to arguments.
|
Modifier and Type | Method and Description |
---|---|
static JsonCreator.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonCreator.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonCreator.Mode DEFAULT
public static final JsonCreator.Mode DELEGATING
public static final JsonCreator.Mode PROPERTIES
Note that this mode is currently (2.5) always used for multiple-argument creators; the only ambiguous case is that of a single-argument creator.
public static final JsonCreator.Mode DISABLED
public static JsonCreator.Mode[] values()
for (JsonCreator.Mode c : JsonCreator.Mode.values()) System.out.println(c);
public static JsonCreator.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2008–2022 FasterXML. All rights reserved.