Class LocaleConverter
- java.lang.Object
- 
- org.apache.johnzon.mapper.converter.LocaleConverter
 
- 
- All Implemented Interfaces:
- Adapter<Locale,String>,- MapperConverter,- TypeAwareAdapter<Locale,String>
 
 public class LocaleConverter extends Object implements TypeAwareAdapter<Locale,String> 
- 
- 
Field SummaryFields Modifier and Type Field Description private AdapterKeykey
 - 
Constructor SummaryConstructors Constructor Description LocaleConverter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringfrom(Locale instance)Take the POJO_TYPE object A from a POJO an convert it to JSON_TYPE which will be inserted into the JSON output.TypegetFrom()AdapterKeygetKey()TypegetTo()Localeto(String locale)Transfer JSONTYPE_TYPE from JSON to POJO as POJO_TYPE.
 
- 
- 
- 
Field Detail- 
keyprivate final AdapterKey key 
 
- 
 - 
Method Detail- 
getTopublic Type getTo() - Specified by:
- getToin interface- TypeAwareAdapter<Locale,String>
 
 - 
getFrompublic Type getFrom() - Specified by:
- getFromin interface- TypeAwareAdapter<Locale,String>
 
 - 
getKeypublic AdapterKey getKey() - Specified by:
- getKeyin interface- TypeAwareAdapter<Locale,String>
 
 - 
frompublic String from(Locale instance) 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.
 
- 
 
-