C D E F G I J M N P R S U

C

CGLIBProxyResolver - Class in it.negro.jajb.proxies
A ProxyResolver for cglib proxy classes
CGLIBProxyResolver() - Constructor for class it.negro.jajb.proxies.CGLIBProxyResolver
 
ConfigHandler - Class in it.negro.jajb
This is the DefaultHandler that reads and configures the xml configuration file informations
Converter - Class in it.negro.jajb.mapping
This class used for Converters mapping into jajb-config.xml
Converter(String, Class<?>) - Constructor for class it.negro.jajb.mapping.Converter
 
createElement(String) - Method in class it.negro.jajb.binding.JAJBBindMapping
Creates a JSONObject It is called when the flow meets a complex Java Object
createList(String, Class<?>, int) - Method in class it.negro.jajb.binding.JAJBBindMapping
Creates a JSONArray It is called when the flow meets an Array or a Collection

D

Default - Class in it.negro.jajb.annotation
 
Default() - Constructor for class it.negro.jajb.annotation.Default
 

E

endElement(String, String, String) - Method in class it.negro.jajb.MappingHandler
 
EntityAnnotation - Annotation Type in it.negro.jajb.annotation
This Annotation can be used to describe your JavaObjects that you would use for JSON binding.

F

FieldAnnotation - Annotation Type in it.negro.jajb.annotation
This Annotation can be used to describe the properties of the JavaObjects that you would use for JSON binding.

G

getArrayClass(Class<?>) - Static method in class it.negro.jajb.utility.Utility
This method return an array Class for the componentType Class passed.
getClass(String) - Static method in class it.negro.jajb.utility.Utility
Return correct primitive type class for typeName passed like, "int", "short", "float", etc.
getCollectionClass(String, Class<?>) - Static method in class it.negro.jajb.utility.Utility
Returns the correct collection class type for the passed collectionType and componentType passed parameters.
getConverters() - Method in class it.negro.jajb.ConfigHandler
 
getEntityWrapper(String) - Method in class it.negro.jajb.JAJBContext
Saves, if is not present into context, the EntityWrapper with passed key parameter like id, and returns it.
getId() - Method in class it.negro.jajb.mapping.Converter
 
getJSON(String) - Method in class it.negro.jajb.JAJB
Converts passed parameter jsonString into a JSON entity.
getJSON(File) - Method in class it.negro.jajb.JAJB
Reads the passed parameter file and uses it to create a JSON object o array.
getJSON(InputStream) - Method in class it.negro.jajb.JAJB
Reads the passed parameter inputStream content and uses it to create a JSON object o array.
getJSON(Reader) - Method in class it.negro.jajb.JAJB
Reads the passed parameter reader content and uses it to create a JSON object o array.
getJSONBuilder() - Static method in class it.negro.jajb.utility.Utility
Returns a JSONBuilder instance.
getLength(Object) - Method in class it.negro.jajb.binding.JAJBBindResolver
Returns met arg0 JSONArray length during unmarshall operation.
getMappingFiles() - Method in class it.negro.jajb.ConfigHandler
 
getProxyResolver() - Method in class it.negro.jajb.ConfigHandler
 
getProxyResolver() - Method in class it.negro.jajb.JAJBContext
 
getStaticInstance() - Static method in class it.negro.jajb.JAJBContext
Returns the unique singleton instance of JAJBContext.
getTargetClass(Object) - Method in class it.negro.jajb.proxies.CGLIBProxyResolver
 
getTargetClass(Object) - Method in interface it.negro.jajb.proxies.ProxyResolver
 
getTargetClass(Object) - Method in class it.negro.jajb.proxies.SpringJavaProxyResolver
 
getType() - Method in class it.negro.jajb.mapping.Converter
 
getValue(Object, String) - Method in class it.negro.jajb.binding.JAJBBindResolver
Returns the value of the attribute named "arg1" into arg0 that should be a JSONObject.
getValue(Object, int) - Method in class it.negro.jajb.binding.JAJBBindResolver
Return the value of the attribute at arg1 index into arg0 that should be a JSONArray

I

isArray(Object) - Method in class it.negro.jajb.binding.JAJBBindResolver
Says if met arg0 object during unmarshall is a JSONArray
isComplexType(Class<?>) - Static method in class it.negro.jajb.utility.Utility
Return true is passed parameter clazz is not primitive, is not an array, is not a Wrapper Class (Integer, Long, String, etc.), is not the Class of Object and is not a java.util.Date.
isWrapper(Class<?>) - Static method in class it.negro.jajb.utility.Utility
This method says if passed parameter Class is one of Byte, Short, Integer, Long, String, Character, Boolean, Float, Double or not.
it.negro.jajb - package it.negro.jajb
 
