org.codehaus.jackson.schema
Interface SchemaAware

All Known Implementing Classes:
ArraySerializers.BooleanArraySerializer, ArraySerializers.ByteArraySerializer, ArraySerializers.CharArraySerializer, ArraySerializers.DoubleArraySerializer, ArraySerializers.FloatArraySerializer, ArraySerializers.IntArraySerializer, ArraySerializers.LongArraySerializer, ArraySerializers.ObjectArraySerializer, ArraySerializers.ShortArraySerializer, ArraySerializers.StringArraySerializer, BasicSerializerFactory.BooleanSerializer, BasicSerializerFactory.CalendarSerializer, BasicSerializerFactory.ClassSerializer, BasicSerializerFactory.DoubleSerializer, BasicSerializerFactory.FloatSerializer, BasicSerializerFactory.IntegerSerializer, BasicSerializerFactory.IntLikeSerializer, BasicSerializerFactory.LongSerializer, BasicSerializerFactory.NullSerializer, BasicSerializerFactory.NumberSerializer, BasicSerializerFactory.SerializableSerializer, BasicSerializerFactory.SqlDateSerializer, BasicSerializerFactory.SqlTimeSerializer, BasicSerializerFactory.StringSerializer, BasicSerializerFactory.UtilDateSerializer, BeanSerializer, ContainerSerializers.CollectionSerializer, ContainerSerializers.EnumMapSerializer, ContainerSerializers.EnumSetSerializer, ContainerSerializers.IndexedListSerializer, ContainerSerializers.IterableSerializer, ContainerSerializers.IteratorSerializer, ContainerSerializers.MapSerializer, DataHandlerJsonSerializer, DOMSerializer, EnumSerializer, JdkSerializers.FileSerializer, JodaSerializers.DateTimeSerializer, JsonValueSerializer, MapSerializer, SerializerBase, StdKeySerializer, ToStringSerializer, XmlAdapterJsonSerializer

public interface SchemaAware

Marker interface for schema-aware serializers.

Author:
Ryan Heaton

Method Summary
 JsonNode getSchema(SerializerProvider provider, Type typeHint)
          Get the representation of the schema to which this serializer will conform.
 

Method Detail

getSchema

JsonNode getSchema(SerializerProvider provider,
                   Type typeHint)
                   throws JsonMappingException
Get the representation of the schema to which this serializer will conform.

Parameters:
provider - The serializer provider.
typeHint - A hint about the type.
Returns:
Json-schema for this serializer.
Throws:
JsonMappingException