Uses of Interface
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
-
Packages that use JsonFormatVisitable Package Description com.fasterxml.jackson.databind Basic data binding (mapping) functionality that allows for reading JSON content into Java Objects (POJOs) and JSON Trees (JsonNode), as well as writing Java Objects and trees as JSON.com.fasterxml.jackson.databind.ext Contains extended support for "external" packages: things that may or may not be present in runtime environment, but that are commonly enough used so that explicit support can be added.com.fasterxml.jackson.databind.jsonFormatVisitors Classes used for exposing logical structure of POJOs as Jackson sees it, and exposed viaObjectMapper.acceptJsonFormatVisitor(Class, JsonFormatVisitorWrapper)andObjectMapper.acceptJsonFormatVisitor(com.fasterxml.jackson.databind.JavaType, JsonFormatVisitorWrapper)methods.com.fasterxml.jackson.databind.ser Contains implementation classes of serialization part of data binding.com.fasterxml.jackson.databind.ser.impl Contains implementation classes of serialization part of data binding.com.fasterxml.jackson.databind.ser.std -
-
Uses of JsonFormatVisitable in com.fasterxml.jackson.databind
Classes in com.fasterxml.jackson.databind that implement JsonFormatVisitable Modifier and Type Class Description classJsonSerializer<T>Abstract class that defines API used byObjectMapper(and other chainedJsonSerializers too) to serialize Objects of arbitrary types into JSON, using providedJsonGenerator.static classJsonSerializer.NoneThis marker class is only to be used with annotations, to indicate that no serializer is configured. -
Uses of JsonFormatVisitable in com.fasterxml.jackson.databind.ext
Classes in com.fasterxml.jackson.databind.ext that implement JsonFormatVisitable Modifier and Type Class Description static classCoreXMLSerializers.XMLGregorianCalendarSerializerclassDOMSerializerclassNioPathSerializer -
Uses of JsonFormatVisitable in com.fasterxml.jackson.databind.jsonFormatVisitors
Methods in com.fasterxml.jackson.databind.jsonFormatVisitors with parameters of type JsonFormatVisitable Modifier and Type Method Description voidJsonArrayFormatVisitor.Base. itemsFormat(JsonFormatVisitable handler, JavaType elementType)voidJsonArrayFormatVisitor. itemsFormat(JsonFormatVisitable handler, JavaType elementType)Visit method called for structured types, as well as possibly for leaf types (especially if handled by custom serializers).voidJsonMapFormatVisitor.Base. keyFormat(JsonFormatVisitable handler, JavaType keyType)voidJsonMapFormatVisitor. keyFormat(JsonFormatVisitable handler, JavaType keyType)Visit method called to indicate type of keys of the Map type being visitedvoidJsonObjectFormatVisitor.Base. optionalProperty(String name, JsonFormatVisitable handler, JavaType propertyTypeHint)voidJsonObjectFormatVisitor. optionalProperty(String name, JsonFormatVisitable handler, JavaType propertyTypeHint)voidJsonObjectFormatVisitor.Base. property(String name, JsonFormatVisitable handler, JavaType propertyTypeHint)voidJsonObjectFormatVisitor. property(String name, JsonFormatVisitable handler, JavaType propertyTypeHint)Callback method called when a non-POJO property (typically something like an Enum entry ofEnumMaptype) is being traversed.voidJsonMapFormatVisitor.Base. valueFormat(JsonFormatVisitable handler, JavaType valueType)voidJsonMapFormatVisitor. valueFormat(JsonFormatVisitable handler, JavaType valueType)Visit method called afterJsonMapFormatVisitor.keyFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.JavaType)to allow visiting of the value type -
Uses of JsonFormatVisitable in com.fasterxml.jackson.databind.ser
Classes in com.fasterxml.jackson.databind.ser that implement JsonFormatVisitable Modifier and Type Class Description classBeanSerializerSerializer class that can serialize Java objects that map to JSON Object output.classContainerSerializer<T>Intermediate base class for serializers used for serializing types that contain element(s) of other types, such as arrays,Collections (Lists,Setsetc) andMaps and iterable things (Iterators). -
Uses of JsonFormatVisitable in com.fasterxml.jackson.databind.ser.impl
Classes in com.fasterxml.jackson.databind.ser.impl that implement JsonFormatVisitable Modifier and Type Class Description classBeanAsArraySerializerSpecialized POJO serializer that differs fromBeanSerializerin that instead of producing a JSON Object it will output a JSON Array, omitting field names, and serializing values in specified serialization order.classFailingSerializerSpecial bogus "serializer" that will throwJsonMappingExceptionif itsFailingSerializer.serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)gets invoked.classIndexedListSerializerThis is an optimized serializer for Lists that can be efficiently traversed by index (as opposed to others, such asLinkedListthat cannot}.classIndexedStringListSerializerEfficient implement for serializingLists that contains Strings and are random-accessible.classIteratorSerializerclassMapEntrySerializerclassStringArraySerializerStandard serializer used forString[]values.classStringCollectionSerializerEfficient implement for serializingCollections that contain Strings.classTypeWrappedSerializerSimple serializer that will call configured type serializer, passing in configured data serializer, and exposing it all as a simple serializer.classUnknownSerializerclassUnwrappingBeanSerializer -
Uses of JsonFormatVisitable in com.fasterxml.jackson.databind.ser.std
Classes in com.fasterxml.jackson.databind.ser.std that implement JsonFormatVisitable Modifier and Type Class Description classArraySerializerBase<T>Intermediate base class for serializers used for various Java arrays.classAsArraySerializerBase<T>Base class for serializers that will output contents as JSON arrays; typically serializers used forCollectionand array types.classAtomicReferenceSerializerclassBeanSerializerBaseBase class both for the standard bean serializer, and couple of variants that only differ in small details.classBooleanSerializerSerializer used for primitive boolean, as well as java.util.Boolean wrapper type.classByteArraySerializerUnlike other integral number array serializers, we do not just print out byte values as numbers.classByteBufferSerializerclassCalendarSerializerStandard serializer forCalendar.classClassSerializerAlso: default bean access will not do much good with Class.class.classCollectionSerializerFallback serializer for cases where Collection is not known to be of type for which more specializer serializer exists (such as index-accessible List).classDateSerializerFor efficiency, we will serialize Dates as longs, instead of potentially more readable Strings.classDateTimeSerializerBase<T>classEnumSerializerStandard serializer used forEnumtypes.classEnumSetSerializerclassFileSerializerFor now, File objects get serialized by just outputting absolute (but not canonical) name as String valueclassInetAddressSerializerSimple serializer forInetAddress.classInetSocketAddressSerializerSimple serializer forInetSocketAddress.classIterableSerializerclassJsonValueSerializerSerializer class that can serialize Object that have aJsonValueannotation to indicate that serialization should be done by calling the method annotated, and serializing result it returns.classMapSerializerStandard serializer implementation for serializing {link java.util.Map} types.classNonTypedScalarSerializerBase<T>Deprecated.classNullSerializerThis is a simple dummy serializer that will just output literal JSON null value whenever serialization is requested.classNumberSerializerAs a fallback, we may need to use this serializer for other types ofNumbers: both custom types and "big" numbers likeBigIntegerandBigDecimal.static classNumberSerializers.Base<T>Shared base class for actual primitive/wrapper number serializers.static classNumberSerializers.DoubleSerializerThis is the special serializer for regularDoubles (and primitive doubles)static classNumberSerializers.FloatSerializerstatic classNumberSerializers.IntegerSerializerThis is the special serializer for regularIntegers (and primitive ints)static classNumberSerializers.IntLikeSerializerSimilar toNumberSerializers.IntegerSerializer, but will not cast to Integer: instead, cast is toNumber, and conversion is by callingNumber.intValue().static classNumberSerializers.LongSerializerstatic classNumberSerializers.ShortSerializerclassObjectArraySerializerGeneric serializer for Object arrays (Object[]).classRawSerializer<T>This is a simple dummy serializer that will just output raw values by calling toString() on value to serialize.classReferenceTypeSerializer<T>Base implementation for values ofReferenceType.classSerializableSerializerGeneric handler for types that implementJsonSerializable.classSqlDateSerializerCompared to regularDateserialization, we do use String representation here.classSqlTimeSerializerclassStaticListSerializerBase<T extends Collection<?>>Intermediate base class for Lists, Collections and Arrays that contain static (non-dynamic) value types.static classStdArraySerializers.BooleanArraySerializerstatic classStdArraySerializers.CharArraySerializerCharacter arrays are different from other integral number arrays in that they are most likely to be textual data, and should be written as Strings, not arrays of entries.static classStdArraySerializers.DoubleArraySerializerstatic classStdArraySerializers.FloatArraySerializerstatic classStdArraySerializers.IntArraySerializerstatic classStdArraySerializers.LongArraySerializerstatic classStdArraySerializers.ShortArraySerializerprotected static classStdArraySerializers.TypedPrimitiveArraySerializer<T>Intermediate base class used for cases where we may add type information (excludes boolean/int/double arrays).classStdDelegatingSerializerSerializer implementation where given Java type is first converted to an intermediate "delegate type" (using a configuredConverter, and then this delegate value is serialized by Jackson.static classStdJdkSerializers.AtomicBooleanSerializerstatic classStdJdkSerializers.AtomicIntegerSerializerstatic classStdJdkSerializers.AtomicLongSerializerclassStdKeySerializerDeprecated.Since 2.8, useStdKeySerializers.Defaultinstead.static classStdKeySerializers.DefaultThis is a "chameleon" style multi-type key serializer for simple standard JDK types.static classStdKeySerializers.DynamicKey serializer used when key type is not known statically, and actual key serializer needs to be dynamically located.static classStdKeySerializers.EnumKeySerializerSpecialized instance to use for Enum keys, as per [databind#1322]static classStdKeySerializers.StringKeySerializerSimple and fast key serializer when keys are Strings.classStdScalarSerializer<T>classStdSerializer<T>Base class used by all standard serializers, and can also be used for custom serializers (in fact, this is the recommended base class to use).classStringSerializerThis is the special serializer for regularStrings.classTimeZoneSerializerclassTokenBufferSerializerWe also want to directly support serialization ofTokenBuffer; and since it is part of core package, it cannot implementJsonSerializable(which is only included in the mapper package)classToStringSerializerSimple general purpose serializer, useful for any type for whichObject.toString()returns the desired JSON value.classToStringSerializerBaseIntermediate base class that serves as base for standardToStringSerializeras well as for custom subtypes that want to add processing for converting from value to output into itsStringrepresentation (whereas standard version simply calls value object'stoString()method).classUUIDSerializerSpecializedJsonSerializerto outputUUIDs.
-