public static class JsonFormat.Value extends java.lang.Object implements JacksonAnnotationValue<JsonFormat>, java.io.Serializable
JsonFormat
annotation.Constructor and Description |
---|
Value() |
Value(JsonFormat ann) |
Value(java.lang.String p,
JsonFormat.Shape sh,
java.util.Locale l,
java.lang.String tzStr,
java.util.TimeZone tz,
JsonFormat.Features f)
Deprecated.
|
Value(java.lang.String p,
JsonFormat.Shape sh,
java.util.Locale l,
java.lang.String tzStr,
java.util.TimeZone tz,
JsonFormat.Features f,
java.lang.Boolean lenient) |
Value(java.lang.String p,
JsonFormat.Shape sh,
java.util.Locale l,
java.util.TimeZone tz,
JsonFormat.Features f)
Deprecated.
|
Value(java.lang.String p,
JsonFormat.Shape sh,
java.util.Locale l,
java.util.TimeZone tz,
JsonFormat.Features f,
java.lang.Boolean lenient) |
Value(java.lang.String p,
JsonFormat.Shape sh,
java.lang.String localeStr,
java.lang.String tzStr,
JsonFormat.Features f)
Deprecated.
|
Value(java.lang.String p,
JsonFormat.Shape sh,
java.lang.String localeStr,
java.lang.String tzStr,
JsonFormat.Features f,
java.lang.Boolean lenient) |
Modifier and Type | Method and Description |
---|---|
static JsonFormat.Value |
empty() |
boolean |
equals(java.lang.Object o) |
static JsonFormat.Value |
forLeniency(boolean lenient) |
static JsonFormat.Value |
forPattern(java.lang.String p) |
static JsonFormat.Value |
forShape(JsonFormat.Shape sh) |
static JsonFormat.Value |
from(JsonFormat ann) |
java.lang.Boolean |
getFeature(JsonFormat.Feature f)
Accessor for checking whether this format value has specific setting for
given feature.
|
JsonFormat.Features |
getFeatures()
Accessor for getting full set of features enabled/disabled.
|
java.lang.Boolean |
getLenient() |
java.util.Locale |
getLocale() |
java.lang.String |
getPattern() |
JsonFormat.Shape |
getShape() |
java.util.TimeZone |
getTimeZone() |
int |
hashCode() |
boolean |
hasLenient()
Accessor for checking whether there is a setting for leniency.
|
boolean |
hasLocale() |
boolean |
hasPattern() |
boolean |
hasShape() |
boolean |
hasTimeZone() |
boolean |
isLenient() |
static JsonFormat.Value |
merge(JsonFormat.Value base,
JsonFormat.Value overrides)
Helper method that will try to combine values from two
JsonFormat.Value
instances, using one as base settings, and the other as overrides
to use instead of base values when defined; base values are only
use if override does not specify a value (matching value is null
or logically missing). |
static JsonFormat.Value |
mergeAll(JsonFormat.Value... values) |
java.lang.String |
timeZoneAsString()
Alternate access (compared to
getTimeZone() ) which is useful
when caller just wants time zone id to convert, but not as JDK
provided TimeZone |
java.lang.String |
toString() |
java.lang.Class<JsonFormat> |
valueFor()
Introspection method that may be used to find actual annotation that may be used
as the source for value instance.
|
JsonFormat.Value |
withFeature(JsonFormat.Feature f) |
JsonFormat.Value |
withLenient(java.lang.Boolean lenient) |
JsonFormat.Value |
withLocale(java.util.Locale l) |
JsonFormat.Value |
withoutFeature(JsonFormat.Feature f) |
JsonFormat.Value |
withOverrides(JsonFormat.Value overrides) |
JsonFormat.Value |
withPattern(java.lang.String p) |
JsonFormat.Value |
withShape(JsonFormat.Shape s) |
JsonFormat.Value |
withTimeZone(java.util.TimeZone tz) |
public Value()
public Value(JsonFormat ann)
public Value(java.lang.String p, JsonFormat.Shape sh, java.lang.String localeStr, java.lang.String tzStr, JsonFormat.Features f, java.lang.Boolean lenient)
public Value(java.lang.String p, JsonFormat.Shape sh, java.util.Locale l, java.util.TimeZone tz, JsonFormat.Features f, java.lang.Boolean lenient)
public Value(java.lang.String p, JsonFormat.Shape sh, java.util.Locale l, java.lang.String tzStr, java.util.TimeZone tz, JsonFormat.Features f, java.lang.Boolean lenient)
@Deprecated public Value(java.lang.String p, JsonFormat.Shape sh, java.util.Locale l, java.lang.String tzStr, java.util.TimeZone tz, JsonFormat.Features f)
@Deprecated public Value(java.lang.String p, JsonFormat.Shape sh, java.lang.String localeStr, java.lang.String tzStr, JsonFormat.Features f)
@Deprecated public Value(java.lang.String p, JsonFormat.Shape sh, java.util.Locale l, java.util.TimeZone tz, JsonFormat.Features f)
public static final JsonFormat.Value empty()
public static JsonFormat.Value merge(JsonFormat.Value base, JsonFormat.Value overrides)
JsonFormat.Value
instances, using one as base settings, and the other as overrides
to use instead of base values when defined; base values are only
use if override does not specify a value (matching value is null
or logically missing).
Note that one or both of value instances may be `null`, directly;
if both are `null`, result will also be `null`; otherwise never null.public static JsonFormat.Value mergeAll(JsonFormat.Value... values)
public static final JsonFormat.Value from(JsonFormat ann)
public final JsonFormat.Value withOverrides(JsonFormat.Value overrides)
public static JsonFormat.Value forPattern(java.lang.String p)
public static JsonFormat.Value forShape(JsonFormat.Shape sh)
public static JsonFormat.Value forLeniency(boolean lenient)
public JsonFormat.Value withPattern(java.lang.String p)
public JsonFormat.Value withShape(JsonFormat.Shape s)
public JsonFormat.Value withLocale(java.util.Locale l)
public JsonFormat.Value withTimeZone(java.util.TimeZone tz)
public JsonFormat.Value withLenient(java.lang.Boolean lenient)
public JsonFormat.Value withFeature(JsonFormat.Feature f)
public JsonFormat.Value withoutFeature(JsonFormat.Feature f)
public java.lang.Class<JsonFormat> valueFor()
JacksonAnnotationValue
valueFor
in interface JacksonAnnotationValue<JsonFormat>
public java.lang.String getPattern()
public JsonFormat.Shape getShape()
public java.util.Locale getLocale()
public java.lang.Boolean getLenient()
public boolean isLenient()
public java.lang.String timeZoneAsString()
getTimeZone()
) which is useful
when caller just wants time zone id to convert, but not as JDK
provided TimeZone
public java.util.TimeZone getTimeZone()
public boolean hasShape()
public boolean hasPattern()
public boolean hasLocale()
public boolean hasTimeZone()
public boolean hasLenient()
public java.lang.Boolean getFeature(JsonFormat.Feature f)
Boolean.TRUE
or
Boolean.FALSE
, indicating 'yes/no/dunno' choices, where `null` ("dunno")
indicates that the default handling should be used based on global defaults,
and there is no format override.public JsonFormat.Features getFeatures()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"