org.codehaus.jackson.map.ser.std
Class StaticListSerializerBase<T extends 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 Collection<?>>
- extends SerializerBase<T>
Intermediate base class for Lists, Collections and Arrays
that contain static (non-dynamic) value types.
- Since:
- 1.7
Field Summary |
protected BeanProperty |
_property
Property that contains String List to serialize, if known. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_property
protected final BeanProperty _property
- Property that contains String List to serialize, if known.
StaticListSerializerBase
protected StaticListSerializerBase(Class<?> cls,
BeanProperty property)
getSchema
public JsonNode getSchema(SerializerProvider provider,
Type typeHint)
- Description copied from class:
SerializerBase
- Note: since Jackson 1.9, default implementation claims type is "string"
- Specified by:
getSchema
in interface SchemaAware
- Overrides:
getSchema
in class SerializerBase<T extends Collection<?>>
- Parameters:
provider
- The serializer provider.typeHint
- A hint about the type.
- Returns:
- Json-schema for this serializer.
contentSchema
protected abstract JsonNode contentSchema()