Class ConverterAdapter<A>
- java.lang.Object
-
- org.apache.johnzon.mapper.internal.ConverterAdapter<A>
-
- All Implemented Interfaces:
Adapter<A,String>,MapperConverter,TypeAwareAdapter<A,String>
public class ConverterAdapter<A> extends Object implements TypeAwareAdapter<A,String>
-
-
Field Summary
Fields Modifier and Type Field Description private Converter<A>converterprivate AdapterKeykey
-
Constructor Summary
Constructors Constructor Description ConverterAdapter(Converter<A> converter, Type from)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringfrom(A a)Take the POJO_TYPE object A from a POJO an convert it to JSON_TYPE which will be inserted into the JSON output.Converter<A>getConverter()TypegetFrom()AdapterKeygetKey()TypegetTo()Ato(String s)Transfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
-
-
-
Field Detail
-
key
private final AdapterKey key
-
-
Method Detail
-
to
public A to(String s)
Description copied from interface:AdapterTransfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
-
from
public String from(A a)
Description copied from interface:AdapterTake the POJO_TYPE object A from a POJO an convert it to JSON_TYPE which will be inserted into the JSON output.
-
getTo
public Type getTo()
- Specified by:
getToin interfaceTypeAwareAdapter<A,String>
-
getFrom
public Type getFrom()
- Specified by:
getFromin interfaceTypeAwareAdapter<A,String>
-
getKey
public AdapterKey getKey()
- Specified by:
getKeyin interfaceTypeAwareAdapter<A,String>
-
-