A B C D E F G I J L M N P R S T 

A

addImplementation(Class<T>, Class<? extends T>) - Static method in class com.tomasteubner.common.json.JSONMappings
Declare default implementation for an interface.
ArrayMapper<T,E> - Class in com.tomasteubner.common.json.mapper
 
ArrayMapper(Class<T>, JSONMapper<E>) - Constructor for class com.tomasteubner.common.json.mapper.ArrayMapper
 
asArray(Object) - Method in class com.tomasteubner.common.json.mapper.SimpleMapper
 
attributeMappers - Variable in class com.tomasteubner.common.json.mapper.ReflectiveMapper
 

B

BooleanMapper - Class in com.tomasteubner.common.json.mapper
 
BooleanMapper() - Constructor for class com.tomasteubner.common.json.mapper.BooleanMapper
 
ByteMapper - Class in com.tomasteubner.common.json.mapper
 
ByteMapper() - Constructor for class com.tomasteubner.common.json.mapper.ByteMapper
 

C

CharacterMapper - Class in com.tomasteubner.common.json.mapper
 
CharacterMapper() - Constructor for class com.tomasteubner.common.json.mapper.CharacterMapper
 
CollectionMapper<T,E> - Class in com.tomasteubner.common.json.mapper
 
com.tomasteubner.common.json - package com.tomasteubner.common.json
This package contains the main interfaces and classes of common-json.
com.tomasteubner.common.json.mapper - package com.tomasteubner.common.json.mapper
This package contains some standard mappers.
componentFromJSON(Object, JSONArray, int) - Method in interface com.tomasteubner.common.json.JSONMapper
Convert Java array component from JSON array component.
componentFromJSON(Object, JSONArray, int) - Method in class com.tomasteubner.common.json.mapper.BooleanMapper
 
componentFromJSON(Object, JSONArray, int) - Method in class com.tomasteubner.common.json.mapper.ByteMapper
 
componentFromJSON(Object, JSONArray, int) - Method in class com.tomasteubner.common.json.mapper.CharacterMapper
 
componentFromJSON(Object, JSONArray, int) - Method in class com.tomasteubner.common.json.mapper.DoubleMapper
 
componentFromJSON(Object, JSONArray, int) - Method in class com.tomasteubner.common.json.mapper.FloatMapper
 
componentFromJSON(Object, JSONArray, int) - Method in class com.tomasteubner.common.json.mapper.IntegerMapper
 
componentFromJSON(Object, JSONArray, int) - Method in class com.tomasteubner.common.json.mapper.LongMapper
 
componentFromJSON(Object, JSONArray, int) - Method in class com.tomasteubner.common.json.mapper.ShortMapper
 
componentFromJSON(Object, JSONArray, int) - Method in class com.tomasteubner.common.json.mapper.SimpleMapper
 
componentToJSON(JSONArray, Object, int) - Method in interface com.tomasteubner.common.json.JSONMapper
Convert JSON array component to Java array component.
componentToJSON(JSONArray, Object, int) - Method in class com.tomasteubner.common.json.mapper.BooleanMapper
 
componentToJSON(JSONArray, Object, int) - Method in class com.tomasteubner.common.json.mapper.ByteMapper
 
componentToJSON(JSONArray, Object, int) - Method in class com.tomasteubner.common.json.mapper.CharacterMapper
 
componentToJSON(JSONArray, Object, int) - Method in class com.tomasteubner.common.json.mapper.DoubleMapper
 
componentToJSON(JSONArray, Object, int) - Method in class com.tomasteubner.common.json.mapper.FloatMapper
 
componentToJSON(JSONArray, Object, int) - Method in class com.tomasteubner.common.json.mapper.IntegerMapper
 
componentToJSON(JSONArray, Object, int) - Method in class com.tomasteubner.common.json.mapper.LongMapper
 
componentToJSON(JSONArray, Object, int) - Method in class com.tomasteubner.common.json.mapper.ShortMapper
 
componentToJSON(JSONArray, Object, int) - Method in class com.tomasteubner.common.json.mapper.SimpleMapper
 
constructor - Variable in class com.tomasteubner.common.json.mapper.ReflectiveMapper
 
copyFromJSON(T, JSONObject) - Method in class com.tomasteubner.common.json.mapper.ReflectiveMapper
 