it.negro.jajb.annotation - package it.negro.jajb.annotation
 
it.negro.jajb.binding - package it.negro.jajb.binding
 
it.negro.jajb.mapping - package it.negro.jajb.mapping
 
it.negro.jajb.proxies - package it.negro.jajb.proxies
 
it.negro.jajb.utility - package it.negro.jajb.utility
 

J

JAJB - Class in it.negro.jajb
JAJB is the main access point for binding between JSON and Java Object.
JAJBBindMapping - Class in it.negro.jajb.binding
This is the it.dangelo.javabinding.mappings.BindMapping implementation for JAJB.
JAJBBindMapping() - Constructor for class it.negro.jajb.binding.JAJBBindMapping
 
JAJBBindResolver - Class in it.negro.jajb.binding
This is the it.dangelo.javabinding.mappings.BindResolver implementation for JAJB.
JAJBBindResolver() - Constructor for class it.negro.jajb.binding.JAJBBindResolver
 
JAJBContext - Class in it.negro.jajb
 
JAJBException - Exception in it.negro.jajb
This is the main Exception for JAJB.
JAJBException(String, Throwable) - Constructor for exception it.negro.jajb.JAJBException
Constructor for JAJBException
JAJBException(String) - Constructor for exception it.negro.jajb.JAJBException
Constructor for JAJBException
JAJBMarshallException - Exception in it.negro.jajb
This is the exception that can be launched during marshalling phase (during conversion from JavaBean to JSONString).
JAJBMarshallException(String, Throwable) - Constructor for exception it.negro.jajb.JAJBMarshallException
Constructor for JAJBMarshallException
JAJBMarshallException(String) - Constructor for exception it.negro.jajb.JAJBMarshallException
Constructor for JAJBMarshallException
JAJBUnMarshallException - Exception in it.negro.jajb
This is the exception that can be launched during unmarshalling phase (during conversion from JSONString to JavaBean).
JAJBUnMarshallException(String, Throwable) - Constructor for exception it.negro.jajb.JAJBUnMarshallException
Constructor for JAJBUnMarshallException
JAJBUnMarshallException(String) - Constructor for exception it.negro.jajb.JAJBUnMarshallException
Constructor for JAJBUnMarshallException

M

MappingHandler - Class in it.negro.jajb
This is the DefaultHandler that reads and configures the xml mapping files informations
MappingHandler(Map<String, Converter>, JAJBContext) - Constructor for class it.negro.jajb.MappingHandler
 
marshall(Object, String) - Method in class it.negro.jajb.JAJB
This method serializes passed object parameter into a json string according to passed id parameter that represents the id of passed object into relative mapping file.
marshall(Object) - Method in class it.negro.jajb.JAJB
Makes the same work of marshall (Object, String) method but considering the mapping runtime found: if class type of passed object parameter has an EntityAnnotation makes binding using its annotated mapping, otherwise without any mapping.
marshallSimpleArray(Object) - Method in class it.negro.jajb.JAJB
Converts an array into a String representing a JSONArray.
marshallSimpleArrayToJSONArray(Object) - Method in class it.negro.jajb.JAJB
Converts an array into a JSONArray.
marshallSimpleArrayToJSONArray(Object) - Static method in class it.negro.jajb.utility.Utility
Converts an array into a JSONArray.
marshallSimpleCollection(Collection<?>, Class<?>) - Method in class it.negro.jajb.JAJB
Converts a collection into a String representing a JSONArray.
marshallSimpleCollectionToJSONArray(Collection<?>, Class<?>) - Method in class it.negro.jajb.JAJB
Converts a collection into a JSONArray.
marshallSimpleCollectionToJSONArray(Collection<?>, Class<?>) - Static method in class it.negro.jajb.utility.Utility
Converts a collection into a JSONArray.
marshallToJSONElement(Object, String) - Method in class it.negro.jajb.JAJB
This method converts passed object parameter into a JSONElement according to passed id parameter that represents the id of passed object into relative mapping file or annotated id or simple mapping id.
marshallToJSONElement(Date, SimpleDateFormat) - Method in class it.negro.jajb.JAJB
Convert a Date into a JSONElement using passed SimpleDateFormat if not null, otherwise using the default SimpleDateFormat (yyyy-MM-dd'T'HH:mm:ss'Z'ZZ);
marshallToJSONElement(Object) - Method in class it.negro.jajb.JAJB
Makes the same work of marshallToJSONElement (Object, String) method but considering the mapping runtime found: if class type of passed object parameter has an EntityAnnotation makes binding using its annotated mapping, otherwise without any mapping.

N

newInstance() - Static method in class it.negro.jajb.ConfigHandler
 
