Package org.apache.johnzon.mapper
Class Mappings.CompositeReader
- java.lang.Object
-
- org.apache.johnzon.mapper.Mappings.CompositeReader
-
- All Implemented Interfaces:
AccessMode.DecoratedType
,AccessMode.Reader
- Enclosing class:
- Mappings
private static class Mappings.CompositeReader extends Object implements AccessMode.Reader
-
-
Field Summary
Fields Modifier and Type Field Description private AccessMode.Reader[]
delegates
-
Constructor Summary
Constructors Constructor Description CompositeReader(AccessMode.Reader... delegates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Adapter<?,?>
findConverter()
ObjectConverter.Writer<?>
findObjectConverterWriter()
<T extends Annotation>
TgetAnnotation(Class<T> clazz)
<T extends Annotation>
TgetClassOrPackageAnnotation(Class<T> clazz)
Type
getType()
boolean
isNillable(boolean global)
Object
read(Object instance)
-
-
-
Field Detail
-
delegates
private final AccessMode.Reader[] delegates
-
-
Constructor Detail
-
CompositeReader
public CompositeReader(AccessMode.Reader... delegates)
-
-
Method Detail
-
read
public Object read(Object instance)
- Specified by:
read
in interfaceAccessMode.Reader
-
findObjectConverterWriter
public ObjectConverter.Writer<?> findObjectConverterWriter()
- Specified by:
findObjectConverterWriter
in interfaceAccessMode.Reader
-
getType
public Type getType()
- Specified by:
getType
in interfaceAccessMode.DecoratedType
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> clazz)
- Specified by:
getAnnotation
in interfaceAccessMode.DecoratedType
-
getClassOrPackageAnnotation
public <T extends Annotation> T getClassOrPackageAnnotation(Class<T> clazz)
- Specified by:
getClassOrPackageAnnotation
in interfaceAccessMode.DecoratedType
-
findConverter
public Adapter<?,?> findConverter()
- Specified by:
findConverter
in interfaceAccessMode.DecoratedType
-
isNillable
public boolean isNillable(boolean global)
- Specified by:
isNillable
in interfaceAccessMode.DecoratedType
-
-