public static class JsonFormat.Value extends Object implements JacksonAnnotationValue<JsonFormat>
JsonFormat
annotation.Constructor and Description |
---|
JsonFormat.Value() |
JsonFormat.Value(JsonFormat ann) |
JsonFormat.Value(String p,
JsonFormat.Shape sh,
Locale l,
String tzStr,
TimeZone tz)
Deprecated.
since 2.6
|
JsonFormat.Value(String p,
JsonFormat.Shape sh,
Locale l,
String tzStr,
TimeZone tz,
JsonFormat.Features f) |
JsonFormat.Value(String p,
JsonFormat.Shape sh,
Locale l,
TimeZone tz)
Deprecated.
since 2.6
|
JsonFormat.Value(String p,
JsonFormat.Shape sh,
Locale l,
TimeZone tz,
JsonFormat.Features f) |
JsonFormat.Value(String p,
JsonFormat.Shape sh,
String localeStr,
String tzStr)
Deprecated.
since 2.6
|
JsonFormat.Value(String p,
JsonFormat.Shape sh,
String localeStr,
String tzStr,
JsonFormat.Features f) |
Modifier and Type | Method and Description |
---|---|
static JsonFormat.Value |
forPattern(String p) |
Boolean |
getFeature(JsonFormat.Feature f)
Accessor for checking whether this format value has specific setting for
given feature.
|
Locale |
getLocale() |
String |
getPattern() |
JsonFormat.Shape |
getShape() |
TimeZone |
getTimeZone() |
boolean |
hasLocale() |
boolean |
hasPattern() |
boolean |
hasShape() |
boolean |
hasTimeZone() |
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 |
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 |
withLocale(Locale l) |
JsonFormat.Value |
withoutFeature(JsonFormat.Feature f) |
JsonFormat.Value |
withPattern(String p) |
JsonFormat.Value |
withShape(JsonFormat.Shape s) |
JsonFormat.Value |
withTimeZone(TimeZone tz) |
public JsonFormat.Value()
public JsonFormat.Value(JsonFormat ann)
public JsonFormat.Value(String p, JsonFormat.Shape sh, String localeStr, String tzStr, JsonFormat.Features f)
public JsonFormat.Value(String p, JsonFormat.Shape sh, Locale l, TimeZone tz, JsonFormat.Features f)
public JsonFormat.Value(String p, JsonFormat.Shape sh, Locale l, String tzStr, TimeZone tz, JsonFormat.Features f)
@Deprecated public JsonFormat.Value(String p, JsonFormat.Shape sh, Locale l, TimeZone tz)
@Deprecated public JsonFormat.Value(String p, JsonFormat.Shape sh, String localeStr, String tzStr)
@Deprecated public JsonFormat.Value(String p, JsonFormat.Shape sh, Locale l, String tzStr, TimeZone tz)
public static JsonFormat.Value forPattern(String p)
public JsonFormat.Value withPattern(String p)
public JsonFormat.Value withShape(JsonFormat.Shape s)
public JsonFormat.Value withLocale(Locale l)
public JsonFormat.Value withTimeZone(TimeZone tz)
public JsonFormat.Value withFeature(JsonFormat.Feature f)
public JsonFormat.Value withoutFeature(JsonFormat.Feature f)
public Class<JsonFormat> valueFor()
JacksonAnnotationValue
valueFor
in interface JacksonAnnotationValue<JsonFormat>
public String getPattern()
public JsonFormat.Shape getShape()
public Locale getLocale()
public String timeZoneAsString()
getTimeZone()
) which is useful
when caller just wants time zone id to convert, but not as JDK
provided TimeZone
public TimeZone getTimeZone()
public boolean hasShape()
public boolean hasPattern()
public boolean hasLocale()
public boolean hasTimeZone()
public 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.Copyright © 2014–2015 FasterXML. All rights reserved.