Package org.codehaus.jackson.map.ser.std
Class StaticListSerializerBase<T extends java.util.Collection<?>>
- java.lang.Object
-
- org.codehaus.jackson.map.JsonSerializer<T>
-
- org.codehaus.jackson.map.ser.std.SerializerBase<T>
-
- org.codehaus.jackson.map.ser.std.StaticListSerializerBase<T>
-
- All Implemented Interfaces:
SchemaAware
- Direct Known Subclasses:
IndexedStringListSerializer
,StringCollectionSerializer
public abstract class StaticListSerializerBase<T extends java.util.Collection<?>> extends SerializerBase<T>
Intermediate base class for Lists, Collections and Arrays that contain static (non-dynamic) value types.- Since:
- 1.7
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer
JsonSerializer.None
-
-
Field Summary
Fields Modifier and Type Field Description protected BeanProperty
_property
Property that contains String List to serialize, if known.-
Fields inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
_handledType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StaticListSerializerBase(java.lang.Class<?> cls, BeanProperty property)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract JsonNode
contentSchema()
JsonNode
getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Note: since Jackson 1.9, default implementation claims type is "string"-
Methods inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, handledType, isDefaultSerializer, serialize, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
-
Methods inherited from class org.codehaus.jackson.map.JsonSerializer
isUnwrappingSerializer, serializeWithType, unwrappingSerializer
-
-
-
-
Field Detail
-
_property
protected final BeanProperty _property
Property that contains String List to serialize, if known.
-
-
Constructor Detail
-
StaticListSerializerBase
protected StaticListSerializerBase(java.lang.Class<?> cls, BeanProperty property)
-
-
Method Detail
-
getSchema
public JsonNode getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Description copied from class:SerializerBase
Note: since Jackson 1.9, default implementation claims type is "string"- Specified by:
getSchema
in interfaceSchemaAware
- Overrides:
getSchema
in classSerializerBase<T extends java.util.Collection<?>>
- Parameters:
provider
- The serializer provider.typeHint
- A hint about the type.- Returns:
- Json-schema for this serializer.
-
contentSchema
protected abstract JsonNode contentSchema()
-
-