| Package | Description |
|---|---|
| com.tomasteubner.common.json |
This package contains the main interfaces and classes of common-json.
|
| com.tomasteubner.common.json.mapper |
This package contains some standard mappers.
|
| Modifier and Type | Method and Description |
|---|---|
JSONMapper<T> |
JSONMapperFactory.createInstance(Class<T> clazz,
Map<String,Type> args)
Create mapper.
|
static <T extends Collection> |
JSONMappings.getJSONCollectionMapper(Class<T> collectionClass,
Type elementType)
Get a JSONMapper for a Collection or create a new one.
|
static JSONMapper<Map> |
JSONMappings.getJSONMapMapper(Type keyType,
Type valueType)
Get a JSONMapper for a Map or create a new one.
|
static <T> JSONMapper<T> |
JSONMappings.getJSONMapper(Class<T> clazz)
Get a JSONMapper for a class or create a new one.
|
static <T> JSONMapper<T> |
JSONMappings.getJSONMapper(Class<T> clazz,
Map<String,Type> args)
Get a JSONMapper for a class or create a new one.
|
static <T> JSONMapper<T> |
JSONMappings.getJSONMapper(Type type,
Class<T> clazz)
Get a JSONMapper for a class or create a new one.
|
static <T> JSONMapper<T> |
JSONMappings.getJSONMapper(Type type,
Class<T> clazz,
Map<String,Type> args)
Get a JSONMapper for a class or create a new one.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
JSONMappings.setMapper(Class<T> clazz,
JSONMapper<T> mapper)
Declare mapper for a class.
|
static <T> void |
JSONMappings.setMapper(Type type,
Class<T> clazz,
JSONMapper<T> mapper)
Declare mapper for a class.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayMapper<T,E> |
class |
BooleanMapper |
class |
ByteMapper |
class |
CharacterMapper |
class |
CollectionMapper<T,E> |
class |
DateMapper |
class |
DoubleMapper |
class |
EnumMapper<T extends Enum<T>>
A simple mapper for enumeration types.
|
class |
FloatMapper |
class |
IntegerMapper |
class |
LongMapper |
class |
MapMapper<T,E> |
class |
RawMapper<T>
Mapper for @JSONRaw annotated class.
|
class |
ReflectiveMapper<T> |
class |
ShortMapper |
class |
SimpleMapper<T>
Default JSONMapper implementation for simple objects.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> JSONMapper<T> |
EnumMapper.create(Class<T> type) |
static <T,E> JSONMapper<T> |
MapMapper.create(Class<T> clazz,
JSONMapper<E> elementMapper) |
static <T,E> JSONMapper<T> |
CollectionMapper.create(Class<T> clazz,
JSONMapper<E> elementMapper) |
| Modifier and Type | Method and Description |
|---|---|
static <T,E> JSONMapper<T> |
MapMapper.create(Class<T> clazz,
JSONMapper<E> elementMapper) |
static <T,E> JSONMapper<T> |
CollectionMapper.create(Class<T> clazz,
JSONMapper<E> elementMapper) |
static ReflectiveMapper.AttributeMapper |
ReflectiveMapper.createBeanAttributeMapper(String name,
Method getter,
Method setter,
JSONMapper<?> mapper) |
static ReflectiveMapper.AttributeMapper |
ReflectiveMapper.createFieldMapper(Field field,
JSONMapper<?> mapper) |
| Constructor and Description |
|---|
ArrayMapper(Class<T> type,
JSONMapper<E> componentMapper) |
Copyright © 2014 Tomas Teubner. All rights reserved.