copyToJSON(JSONObject, T) - Method in class com.tomasteubner.common.json.mapper.ReflectiveMapper
 
create(Class<T>, JSONMapper<E>) - Static method in class com.tomasteubner.common.json.mapper.CollectionMapper
 
create(Class<T>) - Static method in class com.tomasteubner.common.json.mapper.EnumMapper
 
create(Class<T>, JSONMapper<E>) - Static method in class com.tomasteubner.common.json.mapper.MapMapper
 
createBeanAttributeMapper(String, Method, Method, JSONMapper<?>) - Static method in class com.tomasteubner.common.json.mapper.ReflectiveMapper
 
createFieldMapper(Field, JSONMapper<?>) - Static method in class com.tomasteubner.common.json.mapper.ReflectiveMapper
 
createInstance(Class<T>, Map<String, Type>) - Method in interface com.tomasteubner.common.json.JSONMapperFactory
Create mapper.
createJSON(T) - Method in interface com.tomasteubner.common.json.JSONMapper
Convert object to JSON.
createJSON(T) - Method in class com.tomasteubner.common.json.mapper.ArrayMapper
 
createJSON(Boolean) - Method in class com.tomasteubner.common.json.mapper.BooleanMapper
 
createJSON(Byte) - Method in class com.tomasteubner.common.json.mapper.ByteMapper
 
createJSON(Character) - Method in class com.tomasteubner.common.json.mapper.CharacterMapper
 
createJSON(T) - Method in class com.tomasteubner.common.json.mapper.CollectionMapper
 
createJSON(Date) - Method in class com.tomasteubner.common.json.mapper.DateMapper
 
createJSON(Double) - Method in class com.tomasteubner.common.json.mapper.DoubleMapper
 
createJSON(T) - Method in class com.tomasteubner.common.json.mapper.EnumMapper
 
createJSON(Float) - Method in class com.tomasteubner.common.json.mapper.FloatMapper
 
createJSON(Integer) - Method in class com.tomasteubner.common.json.mapper.IntegerMapper
 
createJSON(Long) - Method in class com.tomasteubner.common.json.mapper.LongMapper
 
createJSON(T) - Method in class com.tomasteubner.common.json.mapper.MapMapper
 
createJSON(T) - Method in class com.tomasteubner.common.json.mapper.RawMapper
 
createJSON(T) - Method in interface com.tomasteubner.common.json.mapper.RawMapper.ToJSON
 
createJSON(T) - Method in class com.tomasteubner.common.json.mapper.ReflectiveMapper
 
createJSON(Short) - Method in class com.tomasteubner.common.json.mapper.ShortMapper
 
createJSON(T) - Method in class com.tomasteubner.common.json.mapper.SimpleMapper
 
createObject(Object) - Method in interface com.tomasteubner.common.json.JSONMapper
Create object from JSON representation.
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.ArrayMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.BooleanMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.ByteMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.CharacterMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.CollectionMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.DateMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.DoubleMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.EnumMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.FloatMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.IntegerMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.LongMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.MapMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.RawMapper
 
createObject(Object) - Method in interface com.tomasteubner.common.json.mapper.RawMapper.FromJSON
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.ReflectiveMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.ShortMapper
 
createObject(Object) - Method in class com.tomasteubner.common.json.mapper.SimpleMapper
 

D

DateMapper - Class in com.tomasteubner.common.json.mapper
 
DateMapper() - Constructor for class com.tomasteubner.common.json.mapper.DateMapper
 
DoubleMapper - Class in com.tomasteubner.common.json.mapper
 
DoubleMapper() - Constructor for class com.tomasteubner.common.json.mapper.DoubleMapper
 

E

EnumMapper<T extends Enum<T>> - Class in com.tomasteubner.common.json.mapper
A simple mapper for enumeration types.
equal(JSONObject, Object) - Static method in class com.tomasteubner.common.json.JSONHelper
 
equal(JSONArray, Object) - Static method in class com.tomasteubner.common.json.JSONHelper
 

F

fieldFromJSON(Object, Field, JSONObject) - Method in interface com.tomasteubner.common.json.JSONMapper
Convert component of JSON object to field of Java object.
fieldFromJSON(Object, Field, JSONObject) - Method in class com.tomasteubner.common.json.mapper.BooleanMapper
 