newInstance(InputStream) - Static method in class it.negro.jajb.JAJB
This method returns a JAJB instance built parsing the configuration file located at the path specified by passed inputStream parameter.
newInstance() - Static method in class it.negro.jajb.JAJB
This method returns a JAJB instance.
newInstance(Properties) - Static method in class it.negro.jajb.JAJB
Builds a new jajb instance configured with desired ProxyResolver class you have to put into passed properties parameter.
newInstance() - Static method in class it.negro.jajb.JAJBContext
Makes and returns a new instance of JAJBContext.

P

parse(InputStream) - Method in class it.negro.jajb.Parser
Reads all configuration and mapping file that are in relationship reading passed InputStream parameter and initializes all mapping and configuration information into a JAJBContext, then returns it.
Parser - Class in it.negro.jajb
This class is the parser for jajb xml configurazione file
Parser() - Constructor for class it.negro.jajb.Parser
A new Instance of Parser
ProxyResolver - Interface in it.negro.jajb.proxies
This is a simple Interface for proxy classes resolving

R

resolveRefId(Class<?>) - Static method in class it.negro.jajb.utility.Utility
Returns the refId of passed clazz.

S

saveEntityWrapper(Entity) - Method in class it.negro.jajb.JAJBContext
Saves into context the EntityWrapper for passed Entity
saveEntityWrapper(String) - Method in class it.negro.jajb.JAJBContext
Creates and save an EntityWrapper according to passed refId parameter.
setProxyResolver(ProxyResolver) - Method in class it.negro.jajb.JAJBContext
 
setValue(Object, String, Object) - Method in class it.negro.jajb.binding.JAJBBindMapping
Sets the arg2 value with arg1 name into arg0 JSONObject in building
setValueList(Object, Object, int) - Method in class it.negro.jajb.binding.JAJBBindMapping
Sets the arg1 value arg2 index into arg0 JSONArray in building
SpringJavaProxyResolver - Class in it.negro.jajb.proxies
A ProxyResolver for spring or java proxy classes
SpringJavaProxyResolver() - Constructor for class it.negro.jajb.proxies.SpringJavaProxyResolver
 
startElement(String, String, String, Attributes) - Method in class it.negro.jajb.ConfigHandler
 
startElement(String, String, String, Attributes) - Method in class it.negro.jajb.MappingHandler
 

U

unmarshall(String, String) - Method in class it.negro.jajb.JAJB
This method makes binding between passed jsonString parameter and the specific java bean that you should have described in one of your mapping files (be careful to instantiation method used to get JAJB instance) with the id passed parameter or with id of annotated bean (if it starts with '@') or with simple id (if it starts with '#').
unmarshall(String, Class<?>) - Method in class it.negro.jajb.JAJB
Makes the same work of unmarshall(String, String) method but considering the mapping runtime found: if clazz has an EntityAnnotation makes binding using its annotated mapping, otherwise without any mapping.
unmarshall(JSONElement, String) - Method in class it.negro.jajb.JAJB
This method makes binding between passed jsonElement parameter and the specific java bean that you should have described in one of your mapping files with the id passed parameter.
unmarshall(JSONElement, Class<?>) - Method in class it.negro.jajb.JAJB
Makes the same work of unmarshall(JSONElement, String) method but considering the mapping runtime found: if clazz has an EntityAnnotation makes binding using its annotated mapping, otherwise without any mapping.
unmarshallSimpleArray(String, Class<?>) - Method in class it.negro.jajb.JAJB
Converts a string representing a JSONArray into Java Array.
unmarshallSimpleArray(JSONArray, Class<?>) - Method in class it.negro.jajb.JAJB
Converts a JSONArray into Java Array.
unmarshallSimpleArray(JSONArray, Class<?>) - Static method in class it.negro.jajb.utility.Utility
Converts a JSONArray into Java Array.
unmarshallSimpleCollection(String, Class<?>, Class<?>) - Method in class it.negro.jajb.JAJB
Converts a string representing a JSONArray into a Collection of the specifies collectionClass (for example ArrayList.class) containing specified componentType component.
unmarshallSimpleCollection(JSONArray, Class<?>, Class<?>) - Method in class it.negro.jajb.JAJB
Converts a JSONArray into a Collection of the specifies collectionClass (for example ArrayList.class) containing specified componentType component.
unmarshallSimpleCollection(JSONArray, Class<?>, Class<?>) - Static method in class it.negro.jajb.utility.Utility
Does the same work of unmarshallSimpleArray method, but using collections.
Utility - Class in it.negro.jajb.utility
This Class provides some utilities used by JAJB and can be reused as you want.
Utility() - Constructor for class it.negro.jajb.utility.Utility
 

C D E F G I J M N P R S U

Copyright © 2008. All Rights Reserved.