public abstract class StaticListSerializerBase<T extends java.util.Collection<?>> extends StdSerializer<T> implements ContextualSerializer
JsonSerializer.None| Modifier and Type | Method and Description |
|---|---|
abstract JsonSerializer<?> |
_withResolved(BeanProperty prop,
JsonSerializer<?> ser,
java.lang.Boolean unwrapSingle) |
void |
acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint)
Default implementation specifies no format.
|
JsonSerializer<?> |
createContextual(SerializerProvider serializers,
BeanProperty property)
Method called to see if a different (or differently configured) serializer
is needed to serialize values of specified property.
|
JsonNode |
getSchema(SerializerProvider provider,
java.lang.reflect.Type typeHint)
Default implementation simply claims type is "string"; usually
overriden by custom serializers.
|
boolean |
isEmpty(SerializerProvider provider,
T value)
Method called to check whether given serializable value is
considered "empty" value (for purposes of suppressing serialization
of empty values).
|
boolean |
isEmpty(T value)
Deprecated.
|
getSchema, handledType, serialize, wrapAndThrow, wrapAndThrowgetDelegatee, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterIdpublic abstract JsonSerializer<?> _withResolved(BeanProperty prop, JsonSerializer<?> ser, java.lang.Boolean unwrapSingle)
public JsonSerializer<?> createContextual(SerializerProvider serializers, BeanProperty property) throws JsonMappingException
ContextualSerializercreateContextual in interface ContextualSerializerserializers - Serializer provider to use for accessing config, other serializersproperty - Method or field that represents the property
(and is used to access value to serialize).
Should be available; but there may be cases where caller can not provide it and
null is passed instead (in which case impls usually pass 'this' serializer as is)JsonMappingException@Deprecated public boolean isEmpty(T value)
JsonSerializerDefault implementation will consider only null values to be empty.
isEmpty in class JsonSerializer<T extends java.util.Collection<?>>public boolean isEmpty(SerializerProvider provider, T value)
JsonSerializerDefault implementation will consider only null values to be empty.
NOTE: replaces JsonSerializer.isEmpty(Object), which was deprecated in 2.5
isEmpty in class JsonSerializer<T extends java.util.Collection<?>>public JsonNode getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
StdSerializergetSchema in interface SchemaAwaregetSchema in class StdSerializer<T extends java.util.Collection<?>>provider - The serializer provider.typeHint - A hint about the type.public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) throws JsonMappingException
StdSerializeracceptJsonFormatVisitor in interface JsonFormatVisitableacceptJsonFormatVisitor in class StdSerializer<T extends java.util.Collection<?>>typeHint - Type of element (entity like property) being visitedJsonMappingException"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"