Uses of Class
org.apache.juneau.marshall.swap.spi.ObjectSwap
Packages that use ObjectSwap
Package
Description
Juneau
@Marshalled types for the
HAL (Hypertext Application Language)
hypermedia format, also covered by
draft-kelly-json-hal-08.Juneau
@Marshalled types for the
JSON:API v1.1 wire format.JSON Schema Data Transfer Objects
OpenAPI UI Generator
Swagger UI Generator
Marshalling API
Collections classes.
Parser API
Serializer API
Swap API
Predefined Swaps
-
Uses of ObjectSwap in org.apache.juneau.bean.hal
Subclasses of ObjectSwap in org.apache.juneau.bean.halModifier and TypeClassDescriptionclassPer-propertyObjectSwapapplied to HAL_linksmaps so that each map entry round-trips as either a singleHalLink(JSON object) or aHalLinkArray(JSON array) per the spec.classPer-propertyObjectSwapapplied to HAL_embeddedmaps so that each map entry round-trips as either a singleHalResource(JSON object) or aHalResourceArray(JSON array) per the spec. -
Uses of ObjectSwap in org.apache.juneau.bean.jsonapi
Subclasses of ObjectSwap in org.apache.juneau.bean.jsonapiModifier and TypeClassDescriptionclassPer-propertyObjectSwapapplied to JSON:APIlinksmaps so that each map entry round-trips as either a JSON string URL or aJsonApiLinkJSON object per the spec. -
Uses of ObjectSwap in org.apache.juneau.bean.jsonschema
Subclasses of ObjectSwap in org.apache.juneau.bean.jsonschemaModifier and TypeClassDescriptionstatic classUsed during parsing to convert theadditionalItems property to the correct class type.static classUsed during parsing to convert theadditionalProperties property to the correct class type.static classUsed during parsing to convert theitems property to the correct class type.static classUsed during parsing to convert thetype property to the correct class type. -
Uses of ObjectSwap in org.apache.juneau.bean.openapi3.ui
Subclasses of ObjectSwap in org.apache.juneau.bean.openapi3.ui -
Uses of ObjectSwap in org.apache.juneau.bean.swagger.ui
Subclasses of ObjectSwap in org.apache.juneau.bean.swagger.uiModifier and TypeClassDescriptionclassGenerates a Swagger-UI interface from a Swagger document. -
Uses of ObjectSwap in org.apache.juneau.marshall
Methods in org.apache.juneau.marshall that return ObjectSwapModifier and TypeMethodDescriptionprotected ObjectSwap<?,?> protected ObjectSwap<?,?> ClassMeta.findUnswap(Class<?> c) protected ObjectSwap<?,?> ClassMeta.getChildObjectSwapForSwap(Class<?> normalClass) Returns theObjectSwapwhere the specified class is the same/subclass of the normal class of one of the child POJO swaps associated with this class.protected ObjectSwap<?,?> ClassMeta.getChildObjectSwapForUnswap(Class<?> swapClass) Returns theObjectSwapwhere the specified class is the same/subclass of the swap class of one of the child POJO swaps associated with this class.ObjectSwap<T,?> ClassMeta.getSwap(MarshallingSession session) Returns theObjectSwapassociated with this class that's the best match for the specified session.Methods in org.apache.juneau.marshall that return types with arguments of type ObjectSwapModifier and TypeMethodDescriptionfinal List<ObjectSwap<?,?>> MarshallingContext.getSwaps()Java object swaps.final List<ObjectSwap<?,?>> MarshallingSession.getSwaps()Java object swaps. -
Uses of ObjectSwap in org.apache.juneau.marshall.collections
Methods in org.apache.juneau.marshall.collections with parameters of type ObjectSwapModifier and TypeMethodDescription<T> TMarshalledMap.getSwapped(String key, ObjectSwap<T, ?> objectSwap) Same asget(), but converts the raw value to the specified class type using the specified POJO swap. -
Uses of ObjectSwap in org.apache.juneau.marshall.parser
Methods in org.apache.juneau.marshall.parser with parameters of type ObjectSwapModifier and TypeMethodDescriptionprotected ObjectParserSession.unswap(ObjectSwap swap, Object o, ClassMeta<?> eType) Invokes the specified swap on the specified object. -
Uses of ObjectSwap in org.apache.juneau.marshall.serializer
Methods in org.apache.juneau.marshall.serializer with parameters of type ObjectSwapModifier and TypeMethodDescriptionprotected ObjectSerializerSession.swap(ObjectSwap swap, Object o) Invokes the specified swap on the specified object if the swap is not null. -
Uses of ObjectSwap in org.apache.juneau.marshall.swap.spi
Subclasses of ObjectSwap in org.apache.juneau.marshall.swap.spiModifier and TypeClassDescriptionclassAutoListSwap<T>A dynamic object swap based on reflection of a Java class that converts objects to Lists.classAutoMapSwap<T>A dynamic object swap based on reflection of a Java class that converts Objects to serializable Maps.classA dynamic object swap based on reflection of a Java class that converts Objects to Number serializable objects.classA dynamic object swap based on reflection of a Java class that converts Objects to serializable objects.classA dynamic string swap that serializes objects viaObject.toString()and deserializes viafromString(String),valueOf(String), or a single-String-argument constructor.classFunctionalSwap<T,S> A subclass ofObjectSwapthat allows swap and unswap methods to be defined as functions.classMapSwap<T>Abstract subclass for object swaps that swap objects for object maps.classStringSwap<T>Abstract subclass for object swaps that swap objects for strings.classSurrogateSwap<T,F> SpecializedObjectSwapforSurrogateclasses.Fields in org.apache.juneau.marshall.swap.spi declared as ObjectSwapModifier and TypeFieldDescriptionstatic final ObjectSwapObjectSwap.NULLRepresents a non-existent object swap.Methods in org.apache.juneau.marshall.swap.spi that return ObjectSwapModifier and TypeMethodDescriptionstatic ObjectSwap<?,?> AutoListSwap.find(MarshallingContext bc, ClassInfo ci) Look for constructors and methods on this class and construct a dynamic swap if it's possible to do so.static ObjectSwap<?,?> AutoMapSwap.find(MarshallingContext bc, ClassInfo ci) Look for constructors and methods on this class and construct a dynamic swap if it's possible to do so.static ObjectSwap<?,?> AutoNumberSwap.find(MarshallingContext bc, ClassInfo ci) Look for constructors and methods on this class and construct a dynamic swap if it's possible to do so.static ObjectSwap<?,?> AutoObjectSwap.find(MarshallingContext bc, ClassInfo ci) Inspects the specified class and returns a swap of this type if possible.static ObjectSwap<?,?> Find the default ObjectSwap for the specified class.ObjectSwap<T,?> ObjectSwap.forMediaTypes(MediaType[] mediaTypes) Sets the media types that this swap is associated with.ObjectSwap<T,?> ObjectSwap.withTemplate(String template) Sets the template string on this swap. -
Uses of ObjectSwap in org.apache.juneau.marshall.swaps
Subclasses of ObjectSwap in org.apache.juneau.marshall.swapsModifier and TypeClassDescriptionclassThin delegating swap for top-levelbyte[]values in textual serializers.classThin delegating swap forClassvalues driven by the context-configuredClassFormat.classTransformsInputStreamstoStrings.static classConvertsInputStreamsto BASE-64 encoding.static classConvertsInputStreamsto hex encoding.static classConvertsInputStreamsto spaced-hex encoding.classTransforms beans intoStringsby simply calling theObject.toString()method.classTransformsMatchResultstoListobjects.classTransforms the contents of aReaderinto anObject.static classReader transform for reading HTML text.static classReader transform for reading JSON text.static classReader transform for reading plain text.static classReader transform for reading plain text.static classReader transform for reading plain text.static classReader transform for reading XML text.classTransformsReaderstoStrings.classTransformsStackTraceElementstoStringobjects.classBuilt-in object swap implementation class for the@MarshalledProp(format)annotation.class