Interface SchemaAware
-
- All Known Implementing Classes:
ArraySerializerBase
,AsArraySerializerBase
,AtomicReferenceSerializer
,BeanAsArraySerializer
,BeanSerializer
,BeanSerializerBase
,BooleanSerializer
,ByteArraySerializer
,ByteBufferSerializer
,CalendarSerializer
,ClassSerializer
,CollectionSerializer
,ComponentDataModelSerializer
,ContainerSerializer
,CoreXMLSerializers.XMLGregorianCalendarSerializer
,DateSerializer
,DateTimeSerializerBase
,DOMSerializer
,DurationSerializer
,EnumSerializer
,EnumSetSerializer
,FailingSerializer
,FileSerializer
,IndexedListSerializer
,IndexedStringListSerializer
,InetAddressSerializer
,InetSocketAddressSerializer
,InstantSerializer
,InstantSerializerBase
,IterableSerializer
,IteratorSerializer
,JsonValueSerializer
,LocalDateSerializer
,LocalDateTimeSerializer
,LocalTimeSerializer
,MapEntrySerializer
,MapSerializer
,MonthDaySerializer
,NioPathSerializer
,NonTypedScalarSerializerBase
,NullSerializer
,NumberSerializer
,NumberSerializers.Base
,NumberSerializers.DoubleSerializer
,NumberSerializers.FloatSerializer
,NumberSerializers.IntegerSerializer
,NumberSerializers.IntLikeSerializer
,NumberSerializers.LongSerializer
,NumberSerializers.ShortSerializer
,ObjectArraySerializer
,OffsetDateTimeSerializer
,OffsetTimeSerializer
,RawSerializer
,ReferenceTypeSerializer
,SerializableSerializer
,SqlBlobSerializer
,SqlDateSerializer
,SqlTimeSerializer
,StaticListSerializerBase
,StdArraySerializers.BooleanArraySerializer
,StdArraySerializers.CharArraySerializer
,StdArraySerializers.DoubleArraySerializer
,StdArraySerializers.FloatArraySerializer
,StdArraySerializers.IntArraySerializer
,StdArraySerializers.LongArraySerializer
,StdArraySerializers.ShortArraySerializer
,StdDelegatingSerializer
,StdJdkSerializers.AtomicBooleanSerializer
,StdJdkSerializers.AtomicIntegerSerializer
,StdJdkSerializers.AtomicLongSerializer
,StdKeySerializer
,StdKeySerializers.Default
,StdKeySerializers.Dynamic
,StdKeySerializers.EnumKeySerializer
,StdKeySerializers.StringKeySerializer
,StdScalarSerializer
,StdSerializer
,StringArraySerializer
,StringCollectionSerializer
,StringSerializer
,TimeZoneSerializer
,ToEmptyObjectSerializer
,TokenBufferSerializer
,ToStringSerializer
,ToStringSerializerBase
,UnknownSerializer
,UnsupportedTypeSerializer
,UnwrappingBeanSerializer
,UUIDSerializer
,YearMonthSerializer
,YearSerializer
,ZonedDateTimeSerializer
,ZonedDateTimeWithZoneIdSerializer
,ZoneIdSerializer
public interface SchemaAware
Marker interface for schema-aware serializers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JsonNode
getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Get the representation of the schema to which this serializer will conform.JsonNode
getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint, boolean isOptional)
Get the representation of the schema to which this serializer will conform.
-
-
-
Method Detail
-
getSchema
JsonNode getSchema(SerializerProvider provider, java.lang.reflect.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
-
getSchema
JsonNode getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint, boolean isOptional) throws JsonMappingException
Get the representation of the schema to which this serializer will conform.- Parameters:
provider
- The serializer provider.isOptional
- Is the type optionaltypeHint
- A hint about the type.- Returns:
- Json-schema for this serializer.
- Throws:
JsonMappingException
-
-