fieldFromJSON(Object, Field, JSONObject) - Method in class com.tomasteubner.common.json.mapper.ByteMapper
 
fieldFromJSON(Object, Field, JSONObject) - Method in class com.tomasteubner.common.json.mapper.CharacterMapper
 
fieldFromJSON(Object, Field, JSONObject) - Method in class com.tomasteubner.common.json.mapper.DoubleMapper
 
fieldFromJSON(Object, Field, JSONObject) - Method in class com.tomasteubner.common.json.mapper.FloatMapper
 
fieldFromJSON(Object, Field, JSONObject) - Method in class com.tomasteubner.common.json.mapper.IntegerMapper
 
fieldFromJSON(Object, Field, JSONObject) - Method in class com.tomasteubner.common.json.mapper.LongMapper
 
fieldFromJSON(Object, Field, JSONObject) - Method in class com.tomasteubner.common.json.mapper.ShortMapper
 
fieldFromJSON(Object, Field, JSONObject) - Method in class com.tomasteubner.common.json.mapper.SimpleMapper
 
fieldToJSON(JSONObject, Object, Field) - Method in interface com.tomasteubner.common.json.JSONMapper
Convert object field to component of JSON object.
fieldToJSON(JSONObject, Object, Field) - Method in class com.tomasteubner.common.json.mapper.BooleanMapper
 
fieldToJSON(JSONObject, Object, Field) - Method in class com.tomasteubner.common.json.mapper.ByteMapper
 
fieldToJSON(JSONObject, Object, Field) - Method in class com.tomasteubner.common.json.mapper.CharacterMapper
 
fieldToJSON(JSONObject, Object, Field) - Method in class com.tomasteubner.common.json.mapper.DoubleMapper
 
fieldToJSON(JSONObject, Object, Field) - Method in class com.tomasteubner.common.json.mapper.FloatMapper
 
fieldToJSON(JSONObject, Object, Field) - Method in class com.tomasteubner.common.json.mapper.IntegerMapper
 
fieldToJSON(JSONObject, Object, Field) - Method in class com.tomasteubner.common.json.mapper.LongMapper
 
fieldToJSON(JSONObject, Object, Field) - Method in class com.tomasteubner.common.json.mapper.ShortMapper
 
fieldToJSON(JSONObject, Object, Field) - Method in class com.tomasteubner.common.json.mapper.SimpleMapper
 
FloatMapper - Class in com.tomasteubner.common.json.mapper
 
FloatMapper() - Constructor for class com.tomasteubner.common.json.mapper.FloatMapper
 
FromJSON - Annotation Type in com.tomasteubner.common.json
Declare the annotated method to be used to create an instance of the declaring class from JSON.
fromJSON(Object, JSONObject) - Method in interface com.tomasteubner.common.json.mapper.ReflectiveMapper.AttributeMapper
 
fromJSONAnnotated(Class<T>, Method) - Static method in class com.tomasteubner.common.json.mapper.RawMapper
Create mapping from JSON to object from a @FromJSON annotated method.
fromJSONConstructor(Class<T>, Constructor<T>) - Static method in class com.tomasteubner.common.json.mapper.RawMapper
Create mapping from JSON to object by a constructor.

G

getClazz() - Method in exception com.tomasteubner.common.json.NonMappableException
Get the class involved.
getFromJSON(Object, Method, JSONObject, String) - Method in interface com.tomasteubner.common.json.JSONMapper
Set bean attribute from component of JSON object.
getFromJSON(Object, Method, JSONObject, String) - Method in class com.tomasteubner.common.json.mapper.BooleanMapper
 
getFromJSON(Object, Method, JSONObject, String) - Method in class com.tomasteubner.common.json.mapper.ByteMapper
 
getFromJSON(Object, Method, JSONObject, String) - Method in class com.tomasteubner.common.json.mapper.CharacterMapper
 
getFromJSON(Object, Method, JSONObject, String) - Method in class com.tomasteubner.common.json.mapper.DoubleMapper
 
getFromJSON(Object, Method, JSONObject, String) - Method in class com.tomasteubner.common.json.mapper.FloatMapper
 
getFromJSON(Object, Method, JSONObject, String) - Method in class com.tomasteubner.common.json.mapper.IntegerMapper
 
