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