public abstract class StaticListSerializerBase<T extends Collection<?>> extends StdSerializer<T>
JsonSerializer.None
_handledType
Modifier | Constructor and Description |
---|---|
protected |
StaticListSerializerBase(Class<?> cls) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
acceptContentVisitor(JsonArrayFormatVisitor visitor) |
void |
acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor,
JavaType typeHint)
Default implementation specifies no format.
|
protected abstract JsonNode |
contentSchema() |
JsonNode |
getSchema(SerializerProvider provider,
Type typeHint)
Default implementation simply claims type is "string"; usually
overriden by custom serializers.
|
boolean |
isEmpty(T value)
Method called to check whether given serializable value is
considered "empty" value (for purposes of suppressing serialization
of empty values).
|
createObjectNode, createSchemaNode, createSchemaNode, getSchema, handledType, isDefaultSerializer, serialize, wrapAndThrow, wrapAndThrow
getDelegatee, isUnwrappingSerializer, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId
protected StaticListSerializerBase(Class<?> cls)
public boolean isEmpty(T value)
JsonSerializer
Default implementation will consider only null values to be empty.
isEmpty
in class JsonSerializer<T extends Collection<?>>
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
StdSerializer
getSchema
in interface SchemaAware
getSchema
in class StdSerializer<T extends Collection<?>>
provider
- The serializer provider.typeHint
- A hint about the type.public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
StdSerializer
acceptJsonFormatVisitor
in interface JsonFormatVisitable
acceptJsonFormatVisitor
in class StdSerializer<T extends Collection<?>>
typeHint
- Type of element (entity like property) being visitedprotected abstract JsonNode contentSchema()
protected abstract void acceptContentVisitor(JsonArrayFormatVisitor visitor)
Copyright © 2012 FasterXML. All Rights Reserved.