getFromJSON(Object, Method, JSONObject, String) - Method in class com.tomasteubner.common.json.mapper.LongMapper
 
getFromJSON(Object, Method, JSONObject, String) - Method in class com.tomasteubner.common.json.mapper.ShortMapper
 
getFromJSON(Object, Method, JSONObject, String) - Method in class com.tomasteubner.common.json.mapper.SimpleMapper
 
getImplementation(Class<T>) - Static method in class com.tomasteubner.common.json.JSONMappings
Find default implementation for an interface.
getInstance() - Static method in class com.tomasteubner.common.json.JSONMappings
Get the single instance.
getJSONCollectionMapper(Class<T>, Type) - Static method in class com.tomasteubner.common.json.JSONMappings
Get a JSONMapper for a Collection or create a new one.
getJSONMapMapper(Type, Type) - Static method in class com.tomasteubner.common.json.JSONMappings
Get a JSONMapper for a Map or create a new one.
getJSONMapper(Type, Class<T>, Map<String, Type>) - Static method in class com.tomasteubner.common.json.JSONMappings
Get a JSONMapper for a class or create a new one.
getJSONMapper(Type, Class<T>) - Static method in class com.tomasteubner.common.json.JSONMappings
Get a JSONMapper for a class or create a new one.
getJSONMapper(Class<T>, Map<String, Type>) - Static method in class com.tomasteubner.common.json.JSONMappings
Get a JSONMapper for a class or create a new one.
getJSONMapper(Class<T>) - Static method in class com.tomasteubner.common.json.JSONMappings
Get a JSONMapper for a class or create a new one.
getMessage() - Method in exception com.tomasteubner.common.json.NonMappableException
Retrieve error message text.
getType() - Method in exception com.tomasteubner.common.json.NonMappableException
Get the type concerned.

I

instance - Static variable in class com.tomasteubner.common.json.mapper.DateMapper
 
IntegerMapper - Class in com.tomasteubner.common.json.mapper
 
IntegerMapper() - Constructor for class com.tomasteubner.common.json.mapper.IntegerMapper
 
isJSONCompatible(Class<?>) - Static method in class com.tomasteubner.common.json.JSONMappings
 
isJSONConstructor(Constructor<T>) - Static method in class com.tomasteubner.common.json.mapper.RawMapper
Check if constructor may be used to convert from JSON to object.

J

JSONBean - Annotation Type in com.tomasteubner.common.json
Declare the annotated class, field, or getter method to be handled as a Java Bean regarding JSON mapping.
JSONHelper - Class in com.tomasteubner.common.json
 
JSONMapper<T> - Interface in com.tomasteubner.common.json
Maps object to JSON and vice versa.
JSONMapperFactory<T> - Interface in com.tomasteubner.common.json
Factory to create a JSONMapper.
JSONMappings - Class in com.tomasteubner.common.json
Factory for JSONMappers.
JSONMappings() - Constructor for class com.tomasteubner.common.json.JSONMappings
 
JSONMimeType - Annotation Type in com.tomasteubner.common.json
Defines a MIME type for a class having a JSONMapper.
JSONRaw - Annotation Type in com.tomasteubner.common.json
Declare the annotated class, field, or getter method to be handled as follows: If the annotated class Clazz has a method annotated @FromJSON declared as @FromJSON public static Clazz methodname(Object json) this method is used to convert from JSON to the annotated class.
JSONSerializable - Annotation Type in com.tomasteubner.common.json
Defines either a factory to create a class's JSONMapper or the JSONMapper class itself.
JSONTransient - Annotation Type in com.tomasteubner.common.json
Define a field within a class to be ignored by the standard JSON serialization.

L

LongMapper - Class in com.tomasteubner.common.json.mapper
 
LongMapper() - Constructor for class com.tomasteubner.common.json.mapper.LongMapper
 

M

MapMapper<T,E> - Class in com.tomasteubner.common.json.mapper
 

N

NonMappableException - Exception in com.tomasteubner.common.json
Exception thrown within the common-json library implementation when anything goes wrong.
NonMappableException(String, Type, Class<?>) - Constructor for exception com.tomasteubner.common.json.NonMappableException
Constructor.
NonMappableException(String, Type) - Constructor for exception com.tomasteubner.common.json.NonMappableException
Constructor.

P

