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
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 JsonSerializer
JsonSerializer.None -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BeanPropertyProperty that contains String List to serialize, if known.Fields inherited from class SerializerBase
_handledType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStaticListSerializerBase(Class<?> cls, BeanProperty property) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract JsonNodegetSchema(SerializerProvider provider, Type typeHint) Note: since Jackson 1.9, default implementation claims type is "string"Methods inherited from class SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, handledType, isDefaultSerializer, serialize, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrowMethods inherited from class JsonSerializer
isUnwrappingSerializer, serializeWithType, unwrappingSerializer
-
Field Details
-
_property
Property that contains String List to serialize, if known.
-
-
Constructor Details
-
StaticListSerializerBase
-
-
Method Details
-
getSchema
Description copied from class:SerializerBaseNote: since Jackson 1.9, default implementation claims type is "string"- Specified by:
getSchemain interfaceSchemaAware- Overrides:
getSchemain classSerializerBase<T extends Collection<?>>- Parameters:
provider- The serializer provider.typeHint- A hint about the type.- Returns:
- Json-schema for this serializer.
-
contentSchema
-