Uses of Class
org.apache.juneau.swap.ObjectSwap
Packages that use ObjectSwap
Package
Description
JSON Schema Data Transfer Objects
-
Uses of ObjectSwap in org.apache.juneau
Methods in org.apache.juneau that return ObjectSwapModifier and TypeMethodDescriptionprotected ObjectSwap<?,
?> ClassMeta.getChildObjectSwapForSwap
(Class<?> normalClass) Returns theObjectSwap
where 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 theObjectSwap
where 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
(BeanSession session) Returns theObjectSwap
associated with this class that's the best match for the specified session.final ObjectSwap<?,
?>[] BeanContext.getSwaps()
Java object swaps.final ObjectSwap<?,
?>[] BeanSession.getSwaps()
Java object swaps. -
Uses of ObjectSwap in org.apache.juneau.bean.jsonschema
Subclasses of ObjectSwap in org.apache.juneau.bean.jsonschemaModifier and TypeClassDescriptionstatic class
Used during parsing to convert theadditionalItems property to the correct class type.static class
Used during parsing to convert theadditionalProperties property to the correct class type.static class
Used during parsing to convert theitems property to the correct class type.static class
Used 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.uiModifier and TypeClassDescriptionclass
Generates an OpenAPI-UI interface from an OpenAPI document. -
Uses of ObjectSwap in org.apache.juneau.bean.swagger.ui
Subclasses of ObjectSwap in org.apache.juneau.bean.swagger.uiModifier and TypeClassDescriptionclass
Generates a Swagger-UI interface from a Swagger document. -
Uses of ObjectSwap in org.apache.juneau.collections
Methods in org.apache.juneau.collections with parameters of type ObjectSwapModifier and TypeMethodDescription<T> T
JsonMap.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.parser
Methods in org.apache.juneau.parser with parameters of type ObjectSwapModifier and TypeMethodDescriptionprotected Object
ParserSession.unswap
(ObjectSwap swap, Object o, ClassMeta<?> eType) Invokes the specified swap on the specified object. -
Uses of ObjectSwap in org.apache.juneau.serializer
Methods in org.apache.juneau.serializer with parameters of type ObjectSwapModifier and TypeMethodDescriptionprotected Object
SerializerSession.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.swap
Subclasses of ObjectSwap in org.apache.juneau.swapModifier and TypeClassDescriptionclass
AutoListSwap<T>
A dynamic object swap based on reflection of a Java class that converts objects to Lists.class
AutoMapSwap<T>
A dynamic object swap based on reflection of a Java class that converts Objects to serializable Maps.class
A dynamic object swap based on reflection of a Java class that converts Objects to Number serializable objects.class
A dynamic object swap based on reflection of a Java class that converts Objects to serializable objects.class
FunctionalSwap<T,
S> A subclass ofObjectSwap
that allows swap and unswap methods to be defined as functions.class
MapSwap<T>
Abstract subclass for object swaps that swap objects for object maps.class
StringSwap<T>
Abstract subclass for object swaps that swap objects for strings.class
SurrogateSwap<T,
F> SpecializedObjectSwap
forSurrogate
classes.Fields in org.apache.juneau.swap declared as ObjectSwapModifier and TypeFieldDescriptionstatic final ObjectSwap
ObjectSwap.NULL
Represents a non-existent object swap.Methods in org.apache.juneau.swap that return ObjectSwapModifier and TypeMethodDescriptionstatic ObjectSwap<?,
?> AutoListSwap.find
(BeanContext 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
(BeanContext 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
(BeanContext 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
(BeanContext 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.swaps
Subclasses of ObjectSwap in org.apache.juneau.swapsModifier and TypeClassDescriptionclass
Transforms beans intoStrings
by simply calling theObject.toString()
method.class
Transforms
arrays to Strings.byte []static class
Converts byte arrays to BASE-64 encoding.static class
Converts byte arrays to hex encoding.static class
Converts byte arrays to spaced-hex encoding.class
class
TransformsEnumerations
toList<Object>
objects.class
TransformsInputStreams
toStrings
.static class
ConvertsInputStreams
to BASE-64 encoding.static class
ConvertsInputStreams
to hex encoding.static class
ConvertsInputStreams
to spaced-hex encoding.class
TransformsIterators
toList<Object>
objects.class
class
TransformsMatchResults
toList
objects.class
Transforms the contents of aReader
into anObject
.static class
Reader transform for reading HTML text.static class
Reader transform for reading JSON text.static class
Reader transform for reading plain text.static class
Reader transform for reading plain text.static class
Reader transform for reading plain text.static class
Reader transform for reading XML text.class
TransformsReaders
toStrings
.class
TransformsStackTraceElements
toString
objects.class
Built-in object swap implementation class for the@Beanp(format)
annotation.class
Swap that convertsCalendar
objects to and from strings.static class
Default swap toDateTimeFormatter.BASIC_ISO_DATE
.static class
Default swap toDateTimeFormatter.ISO_DATE
.static class
Default swap toDateTimeFormatter.ISO_DATE_TIME
.static class
Default swap toDateTimeFormatter.ISO_INSTANT
.static class
Default swap toDateTimeFormatter.ISO_LOCAL_DATE
.static class
Default swap toDateTimeFormatter.ISO_LOCAL_DATE_TIME
.static class
Default swap toDateTimeFormatter.ISO_LOCAL_TIME
.static class
Default swap toDateTimeFormatter.ISO_OFFSET_DATE
.static class
Default swap toDateTimeFormatter.ISO_OFFSET_DATE_TIME
.static class
Default swap toDateTimeFormatter.ISO_OFFSET_TIME
.static class
Default swap toDateTimeFormatter.ISO_ORDINAL_DATE
.static class
Default swap toDateTimeFormatter.ISO_TIME
.static class
Default swap toDateTimeFormatter.ISO_WEEK_DATE
.static class
Default swap toDateTimeFormatter.ISO_ZONED_DATE_TIME
.static class
Default swap toDateTimeFormatter.RFC_1123_DATE_TIME
.class
Swap that convertsDate
objects to and from strings.static class
Default swap toDateTimeFormatter.BASIC_ISO_DATE
.static class
Default swap toDateTimeFormatter.ISO_DATE
.static class
Default swap toDateTimeFormatter.ISO_DATE_TIME
.static class
Default swap toDateTimeFormatter.ISO_INSTANT
.static class
Default swap toDateTimeFormatter.ISO_LOCAL_DATE
.static class
Default swap toDateTimeFormatter.ISO_LOCAL_DATE_TIME
.static class
Default swap toDateTimeFormatter.ISO_LOCAL_TIME
.static class
Default swap toDateTimeFormatter.ISO_OFFSET_DATE
.static class
Default swap toDateTimeFormatter.ISO_OFFSET_DATE_TIME
.static class
Default swap toDateTimeFormatter.ISO_OFFSET_TIME
.static class
Default swap toDateTimeFormatter.ISO_ORDINAL_DATE
.static class
Default swap toDateTimeFormatter.ISO_TIME
.static class
Default swap toDateTimeFormatter.ISO_WEEK_DATE
.static class
Default swap toDateTimeFormatter.ISO_ZONED_DATE_TIME
.static class
Default swap toDateTimeFormatter.RFC_1123_DATE_TIME
.class
Swap that convertsTemporal
objects to strings.static class
Default swap toDateTimeFormatter.BASIC_ISO_DATE
.static class
Default swap toDateTimeFormatter.ISO_DATE
.static class
Default swap toDateTimeFormatter.ISO_DATE_TIME
.static class
Default swap toDateTimeFormatter.ISO_INSTANT
.static class
Default swap toDateTimeFormatter.ISO_LOCAL_DATE
.static class
Default swap toDateTimeFormatter.ISO_LOCAL_DATE_TIME
.static class
Default swap toDateTimeFormatter.ISO_LOCAL_TIME
.static class
Default swap toDateTimeFormatter.ISO_OFFSET_DATE
.static class
Default swap toDateTimeFormatter.ISO_OFFSET_DATE_TIME
.static class
Default swap toDateTimeFormatter.ISO_OFFSET_TIME
.static class
Default swap toDateTimeFormatter.ISO_ORDINAL_DATE
.static class
Default swap toDateTimeFormatter.ISO_TIME
.static class
Default swap toDateTimeFormatter.ISO_WEEK_DATE
.static class
Default swap toDateTimeFormatter.ISO_WEEK_DATE
.static class
Default swap toDateTimeFormatter.ISO_WEEK_DATE
.static class
Default swap toDateTimeFormatter.ISO_ZONED_DATE_TIME
.static class
Default swap toDateTimeFormatter.RFC_1123_DATE_TIME
.class
class
class
TransformsXMLGregorianCalendars
to ISO8601 date-timeStrings
.class