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