org.codehaus.jackson.map.ser
Class ArraySerializers.DoubleArraySerializer

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.ContainerSerializerBase<T>
              extended by org.codehaus.jackson.map.ser.ArraySerializers.AsArraySerializer<double[]>
                  extended by org.codehaus.jackson.map.ser.ArraySerializers.DoubleArraySerializer
All Implemented Interfaces:
SchemaAware
Enclosing class:
ArraySerializers

public static final class ArraySerializers.DoubleArraySerializer
extends ArraySerializers.AsArraySerializer<double[]>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer
JsonSerializer.None
 
Field Summary
 
Fields inherited from class org.codehaus.jackson.map.ser.ArraySerializers.AsArraySerializer
_property, _valueTypeSerializer
 
Fields inherited from class org.codehaus.jackson.map.ser.SerializerBase
_handledType
 
Constructor Summary
ArraySerializers.DoubleArraySerializer()
           
 
Method Summary
 ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
          Doubles never add type info; hence, even if type serializer is suggested, we'll ignore it...
 JsonNode getSchema(SerializerProvider provider, Type typeHint)
          Get the representation of the schema to which this serializer will conform.
 void serializeContents(double[] value, JsonGenerator jgen, SerializerProvider provider)
           
 
Methods inherited from class org.codehaus.jackson.map.ser.ArraySerializers.AsArraySerializer
serialize, serializeWithType
 
Methods inherited from class org.codehaus.jackson.map.ser.ContainerSerializerBase
withValueTypeSerializer
 
Methods inherited from class org.codehaus.jackson.map.ser.SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArraySerializers.DoubleArraySerializer

public ArraySerializers.DoubleArraySerializer()
Method Detail

_withValueTypeSerializer

public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
Doubles never add type info; hence, even if type serializer is suggested, we'll ignore it...

Specified by:
_withValueTypeSerializer in class ContainerSerializerBase<double[]>

serializeContents

public void serializeContents(double[] value,
                              JsonGenerator jgen,
                              SerializerProvider provider)
                       throws IOException,
                              JsonGenerationException
Specified by:
serializeContents in class ArraySerializers.AsArraySerializer<double[]>
Throws:
IOException
JsonGenerationException

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<double[]>
Parameters:
provider - The serializer provider.
typeHint - A hint about the type.
Returns:
Json-schema for this serializer.