Logo Search packages:      
Sourcecode: libjson-java version File versions

net::sf::json::JsonConfig Class Reference

List of all members.


Detailed Description

Utility class that helps configuring the serialization process.

Author:
Andres Almiray <aalmiray@users.sourceforge.net>

Definition at line 51 of file JsonConfig.java.


Public Member Functions

synchronized void addJsonEventListener (JsonEventListener listener)
void clearJsonBeanProcessors ()
synchronized void clearJsonEventListeners ()
void clearJsonValueProcessors ()
void clearPropertyNameProcessors ()
JsonConfig copy ()
void disableEventTriggering ()
void enableEventTriggering ()
DefaultValueProcessor findDefaultValueProcessor (Class target)
JsonBeanProcessor findJsonBeanProcessor (Class target)
JsonValueProcessor findJsonValueProcessor (Class propertyType, String key)
JsonValueProcessor findJsonValueProcessor (Class beanClass, Class propertyType, String key)
JsonValueProcessor findJsonValueProcessor (Class propertyType)
PropertyNameProcessor findPropertyNameProcessor (Class beanClass)
int getArrayMode ()
Map getClassMap ()
Class getCollectionType ()
CycleDetectionStrategy getCycleDetectionStrategy ()
DefaultValueProcessorMatcher getDefaultValueProcessorMatcher ()
Class getEnclosedType ()
String[] getExcludes ()
JavaIdentifierTransformer getJavaIdentifierTransformer ()
PropertyFilter getJavaPropertyFilter ()
JsonBeanProcessorMatcher getJsonBeanProcessorMatcher ()
synchronized List getJsonEventListeners ()
PropertyFilter getJsonPropertyFilter ()
JsonValueProcessorMatcher getJsonValueProcessorMatcher ()
Collection getMergedExcludes ()
NewBeanInstanceStrategy getNewBeanInstanceStrategy ()
PropertyNameProcessorMatcher getPropertyNameProcessorMatcher ()
PropertySetStrategy getPropertySetStrategy ()
Class getRootClass ()
boolean isEventTriggeringEnabled ()
boolean isHandleJettisonEmptyElement ()
boolean isHandleJettisonSingleElementArray ()
boolean isIgnoreDefaultExcludes ()
boolean isIgnoreJPATransient ()
boolean isIgnoreTransientFields ()
boolean isSkipJavaIdentifierTransformationInMapKeys ()
void registerDefaultValueProcessor (Class target, DefaultValueProcessor defaultValueProcessor)
void registerJsonBeanProcessor (Class target, JsonBeanProcessor jsonBeanProcessor)
void registerJsonValueProcessor (String key, JsonValueProcessor jsonValueProcessor)
void registerJsonValueProcessor (Class beanClass, String key, JsonValueProcessor jsonValueProcessor)
void registerJsonValueProcessor (Class propertyType, JsonValueProcessor jsonValueProcessor)
void registerJsonValueProcessor (Class beanClass, Class propertyType, JsonValueProcessor jsonValueProcessor)
void registerPropertyNameProcessor (Class target, PropertyNameProcessor propertyNameProcessor)
synchronized void removeJsonEventListener (JsonEventListener listener)
void reset ()
void setArrayMode (int arrayMode)
void setClassMap (Map classMap)
void setCollectionType (Class collectionType)
void setCycleDetectionStrategy (CycleDetectionStrategy cycleDetectionStrategy)
void setDefaultValueProcessorMatcher (DefaultValueProcessorMatcher defaultValueProcessorMatcher)
void setEnclosedType (Class enclosedType)
void setExcludes (String[] excludes)
void setHandleJettisonEmptyElement (boolean handleJettisonEmptyElement)
void setHandleJettisonSingleElementArray (boolean handleJettisonSingleElementArray)
void setIgnoreDefaultExcludes (boolean ignoreDefaultExcludes)
void setIgnoreJPATransient (boolean ignoreJPATransient)
void setIgnoreTransientFields (boolean ignoreTransientFields)
void setJavaIdentifierTransformer (JavaIdentifierTransformer javaIdentifierTransformer)
void setJavaPropertyFilter (PropertyFilter javaPropertyFilter)
void setJsonBeanProcessorMatcher (JsonBeanProcessorMatcher jsonBeanProcessorMatcher)
void setJsonPropertyFilter (PropertyFilter jsonPropertyFilter)
void setJsonValueProcessorMatcher (JsonValueProcessorMatcher jsonValueProcessorMatcher)
void setNewBeanInstanceStrategy (NewBeanInstanceStrategy newBeanInstanceStrategy)
void setPropertyNameProcessorMatcher (PropertyNameProcessorMatcher propertyNameProcessorMatcher)
void setPropertySetStrategy (PropertySetStrategy propertySetStrategy)
void setRootClass (Class rootClass)
void setSkipJavaIdentifierTransformationInMapKeys (boolean skipJavaIdentifierTransformationInMapKeys)
void unregisterDefaultValueProcessor (Class target)
void unregisterJsonBeanProcessor (Class target)
void unregisterJsonValueProcessor (String key)
void unregisterJsonValueProcessor (Class beanClass, String key)
void unregisterJsonValueProcessor (Class beanClass, Class propertyType)
void unregisterJsonValueProcessor (Class propertyType)
void unregisterPropertyNameProcessor (Class target)

