public final class JsonSerializerParameters extends Object
JsonFormat. They are specific to one
JsonSerializer and that's why they are not contained inside JsonSerializationContext.
For container serializers like IterableJsonSerializer, these parameters are passed to the value serializer.
| Modifier and Type | Field and Description |
|---|---|
static JsonSerializerParameters |
DEFAULT
Constant
DEFAULT |
| Constructor and Description |
|---|
JsonSerializerParameters() |
| Modifier and Type | Method and Description |
|---|---|
JsonSerializerParameters |
addIgnoredProperty(String ignoredProperty)
addIgnoredProperty
|
IdentitySerializationInfo |
getIdentityInfo()
Getter for the field
identityInfo. |
Set<String> |
getIgnoredProperties()
Getter for the field
ignoredProperties. |
com.fasterxml.jackson.annotation.JsonInclude.Include |
getInclude()
Getter for the field
include. |
String |
getLocale()
Getter for the field
locale. |
String |
getPattern()
Getter for the field
pattern. |
com.fasterxml.jackson.annotation.JsonFormat.Shape |
getShape()
Getter for the field
shape. |
com.google.gwt.i18n.client.TimeZone |
getTimezone()
Getter for the field
timezone. |
TypeSerializationInfo |
getTypeInfo()
Getter for the field
typeInfo. |
boolean |
isUnwrapped()
isUnwrapped
|
JsonSerializerParameters |
setIdentityInfo(IdentitySerializationInfo identityInfo)
Setter for the field
identityInfo. |
JsonSerializerParameters |
setInclude(com.fasterxml.jackson.annotation.JsonInclude.Include include)
Setter for the field
include. |
JsonSerializerParameters |
setLocale(String locale)
Setter for the field
locale. |
JsonSerializerParameters |
setPattern(String pattern)
Setter for the field
pattern. |
JsonSerializerParameters |
setShape(com.fasterxml.jackson.annotation.JsonFormat.Shape shape)
Setter for the field
shape. |
JsonSerializerParameters |
setTimezone(com.google.gwt.i18n.client.TimeZone timezone)
Setter for the field
timezone. |
JsonSerializerParameters |
setTypeInfo(TypeSerializationInfo typeInfo)
Setter for the field
typeInfo. |
JsonSerializerParameters |
setUnwrapped(boolean unwrapped)
Setter for the field
unwrapped. |
public static final JsonSerializerParameters DEFAULT
DEFAULTpublic JsonSerializerParameters setPattern(String pattern)
Setter for the field pattern.
pattern - a String object.JsonSerializerParameters object.public com.fasterxml.jackson.annotation.JsonFormat.Shape getShape()
Getter for the field shape.
JsonFormat.Shape object.public JsonSerializerParameters setShape(com.fasterxml.jackson.annotation.JsonFormat.Shape shape)
Setter for the field shape.
shape - a JsonFormat.Shape object.JsonSerializerParameters object.public JsonSerializerParameters setLocale(String locale)
Setter for the field locale.
locale - a String object.JsonSerializerParameters object.public com.google.gwt.i18n.client.TimeZone getTimezone()
Getter for the field timezone.
TimeZone object.public JsonSerializerParameters setTimezone(com.google.gwt.i18n.client.TimeZone timezone)
Setter for the field timezone.
timezone - a TimeZone object.JsonSerializerParameters object.public Set<String> getIgnoredProperties()
Getter for the field ignoredProperties.
Set object.public JsonSerializerParameters addIgnoredProperty(String ignoredProperty)
addIgnoredProperty
ignoredProperty - a String object.JsonSerializerParameters object.public com.fasterxml.jackson.annotation.JsonInclude.Include getInclude()
Getter for the field include.
JsonInclude.Include object.public JsonSerializerParameters setInclude(com.fasterxml.jackson.annotation.JsonInclude.Include include)
Setter for the field include.
include - a JsonInclude.Include object.JsonSerializerParameters object.public IdentitySerializationInfo getIdentityInfo()
Getter for the field identityInfo.
IdentitySerializationInfo object.public JsonSerializerParameters setIdentityInfo(IdentitySerializationInfo identityInfo)
Setter for the field identityInfo.
identityInfo - a IdentitySerializationInfo object.JsonSerializerParameters object.public TypeSerializationInfo getTypeInfo()
Getter for the field typeInfo.
TypeSerializationInfo object.public JsonSerializerParameters setTypeInfo(TypeSerializationInfo typeInfo)
Setter for the field typeInfo.
typeInfo - a TypeSerializationInfo object.JsonSerializerParameters object.public boolean isUnwrapped()
isUnwrapped
public JsonSerializerParameters setUnwrapped(boolean unwrapped)
Setter for the field unwrapped.
unwrapped - a boolean.JsonSerializerParameters object.Copyright © 2017. All Rights Reserved.