org.codehaus.jackson.map.ser.impl
Class StaticListSerializerBase<T extends Collection<?>>

java.lang.Object
  extended by org.codehaus.jackson.map.JsonSerializer<T>
      extended by org.codehaus.jackson.map.ser.SerializerBase<T>
          extended by org.codehaus.jackson.map.ser.impl.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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer
JsonSerializer.None
 
Field Summary
protected  BeanProperty _property
          Property that contains String List to serialize, if known.
 
Fields inherited from class org.codehaus.jackson.map.ser.SerializerBase
_handledType
 
Constructor Summary
protected StaticListSerializerBase(Class<?> cls, BeanProperty property)
           
 
Method Summary
protected abstract  JsonNode contentSchema()
           
 JsonNode getSchema(SerializerProvider provider, Type typeHint)
          Get the representation of the schema to which this serializer will conform.
 
Methods inherited from class org.codehaus.jackson.map.ser.SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, handledType, isDefaultSerializer, serialize, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
 
Methods inherited from class org.codehaus.jackson.map.JsonSerializer
serializeWithType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_property

protected final BeanProperty _property
Property that contains String List to serialize, if known.

Constructor Detail

StaticListSerializerBase

protected StaticListSerializerBase(Class<?> cls,
                                   BeanProperty property)
Method Detail

getSchema

public JsonNode getSchema(SerializerProvider provider,
                          Type typeHint)
Description copied from interface: SchemaAware
Get the representation of the schema to which this serializer will conform.

Specified by:
getSchema in interface SchemaAware
Specified by:
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()