Static Public Attributes

static final
DefaultValueProcessorMatcher 
DEFAULT_DEFAULT_VALUE_PROCESSOR_MATCHER = DefaultValueProcessorMatcher.DEFAULT
static final
JsonBeanProcessorMatcher 
DEFAULT_JSON_BEAN_PROCESSOR_MATCHER = JsonBeanProcessorMatcher.DEFAULT
static final
JsonValueProcessorMatcher 
DEFAULT_JSON_VALUE_PROCESSOR_MATCHER = JsonValueProcessorMatcher.DEFAULT
static final
NewBeanInstanceStrategy 
DEFAULT_NEW_BEAN_INSTANCE_STRATEGY = NewBeanInstanceStrategy.DEFAULT
static final
PropertyNameProcessorMatcher 
DEFAULT_PROPERTY_NAME_PROCESSOR_MATCHER = PropertyNameProcessorMatcher.DEFAULT
static final int MODE_LIST = 1
static final int MODE_OBJECT_ARRAY = 2
static final int MODE_SET = 2

Private Attributes

int arrayMode = MODE_LIST
MultiKeyMap beanKeyMap = new MultiKeyMap()
Map beanProcessorMap = new HashMap()
MultiKeyMap beanTypeMap = new MultiKeyMap()
Map classMap
Class collectionType = DEFAULT_COLLECTION_TYPE
CycleDetectionStrategy cycleDetectionStrategy = DEFAULT_CYCLE_DETECTION_STRATEGY
Map defaultValueMap = new HashMap()
DefaultValueProcessorMatcher defaultValueProcessorMatcher = DEFAULT_DEFAULT_VALUE_PROCESSOR_MATCHER
Class enclosedType
List eventListeners = new ArrayList()
String[] excludes = EMPTY_EXCLUDES
boolean handleJettisonEmptyElement
boolean handleJettisonSingleElementArray
boolean ignoreDefaultExcludes
boolean ignoreJPATransient
boolean ignoreTransientFields
JavaIdentifierTransformer javaIdentifierTransformer = DEFAULT_JAVA_IDENTIFIER_TRANSFORMER
PropertyFilter javaPropertyFilter
JsonBeanProcessorMatcher jsonBeanProcessorMatcher = DEFAULT_JSON_BEAN_PROCESSOR_MATCHER
PropertyFilter jsonPropertyFilter
JsonValueProcessorMatcher jsonValueProcessorMatcher = DEFAULT_JSON_VALUE_PROCESSOR_MATCHER
Map keyMap = new HashMap()
NewBeanInstanceStrategy newBeanInstanceStrategy = DEFAULT_NEW_BEAN_INSTANCE_STRATEGY
Map propertyNameProcessorMap = new HashMap()
PropertyNameProcessorMatcher propertyNameProcessorMatcher = DEFAULT_PROPERTY_NAME_PROCESSOR_MATCHER
PropertySetStrategy propertySetStrategy
Class rootClass
boolean skipJavaIdentifierTransformationInMapKeys
boolean triggerEvents
Map typeMap = new HashMap()

Static Private Attributes

static final Class DEFAULT_COLLECTION_TYPE = List.class
static final CycleDetectionStrategy DEFAULT_CYCLE_DETECTION_STRATEGY = CycleDetectionStrategy.STRICT
static final String[] DEFAULT_EXCLUDES = new String[] { "class", "declaringClass", "metaClass" }
static final
JavaIdentifierTransformer 
DEFAULT_JAVA_IDENTIFIER_TRANSFORMER = JavaIdentifierTransformer.NOOP
static final DefaultValueProcessor DEFAULT_VALUE_PROCESSOR = new DefaultDefaultValueProcessor()
static final String[] EMPTY_EXCLUDES = new String[0]

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index