public static class JsonFormat.Value extends Object implements JacksonAnnotationValue<JsonFormat>, Serializable
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) |
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 final JsonFormat.Value empty()
public static final JsonFormat.Value from(JsonFormat ann)
public final JsonFormat.Value withOverrides(JsonFormat.Value overrides)
public static JsonFormat.Value forPattern(String p)
public static JsonFormat.Value forShape(JsonFormat.Shape sh)
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 © 2008–2016 FasterXML. All rights reserved.