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 SummaryFields Modifier and Type Field Description private Converter<A>converterprivate AdapterKeykey
 - 
Constructor SummaryConstructors Constructor Description ConverterAdapter(Converter<A> converter, Type from)
 - 
Method SummaryAll 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- 
keyprivate final AdapterKey key 
 
- 
 - 
Method Detail- 
topublic A to(String s) Description copied from interface:AdapterTransfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
 - 
frompublic 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.
 - 
getTopublic Type getTo() - Specified by:
- getToin interface- TypeAwareAdapter<A,String>
 
 - 
getFrompublic Type getFrom() - Specified by:
- getFromin interface- TypeAwareAdapter<A,String>
 
 - 
getKeypublic AdapterKey getKey() - Specified by:
- getKeyin interface- TypeAwareAdapter<A,String>
 
 
- 
 
-