|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.json.JsonConfig
public class JsonConfig
Utility class that helps configuring the serialization process.
Constructor Summary | |
---|---|
JsonConfig()
|
Method Summary | |
---|---|
void |
addIgnoreFieldAnnotation(Class annotationClass)
Removes an annotation that marks a field to be skipped when building. [Java -> JSON] |
void |
addIgnoreFieldAnnotation(String annotationClassName)
Adds an annotation that marks a field to be skipped when building. [Java -> JSON] |
void |
addJsonEventListener(JsonEventListener listener)
Registers a listener for JSON events. The events will be triggered only when using the static builders and if event triggering is enabled. [Java -> JSON] |
void |
clearJavaPropertyNameProcessors()
Removes all registered PropertyNameProcessors. [JSON -> Java] |
void |
clearJsonBeanProcessors()
Removes all registered JsonBeanProcessors. [Java -> JSON] |
void |
clearJsonEventListeners()
Removes all registered listener for JSON Events. [Java -> JSON] |
void |
clearJsonPropertyNameProcessors()
Removes all registered PropertyNameProcessors. [Java -> JSON] |
void |
clearJsonValueProcessors()
Removes all registered JsonValueProcessors. [Java -> JSON] |
void |
clearPropertyExclusions()
Removes all property exclusions registered per class. [Java -> JSON] |
void |
clearPropertyNameProcessors()
Deprecated. use clearJavaPropertyNameProcessors() instead |
JsonConfig |
copy()
|
void |
disableEventTriggering()
Disables event triggering when building. [Java -> JSON] |
void |
enableEventTriggering()
Enables event triggering when building. [Java -> JSON] |
DefaultValueProcessor |
findDefaultValueProcessor(Class target)
Finds a DefaultValueProcessor registered to the target class. Returns null if none is registered. [Java -> JSON] |
PropertyNameProcessor |
findJavaPropertyNameProcessor(Class beanClass)
Finds a PropertyNameProcessor registered to the target class. Returns null if none is registered. [JSON -> Java] |
JsonBeanProcessor |
findJsonBeanProcessor(Class target)
Finds a JsonBeanProcessor registered to the target class. Returns null if none is registered. [Java -> JSON] |
PropertyNameProcessor |
findJsonPropertyNameProcessor(Class beanClass)
Finds a PropertyNameProcessor registered to the target class. Returns null if none is registered. [Java -> JSON] |
JsonValueProcessor |
findJsonValueProcessor(Class propertyType)
Finds a JsonValueProcessor registered to the target type. Returns null if none is registered. [Java -> JSON] |
JsonValueProcessor |
findJsonValueProcessor(Class beanClass,
Class propertyType,
String key)
Finds a JsonValueProcessor. It will search the registered JsonValueProcessors in the following order: beanClass, key beanClass, type key type Returns null if none is registered. [Java -> JSON] |
JsonValueProcessor |
findJsonValueProcessor(Class propertyType,
String key)
Finds a JsonValueProcessor. It will search the registered JsonValueProcessors in the following order: key type Returns null if none is registered. [Java -> JSON] |
PropertyNameProcessor |
findPropertyNameProcessor(Class beanClass)
Deprecated. use findJavaPropertyNameProcessor() instead |
int |
getArrayMode()
Returns the current array mode conversion. [JSON -> Java] |
Map |
getClassMap()
Returns the current attribute/class Map. [JSON -> Java] |
Class |
getCollectionType()
Returns the current collection type used for collection transformations. [JSON -> Java] |
CycleDetectionStrategy |
getCycleDetectionStrategy()
Returns the configured CycleDetectionStrategy. Default value is CycleDetectionStrategy.STRICT [Java -> JSON] |
DefaultValueProcessorMatcher |
getDefaultValueProcessorMatcher()
Returns the configured DefaultValueProcessorMatcher. Default value is DefaultValueProcessorMatcher.DEFAULT [Java -> JSON] |
Class |
getEnclosedType()
Returns the current enclosed type for generic collection transformations. [JSON -> Java] |
String[] |
getExcludes()
Returns the configured properties for exclusion. |
List |
getIgnoreFieldAnnotations()
Returns a List of all annotations that mark a field to be skipped when building. [Java -> JSON] |
JavaIdentifierTransformer |
getJavaIdentifierTransformer()
Returns the configured JavaIdentifierTransformer. |
PropertyFilter |
getJavaPropertyFilter()
Returns the configured property filter when serializing to Java. [JSON -> Java] |
PropertyNameProcessorMatcher |
getJavaPropertyNameProcessorMatcher()
Returns the configured PropertyNameProcessorMatcher. Default value is PropertyNameProcessorMatcher.DEFAULT [JSON -> Java] |
JsonBeanProcessorMatcher |
getJsonBeanProcessorMatcher()
Returns the configured JsonBeanProcessorMatcher. Default value is JsonBeanProcessorMatcher.DEFAULT [JSON -> Java] |
List |
getJsonEventListeners()
Returns a list of registered listeners for JSON events. [JSON -> Java] |
PropertyFilter |
getJsonPropertyFilter()
Returns the configured property filter when serializing to JSON. [Java -> JSON] |
PropertyNameProcessorMatcher |
getJsonPropertyNameProcessorMatcher()
Returns the configured PropertyNameProcessorMatcher. Default value is PropertyNameProcessorMatcher.DEFAULT [Java -> JSON] |
JsonValueProcessorMatcher |
getJsonValueProcessorMatcher()
Returns the configured JsonValueProcessorMatcher. Default value is JsonValueProcessorMatcher.DEFAULT [Java -> JSON] |
Collection |
getMergedExcludes()
Returns a set of default excludes with user-defined excludes. [Java -> JSON] |
Collection |
getMergedExcludes(Class target)
Returns a set of default excludes with user-defined excludes. Takes into account any additional excludes per matching class. |
NewBeanInstanceStrategy |
getNewBeanInstanceStrategy()
Returns the configured NewBeanInstanceStrategy. Default value is NewBeanInstanceStrategy.DEFAULT [JSON -> Java] |
PropertyExclusionClassMatcher |
getPropertyExclusionClassMatcher()
Returns the configured PropertyExclusionClassMatcher. Default value is PropertyExclusionClassMatcher.DEFAULT [JSON -> Java] |
PropertyNameProcessorMatcher |
getPropertyNameProcessorMatcher()
Deprecated. use getJavaPropertyNameProcessorMatcher() instead |
PropertySetStrategy |
getPropertySetStrategy()
Returns the configured PropertySetStrategy. Default value is PropertySetStrategy.DEFAULT [JSON -> Java] |
Class |
getRootClass()
Returns the current root Class. [JSON -> Java] |
boolean |
isAllowNonStringKeys()
Returns true if non-String keys are allowed on JSONObject. Default value is false [Java -> JSON] |
boolean |
isEventTriggeringEnabled()
Returns true if event triggering is enabled during building. Default value is false [Java -> JSON] |
boolean |
isHandleJettisonEmptyElement()
Returns true if this Jettison convention will be handled when converting to Java. Jettison assumes that "" (empty string) can be assigned to empty elements (objects), which clearly violates the JSON spec. [JSON -> Java] |
boolean |
isHandleJettisonSingleElementArray()
Returns true if this jettison convention will be handled when converting to Java. Jettison states the following JSON {'media':{'title':'hello'}} can be set as a single element JSONArray (media is the array). [JSON -> Java] |
boolean |
isIgnoreDefaultExcludes()
Returns true if default excludes will not be used. Default value is false. [Java -> JSON] |
boolean |
isIgnoreJPATransient()
Returns true if JPA Transient annotated methods should be ignored. Default value is false. [Java -> JSON] |
boolean |
isIgnorePublicFields()
Returns true if public fields of a bean will be ignored. Default value is true. [Java -> JSON] |
boolean |
isIgnoreTransientFields()
Returns true if transient fields of a bean will be ignored. Default value is false. [Java -> JSON] |
boolean |
isJavascriptCompliant()
Returns true if Javascript compatibility is turned on. Default value is false. [Java -> JSON] |
boolean |
isSkipJavaIdentifierTransformationInMapKeys()
Returns true if map keys will not be transformed. Default value is false. [JSON -> Java] |
void |
registerDefaultValueProcessor(Class target,
DefaultValueProcessor defaultValueProcessor)
Registers a DefaultValueProcessor. [Java -> JSON] |
void |
registerJavaPropertyNameProcessor(Class target,
PropertyNameProcessor propertyNameProcessor)
Registers a PropertyNameProcessor. [JSON -> Java] |
void |
registerJsonBeanProcessor(Class target,
JsonBeanProcessor jsonBeanProcessor)
Registers a JsonBeanProcessor. [Java -> JSON] |
void |
registerJsonPropertyNameProcessor(Class target,
PropertyNameProcessor propertyNameProcessor)
Registers a PropertyNameProcessor. [Java -> JSON] |
void |
registerJsonValueProcessor(Class beanClass,
Class propertyType,
JsonValueProcessor jsonValueProcessor)
Registers a JsonValueProcessor. [Java -> JSON] |
void |
registerJsonValueProcessor(Class propertyType,
JsonValueProcessor jsonValueProcessor)
Registers a JsonValueProcessor. [Java -> JSON] |
void |
registerJsonValueProcessor(Class beanClass,
String key,
JsonValueProcessor jsonValueProcessor)
Registers a JsonValueProcessor. [Java -> JSON] |
void |
registerJsonValueProcessor(String key,
JsonValueProcessor jsonValueProcessor)
Registers a JsonValueProcessor. [Java -> JSON] |
void |
registerPropertyExclusion(Class target,
String propertyName)
Registers a exclusion for a target class. [Java -> JSON] |
void |
registerPropertyExclusions(Class target,
String[] properties)
Registers exclusions for a target class. [Java -> JSON] |
void |
registerPropertyNameProcessor(Class target,
PropertyNameProcessor propertyNameProcessor)
Deprecated. use registerJavaPropertyNameProcessor() instead |
void |
removeIgnoreFieldAnnotation(Class annotationClass)
Removes an annotation that marks a field to be skipped when building. [Java -> JSON] |
void |
removeIgnoreFieldAnnotation(String annotationClassName)
Adds an annotation that marks a field to be skipped when building. [Java -> JSON] |
void |
removeJsonEventListener(JsonEventListener listener)
Removes a listener for JSON events. [Java -> JSON] |
void |
reset()
Resets all values to its default state. |
void |
setAllowNonStringKeys(boolean allowNonStringKeys)
Sets if non-String keys are allowed on JSONObject. [Java -> JSON] |
void |
setArrayMode(int arrayMode)
Sets the current array mode for conversion. If the value is not MODE_LIST, MODE_OBJECT_ARRAY nor MODE_SET, then MODE_LIST will be used. [JSON -> Java] |
void |
setClassMap(Map classMap)
Sets the current attribute/Class Map [JSON -> Java] |
void |
setCollectionType(Class collectionType)
Sets the current collection type used for collection transformations. [JSON -> Java] |
void |
setCycleDetectionStrategy(CycleDetectionStrategy cycleDetectionStrategy)
Sets a CycleDetectionStrategy to use. Will set default value (CycleDetectionStrategy.STRICT) if null. [Java -> JSON] |
void |
setDefaultValueProcessorMatcher(DefaultValueProcessorMatcher defaultValueProcessorMatcher)
Sets a DefaultValueProcessorMatcher to use. Will set default value (DefaultValueProcessorMatcher.DEFAULT) if null. [Java -> JSON] |
void |
setEnclosedType(Class enclosedType)
Sets the current enclosed type for generic collection transformations. [JSON -> Java] |
void |
setExcludes(String[] excludes)
Sets the excludes to use. Will set default value ([]) if null. [Java -> JSON] |
void |
setHandleJettisonEmptyElement(boolean handleJettisonEmptyElement)
Activate/Deactivate handling this jettison convention when converting to Java. Jettison states that "" (empty string) can be assigned to empty elements (objects), which clearly violates the JSON spec. [JSON -> Java] |
void |
setHandleJettisonSingleElementArray(boolean handleJettisonSingleElementArray)
Activate/Deactivate handling this jettison convention when converting to Java. * Jettison states the following JSON {'media':{'title':'hello'}} can be set as a single element JSONArray (media is the array). [JSON -> Java] |
void |
setIgnoreDefaultExcludes(boolean ignoreDefaultExcludes)
Sets if default excludes would be skipped when building. [Java -> JSON] |
void |
setIgnoreJPATransient(boolean ignoreJPATransient)
Sets if JPA Transient annotated methods would be skipped when building. [Java -> JSON] |
void |
setIgnorePublicFields(boolean ignorePublicFields)
Sets if public fields would be skipped when building. [Java -> JSON] |
void |
setIgnoreTransientFields(boolean ignoreTransientFields)
Sets if transient fields would be skipped when building. [Java -> JSON] |
void |
setJavaIdentifierTransformer(JavaIdentifierTransformer javaIdentifierTransformer)
Sets the JavaIdentifierTransformer to use. Will set default value (JavaIdentifierTransformer.NOOP) if null. [JSON -> Java] |
void |
setJavaPropertyFilter(PropertyFilter javaPropertyFilter)
Sets a property filter used when serializing to Java. [JSON -> Java] |
void |
setJavaPropertyNameProcessorMatcher(PropertyNameProcessorMatcher propertyNameProcessorMatcher)
Sets a PropertyNameProcessorMatcher to use. Will set default value (PropertyNameProcessorMatcher.DEFAULT) if null. [JSON -> Java] |
void |
setJavascriptCompliant(boolean javascriptCompliant)
Sets if Javascript compatibility is enabled when building. [Java -> JSON] |
void |
setJsonBeanProcessorMatcher(JsonBeanProcessorMatcher jsonBeanProcessorMatcher)
Sets a JsonBeanProcessorMatcher to use. Will set default value (JsonBeanProcessorMatcher.DEFAULT) if null. [Java -> JSON] |
void |
setJsonPropertyFilter(PropertyFilter jsonPropertyFilter)
Sets a property filter used when serializing to JSON. [Java -> JSON] |
void |
setJsonPropertyNameProcessorMatcher(PropertyNameProcessorMatcher propertyNameProcessorMatcher)
Sets a PropertyNameProcessorMatcher to use. Will set default value (PropertyNameProcessorMatcher.DEFAULT) if null. [Java -> JSON] |
void |
setJsonValueProcessorMatcher(JsonValueProcessorMatcher jsonValueProcessorMatcher)
Sets a JsonValueProcessorMatcher to use. Will set default value (JsonValueProcessorMatcher.DEFAULT) if null. [Java -> JSON] |
void |
setNewBeanInstanceStrategy(NewBeanInstanceStrategy newBeanInstanceStrategy)
Sets the NewBeanInstanceStrategy to use. Will set default value (NewBeanInstanceStrategy.DEFAULT) if null. [JSON -> Java] |
void |
setPropertyExclusionClassMatcher(PropertyExclusionClassMatcher propertyExclusionClassMatcher)
Sets a PropertyExclusionClassMatcher to use. Will set default value (PropertyExclusionClassMatcher.DEFAULT) if null. [Java -> JSON] |
void |
setPropertyNameProcessorMatcher(PropertyNameProcessorMatcher propertyNameProcessorMatcher)
Deprecated. use setJavaPropertyNameProcessorMatcher() instead |
void |
setPropertySetStrategy(PropertySetStrategy propertySetStrategy)
Sets a PropertySetStrategy to use. Will set default value (PropertySetStrategy.DEFAULT) if null. [JSON -> Java] |
void |
setRootClass(Class rootClass)
Sets the current root Class. [JSON -> Java] |
void |
setSkipJavaIdentifierTransformationInMapKeys(boolean skipJavaIdentifierTransformationInMapKeys)
Sets if property name as JavaIndetifier transformations would be skipped. [JSON -> Java] |
void |
unregisterDefaultValueProcessor(Class target)
Removes a DefaultValueProcessor. [Java -> JSON] |
void |
unregisterJavaPropertyNameProcessor(Class target)
Removes a PropertyNameProcessor. [JSON -> Java] |
void |
unregisterJsonBeanProcessor(Class target)
Removes a JsonBeanProcessor. [Java -> JSON] |
void |
unregisterJsonPropertyNameProcessor(Class target)
Removes a PropertyNameProcessor. [Java -> JSON] |
void |
unregisterJsonValueProcessor(Class propertyType)
Removes a JsonValueProcessor. [Java -> JSON] |
void |
unregisterJsonValueProcessor(Class beanClass,
Class propertyType)
Removes a JsonValueProcessor. [Java -> JSON] |
void |
unregisterJsonValueProcessor(Class beanClass,
String key)
Removes a JsonValueProcessor. [Java -> JSON] |
void |
unregisterJsonValueProcessor(String key)
Removes a JsonValueProcessor. [Java -> JSON] |
void |
unregisterPropertyExclusion(Class target,
String propertyName)
Removes a property exclusion assigned to the target class. [Java -> JSON] |
void |
unregisterPropertyExclusions(Class target)
Removes all property exclusions assigned to the target class. [Java -> JSON] |
void |
unregisterPropertyNameProcessor(Class target)
Deprecated. use unregisterJavaPropertyNameProcessor() instead |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final DefaultValueProcessorMatcher DEFAULT_DEFAULT_VALUE_PROCESSOR_MATCHER
public static final JsonBeanProcessorMatcher DEFAULT_JSON_BEAN_PROCESSOR_MATCHER
public static final JsonValueProcessorMatcher DEFAULT_JSON_VALUE_PROCESSOR_MATCHER
public static final NewBeanInstanceStrategy DEFAULT_NEW_BEAN_INSTANCE_STRATEGY
public static final PropertyExclusionClassMatcher DEFAULT_PROPERTY_EXCLUSION_CLASS_MATCHER
public static final PropertyNameProcessorMatcher DEFAULT_PROPERTY_NAME_PROCESSOR_MATCHER
public static final int MODE_LIST
public static final int MODE_OBJECT_ARRAY
public static final int MODE_SET
Constructor Detail |
---|
public JsonConfig()
Method Detail |
---|
public void addJsonEventListener(JsonEventListener listener)
listener
- a listener for eventsenableEventTriggering()
,
disableEventTriggering()
,
removeJsonEventListener(JsonEventListener)
public void clearJavaPropertyNameProcessors()
public void clearJsonBeanProcessors()
public void clearJsonEventListeners()
public void clearJsonPropertyNameProcessors()
public void clearJsonValueProcessors()
public void clearPropertyExclusions()
public void clearPropertyNameProcessors()
public JsonConfig copy()
public void disableEventTriggering()
public void enableEventTriggering()
public DefaultValueProcessor findDefaultValueProcessor(Class target)
target
- a class used for searching a DefaultValueProcessor.public PropertyNameProcessor findJavaPropertyNameProcessor(Class beanClass)
propertyType
- a class used for searching a PropertyNameProcessor.public JsonBeanProcessor findJsonBeanProcessor(Class target)
target
- a class used for searching a JsonBeanProcessor.public PropertyNameProcessor findJsonPropertyNameProcessor(Class beanClass)
propertyType
- a class used for searching a PropertyNameProcessor.public JsonValueProcessor findJsonValueProcessor(Class propertyType)
propertyType
- a class used for searching a JsonValueProcessor.public JsonValueProcessor findJsonValueProcessor(Class beanClass, Class propertyType, String key)
beanClass
- the class to which the property may belongpropertyType
- the type of the propertykey
- the name of the property which may belong to the target classpublic JsonValueProcessor findJsonValueProcessor(Class propertyType, String key)
propertyType
- the type of the propertykey
- the name of the property which may belong to the target classpublic PropertyNameProcessor findPropertyNameProcessor(Class beanClass)
propertyType
- a class used for searching a PropertyNameProcessor.public int getArrayMode()
public Map getClassMap()
public Class getCollectionType()
public CycleDetectionStrategy getCycleDetectionStrategy()
public DefaultValueProcessorMatcher getDefaultValueProcessorMatcher()
public Class getEnclosedType()
public String[] getExcludes()
public JavaIdentifierTransformer getJavaIdentifierTransformer()
public PropertyFilter getJavaPropertyFilter()
public PropertyNameProcessorMatcher getJavaPropertyNameProcessorMatcher()
public JsonBeanProcessorMatcher getJsonBeanProcessorMatcher()
public List getJsonEventListeners()
public PropertyFilter getJsonPropertyFilter()
public PropertyNameProcessorMatcher getJsonPropertyNameProcessorMatcher()
public JsonValueProcessorMatcher getJsonValueProcessorMatcher()
public Collection getMergedExcludes()
public Collection getMergedExcludes(Class target)
public NewBeanInstanceStrategy getNewBeanInstanceStrategy()
public PropertyExclusionClassMatcher getPropertyExclusionClassMatcher()
public PropertyNameProcessorMatcher getPropertyNameProcessorMatcher()
public PropertySetStrategy getPropertySetStrategy()
public Class getRootClass()
public boolean isAllowNonStringKeys()
public boolean isEventTriggeringEnabled()
public boolean isHandleJettisonEmptyElement()
public boolean isHandleJettisonSingleElementArray()
public boolean isIgnoreDefaultExcludes()
public boolean isIgnoreJPATransient()
public boolean isIgnoreTransientFields()
public boolean isIgnorePublicFields()
public boolean isJavascriptCompliant()
public boolean isSkipJavaIdentifierTransformationInMapKeys()
public void registerDefaultValueProcessor(Class target, DefaultValueProcessor defaultValueProcessor)
target
- the class to use as keydefaultValueProcessor
- the processor to registerpublic void registerJavaPropertyNameProcessor(Class target, PropertyNameProcessor propertyNameProcessor)
target
- the class to use as keypropertyNameProcessor
- the processor to registerpublic void registerJsonBeanProcessor(Class target, JsonBeanProcessor jsonBeanProcessor)
target
- the class to use as keyjsonBeanProcessor
- the processor to registerpublic void registerJsonPropertyNameProcessor(Class target, PropertyNameProcessor propertyNameProcessor)
target
- the class to use as keypropertyNameProcessor
- the processor to registerpublic void registerJsonValueProcessor(Class beanClass, Class propertyType, JsonValueProcessor jsonValueProcessor)
beanClass
- the class to use as keypropertyType
- the property type to use as keyjsonValueProcessor
- the processor to registerpublic void registerJsonValueProcessor(Class propertyType, JsonValueProcessor jsonValueProcessor)
propertyType
- the property type to use as keyjsonValueProcessor
- the processor to registerpublic void registerJsonValueProcessor(Class beanClass, String key, JsonValueProcessor jsonValueProcessor)
beanClass
- the class to use as keykey
- the property name to use as keyjsonValueProcessor
- the processor to registerpublic void registerJsonValueProcessor(String key, JsonValueProcessor jsonValueProcessor)
key
- the property name to use as keyjsonValueProcessor
- the processor to registerpublic void registerPropertyExclusion(Class target, String propertyName)
target
- the class to use as keypropertyName
- the property to be excludedpublic void registerPropertyExclusions(Class target, String[] properties)
target
- the class to use as keyproperties
- the properties to be excludedpublic void registerPropertyNameProcessor(Class target, PropertyNameProcessor propertyNameProcessor)
target
- the class to use as keypropertyNameProcessor
- the processor to registerpublic void removeJsonEventListener(JsonEventListener listener)
listener
- a listener for eventsaddJsonEventListener(JsonEventListener)
public void reset()
public void setAllowNonStringKeys(boolean allowNonStringKeys)
public void setArrayMode(int arrayMode)
arrayMode
- array mode for conversionpublic void setClassMap(Map classMap)
classMap
- a Map of classes, every key identifies a property or a regexppublic void setCollectionType(Class collectionType)
collectionType
- the target collection class for conversionpublic void setCycleDetectionStrategy(CycleDetectionStrategy cycleDetectionStrategy)
public void setDefaultValueProcessorMatcher(DefaultValueProcessorMatcher defaultValueProcessorMatcher)
public void setEnclosedType(Class enclosedType)
enclosedType
- the target type for conversionpublic void setExcludes(String[] excludes)
public void setHandleJettisonEmptyElement(boolean handleJettisonEmptyElement)
public void setHandleJettisonSingleElementArray(boolean handleJettisonSingleElementArray)
public void setIgnoreDefaultExcludes(boolean ignoreDefaultExcludes)
public void setIgnoreJPATransient(boolean ignoreJPATransient)
public void addIgnoreFieldAnnotation(String annotationClassName)
public void removeIgnoreFieldAnnotation(String annotationClassName)
public void addIgnoreFieldAnnotation(Class annotationClass)
public void removeIgnoreFieldAnnotation(Class annotationClass)
public List getIgnoreFieldAnnotations()
public void setIgnoreTransientFields(boolean ignoreTransientFields)
public void setIgnorePublicFields(boolean ignorePublicFields)
public void setJavascriptCompliant(boolean javascriptCompliant)
public void setJavaIdentifierTransformer(JavaIdentifierTransformer javaIdentifierTransformer)
public void setJavaPropertyFilter(PropertyFilter javaPropertyFilter)
javaPropertyFilter
- the property filterpublic void setJavaPropertyNameProcessorMatcher(PropertyNameProcessorMatcher propertyNameProcessorMatcher)
public void setJsonBeanProcessorMatcher(JsonBeanProcessorMatcher jsonBeanProcessorMatcher)
public void setJsonPropertyFilter(PropertyFilter jsonPropertyFilter)
jsonPropertyFilter
- the property filterpublic void setJsonPropertyNameProcessorMatcher(PropertyNameProcessorMatcher propertyNameProcessorMatcher)
public void setJsonValueProcessorMatcher(JsonValueProcessorMatcher jsonValueProcessorMatcher)
public void setNewBeanInstanceStrategy(NewBeanInstanceStrategy newBeanInstanceStrategy)
public void setPropertyExclusionClassMatcher(PropertyExclusionClassMatcher propertyExclusionClassMatcher)
public void setPropertyNameProcessorMatcher(PropertyNameProcessorMatcher propertyNameProcessorMatcher)
public void setPropertySetStrategy(PropertySetStrategy propertySetStrategy)
public void setRootClass(Class rootClass)
rootClass
- the target class for conversionpublic void setSkipJavaIdentifierTransformationInMapKeys(boolean skipJavaIdentifierTransformationInMapKeys)
public void unregisterDefaultValueProcessor(Class target)
target
- a class used for searching a DefaultValueProcessor.public void unregisterJavaPropertyNameProcessor(Class target)
target
- a class used for searching a PropertyNameProcessor.public void unregisterJsonBeanProcessor(Class target)
target
- a class used for searching a JsonBeanProcessor.public void unregisterJsonPropertyNameProcessor(Class target)
target
- a class used for searching a PropertyNameProcessor.public void unregisterJsonValueProcessor(Class propertyType)
propertyType
- a class used for searching a JsonValueProcessor.public void unregisterJsonValueProcessor(Class beanClass, Class propertyType)
beanClass
- the class to which the property may belongpropertyType
- the type of the propertypublic void unregisterJsonValueProcessor(Class beanClass, String key)
beanClass
- the class to which the property may belongkey
- the name of the property which may belong to the target classpublic void unregisterJsonValueProcessor(String key)
key
- the name of the property which may belong to the target classpublic void unregisterPropertyExclusion(Class target, String propertyName)
target
- a class used for searching property exclusions.propertyName
- the name of the property to be removed from the exclusion list.public void unregisterPropertyExclusions(Class target)
target
- a class used for searching property exclusions.public void unregisterPropertyNameProcessor(Class target)
target
- a class used for searching a PropertyNameProcessor.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |