Package org.apache.johnzon.mapper.access
Class KnownNotOpenedJavaTypesAccessMode.InlineWriter<T,F>
- java.lang.Object
-
- org.apache.johnzon.mapper.access.KnownNotOpenedJavaTypesAccessMode.InlineWriter<T,F>
-
- All Implemented Interfaces:
AccessMode.DecoratedType
,AccessMode.Writer
- Enclosing class:
- KnownNotOpenedJavaTypesAccessMode
private static class KnownNotOpenedJavaTypesAccessMode.InlineWriter<T,F> extends Object implements AccessMode.Writer
-
-
Field Summary
Fields Modifier and Type Field Description private BiConsumer
setter
private Type
type
-
Constructor Summary
Constructors Modifier Constructor Description private
InlineWriter(BiConsumer<T,F> setter, Type type)
-
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 globalConfig)
void
write(Object instance, Object value)
-
-
-
Field Detail
-
setter
private final BiConsumer setter
-
type
private final Type type
-
-
Constructor Detail
-
InlineWriter
private InlineWriter(BiConsumer<T,F> setter, Type type)
-
-
Method Detail
-
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
-
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
-
-