public static final class StdArraySerializers.StringArraySerializer extends StdArraySerializers.ArraySerializerBase<String[]> implements ResolvableSerializer
String[]
values.JsonSerializer.None
Modifier and Type | Field and Description |
---|---|
protected JsonSerializer<Object> |
_elementSerializer
Value serializer to use, if it's not the standard one
(if it is we can optimize serialization a lot)
|
_property, _valueTypeSerializer
_handledType
Constructor and Description |
---|
StdArraySerializers.StringArraySerializer(BeanProperty prop) |
Modifier and Type | Method and Description |
---|---|
ContainerSerializerBase<?> |
_withValueTypeSerializer(TypeSerializer vts)
Strings never add type info; hence, even if type serializer is suggested,
we'll ignore it...
|
JsonNode |
getSchema(SerializerProvider provider,
Type typeHint)
Note: since Jackson 1.9, default implementation claims type is "string"
|
void |
resolve(SerializerProvider provider)
Need to get callback to resolve value serializer, which may
be overridden by custom serializer
|
void |
serializeContents(String[] value,
JsonGenerator jgen,
SerializerProvider provider) |
serialize, serializeWithType
withValueTypeSerializer
createObjectNode, createSchemaNode, createSchemaNode, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
isUnwrappingSerializer, unwrappingSerializer
protected JsonSerializer<Object> _elementSerializer
public StdArraySerializers.StringArraySerializer(BeanProperty prop)
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
_withValueTypeSerializer
in class ContainerSerializerBase<String[]>
public void serializeContents(String[] value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonGenerationException
serializeContents
in class StdArraySerializers.ArraySerializerBase<String[]>
IOException
JsonGenerationException
public void resolve(SerializerProvider provider) throws JsonMappingException
resolve
in interface ResolvableSerializer
provider
- Provider that has constructed serializer this method
is called on.JsonMappingException
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
SerializerBase
getSchema
in interface SchemaAware
getSchema
in class SerializerBase<String[]>
provider
- The serializer provider.typeHint
- A hint about the type.