parentMapper - Variable in class com.tomasteubner.common.json.mapper.ReflectiveMapper
 

R

RawMapper<T> - Class in com.tomasteubner.common.json.mapper
Mapper for @JSONRaw annotated class.
RawMapper(Class<T>, RawMapper.ToJSON<T>, RawMapper.FromJSON<T>) - Constructor for class com.tomasteubner.common.json.mapper.RawMapper
Create a new mapper for a @JSONRaw annotated class.
RawMapper.FromJSON<T> - Interface in com.tomasteubner.common.json.mapper
Mapping from JSON to object.
RawMapper.ToJSON<T> - Interface in com.tomasteubner.common.json.mapper
Mapping from object to JSON.
ReflectiveMapper<T> - Class in com.tomasteubner.common.json.mapper
 
ReflectiveMapper(Class<T>, Constructor<T>, ReflectiveMapper<? super T>, ReflectiveMapper.AttributeMapper[]) - Constructor for class com.tomasteubner.common.json.mapper.ReflectiveMapper
 
ReflectiveMapper.AttributeMapper - Interface in com.tomasteubner.common.json.mapper
 
reset() - Static method in class com.tomasteubner.common.json.JSONMappings
Reset the factory to its original state.

S

setMapper(Type, Class<T>, JSONMapper<T>) - Static method in class com.tomasteubner.common.json.JSONMappings
Declare mapper for a class.
setMapper(Class<T>, JSONMapper<T>) - Static method in class com.tomasteubner.common.json.JSONMappings
Declare mapper for a class.
setToJSON(JSONObject, String, Object, Method) - Method in interface com.tomasteubner.common.json.JSONMapper
Convert bean attribute to component of JSON object.
setToJSON(JSONObject, String, Object, Method) - Method in class com.tomasteubner.common.json.mapper.BooleanMapper
 
setToJSON(JSONObject, String, Object, Method) - Method in class com.tomasteubner.common.json.mapper.ByteMapper
 
setToJSON(JSONObject, String, Object, Method) - Method in class com.tomasteubner.common.json.mapper.CharacterMapper
 
setToJSON(JSONObject, String, Object, Method) - Method in class com.tomasteubner.common.json.mapper.DoubleMapper
 
setToJSON(JSONObject, String, Object, Method) - Method in class com.tomasteubner.common.json.mapper.FloatMapper
 
setToJSON(JSONObject, String, Object, Method) - Method in class com.tomasteubner.common.json.mapper.IntegerMapper
 
setToJSON(JSONObject, String, Object, Method) - Method in class com.tomasteubner.common.json.mapper.LongMapper
 
setToJSON(JSONObject, String, Object, Method) - Method in class com.tomasteubner.common.json.mapper.ShortMapper
 
setToJSON(JSONObject, String, Object, Method) - Method in class com.tomasteubner.common.json.mapper.SimpleMapper
 
ShortMapper - Class in com.tomasteubner.common.json.mapper
 
ShortMapper() - Constructor for class com.tomasteubner.common.json.mapper.ShortMapper
 
SimpleMapper<T> - Class in com.tomasteubner.common.json.mapper
Default JSONMapper implementation for simple objects.
SimpleMapper(Class<T>) - Constructor for class com.tomasteubner.common.json.mapper.SimpleMapper
Create this SimpleMapper.

T

toJSON(Object) - Static method in class com.tomasteubner.common.json.JSONHelper
 
toJSON(JSONObject, Object) - Method in interface com.tomasteubner.common.json.mapper.ReflectiveMapper.AttributeMapper
 
ToJSON - Annotation Type in com.tomasteubner.common.json
Declare the annotated method to be used to create a JSON representation of the declaring class.
toJSONAnnotated(Class<T>, Method) - Static method in class com.tomasteubner.common.json.mapper.RawMapper
Create mapping from object to JSON from a @ToJSON annotated method.
toJSONDefault(Class<T>) - Static method in class com.tomasteubner.common.json.mapper.RawMapper
Create default mapping from object to JSON.
toString() - Method in exception com.tomasteubner.common.json.NonMappableException
 
type - Variable in class com.tomasteubner.common.json.mapper.SimpleMapper
 
A B C D E F G I J L M N P R S T 

Copyright © 2014 Tomas Teubner. All rights reserved.