Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractArrayMorpher - Class in net.sf.ezmorph.array
-
Base class for array Morphers.
- AbstractArrayMorpher() - Constructor for class net.sf.ezmorph.array.AbstractArrayMorpher
- AbstractArrayMorpher(boolean) - Constructor for class net.sf.ezmorph.array.AbstractArrayMorpher
- AbstractDecimalMorpher - Class in net.sf.ezmorph.primitive
-
Base class for primitive decimal conversion.
- AbstractDecimalMorpher() - Constructor for class net.sf.ezmorph.primitive.AbstractDecimalMorpher
- AbstractDecimalMorpher(boolean) - Constructor for class net.sf.ezmorph.primitive.AbstractDecimalMorpher
- AbstractIntegerMorpher - Class in net.sf.ezmorph.primitive
-
Base class por primitive integer conversion.
- AbstractIntegerMorpher() - Constructor for class net.sf.ezmorph.primitive.AbstractIntegerMorpher
- AbstractIntegerMorpher(boolean) - Constructor for class net.sf.ezmorph.primitive.AbstractIntegerMorpher
- AbstractObjectMorpher - Class in net.sf.ezmorph.object
-
Base class for ObjectMorpher implementations.
- AbstractObjectMorpher() - Constructor for class net.sf.ezmorph.object.AbstractObjectMorpher
- AbstractObjectMorpher(boolean) - Constructor for class net.sf.ezmorph.object.AbstractObjectMorpher
- AbstractPrimitiveMorpher - Class in net.sf.ezmorph.primitive
-
Base class for primitive value conversion.
- AbstractPrimitiveMorpher() - Constructor for class net.sf.ezmorph.primitive.AbstractPrimitiveMorpher
- AbstractPrimitiveMorpher(boolean) - Constructor for class net.sf.ezmorph.primitive.AbstractPrimitiveMorpher
- accumulate(String, boolean) - Method in class net.sf.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, double) - Method in class net.sf.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, int) - Method in class net.sf.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, long) - Method in class net.sf.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, Object) - Method in class net.sf.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, Object, JsonConfig) - Method in class net.sf.json.JSONObject
-
Accumulate values under a key.
- accumulateAll(Map) - Method in class net.sf.json.JSONObject
- accumulateAll(Map, JsonConfig) - Method in class net.sf.json.JSONObject
- add(int, Object) - Method in class net.sf.json.JSONArray
- add(int, Object, JsonConfig) - Method in class net.sf.json.JSONArray
- add(Object) - Method in class net.sf.json.JSONArray
- add(Object, JsonConfig) - Method in class net.sf.json.JSONArray
- addAll(int, Collection) - Method in class net.sf.json.JSONArray
- addAll(int, Collection, JsonConfig) - Method in class net.sf.json.JSONArray
- addAll(Collection) - Method in class net.sf.json.JSONArray
- addAll(Collection, JsonConfig) - Method in class net.sf.json.JSONArray
- addIgnoreFieldAnnotation(Class) - Method in class net.sf.json.JsonConfig
-
Removes an annotation that marks a field to be skipped when building.
[Java -> JSON] - addIgnoreFieldAnnotation(String) - Method in class net.sf.json.JsonConfig
-
Adds an annotation that marks a field to be skipped when building.
[Java -> JSON] - addInstance(Object) - Static method in class net.sf.json.JSONArray
-
Adds a reference for cycle detection check.
- addJsonEventListener(JsonEventListener) - Method in class net.sf.json.JsonConfig
-
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] - addPropertyFilter(Object, PropertyFilter) - Method in class net.sf.json.filters.MappingPropertyFilter
- addPropertyFilter(PropertyFilter) - Method in class net.sf.json.filters.CompositePropertyFilter
- addString(String) - Method in class net.sf.json.JSONArray
-
Adds a String without performing any conversion on it.
- AndPropertyFilter - Class in net.sf.json.filters
- AndPropertyFilter(PropertyFilter, PropertyFilter) - Constructor for class net.sf.json.filters.AndPropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.AndPropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.CompositePropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.FalsePropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.MappingPropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.NotPropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.OrPropertyFilter
- apply(Object, String, Object) - Method in class net.sf.json.filters.TruePropertyFilter
- apply(Object, String, Object) - Method in interface net.sf.json.util.PropertyFilter
- array() - Method in class net.sf.json.util.JSONBuilder
-
Begin appending a new array.
B
- back() - Method in class net.sf.json.util.JSONTokener
-
Back up one character.
- BeanMorpher - Class in net.sf.ezmorph.bean
-
Converts a JavaBean into another JavaBean or DynaBean.
This Morpher will try to match every property from the target JavaBean's class to the properties of the source JavaBean. - BeanMorpher(Class, MorpherRegistry) - Constructor for class net.sf.ezmorph.bean.BeanMorpher
- BeanMorpher(Class, MorpherRegistry, boolean) - Constructor for class net.sf.ezmorph.bean.BeanMorpher
- BIGDECIMAL_ONE - Static variable in class net.sf.ezmorph.MorphUtils
-
Constant value for BigDecimal(1)
- BIGDECIMAL_ZERO - Static variable in class net.sf.ezmorph.MorphUtils
-
Constant value for BigDecimal(0)
- BigDecimalMorpher - Class in net.sf.ezmorph.object
-
Morphs to a BigDecimal.
- BigDecimalMorpher() - Constructor for class net.sf.ezmorph.object.BigDecimalMorpher
- BigDecimalMorpher(BigDecimal) - Constructor for class net.sf.ezmorph.object.BigDecimalMorpher
- BigIntegerMorpher - Class in net.sf.ezmorph.object
-
Morphs to a BigInteger.
- BigIntegerMorpher() - Constructor for class net.sf.ezmorph.object.BigIntegerMorpher
- BigIntegerMorpher(BigInteger) - Constructor for class net.sf.ezmorph.object.BigIntegerMorpher
- BooleanArrayMorpher - Class in net.sf.ezmorph.array
-
Morphs an array to a boolean[].
- BooleanArrayMorpher() - Constructor for class net.sf.ezmorph.array.BooleanArrayMorpher
- BooleanArrayMorpher(boolean) - Constructor for class net.sf.ezmorph.array.BooleanArrayMorpher
- BooleanMorpher - Class in net.sf.ezmorph.primitive
-
Morphs to a boolean.
- BooleanMorpher() - Constructor for class net.sf.ezmorph.primitive.BooleanMorpher
- BooleanMorpher(boolean) - Constructor for class net.sf.ezmorph.primitive.BooleanMorpher
- BooleanObjectArrayMorpher - Class in net.sf.ezmorph.array
-
Morphs an array to a Boolean[].
- BooleanObjectArrayMorpher() - Constructor for class net.sf.ezmorph.array.BooleanObjectArrayMorpher
- BooleanObjectArrayMorpher(Boolean) - Constructor for class net.sf.ezmorph.array.BooleanObjectArrayMorpher
- BooleanObjectMorpher - Class in net.sf.ezmorph.object
-
Morphs to a Boolean.
- BooleanObjectMorpher() - Constructor for class net.sf.ezmorph.object.BooleanObjectMorpher
- BooleanObjectMorpher(Boolean) - Constructor for class net.sf.ezmorph.object.BooleanObjectMorpher
- ByteArrayMorpher - Class in net.sf.ezmorph.array
-
Morphs an array to a byte[].
- ByteArrayMorpher() - Constructor for class net.sf.ezmorph.array.ByteArrayMorpher
- ByteArrayMorpher(byte) - Constructor for class net.sf.ezmorph.array.ByteArrayMorpher
- ByteMorpher - Class in net.sf.ezmorph.primitive
-
Morphs to a byte.
- ByteMorpher() - Constructor for class net.sf.ezmorph.primitive.ByteMorpher
- ByteMorpher(byte) - Constructor for class net.sf.ezmorph.primitive.ByteMorpher
C
- CAMEL_CASE - Static variable in class net.sf.json.util.JavaIdentifierTransformer
-
CamelCase transformer 'camel case' =gt; 'camelCase'
- cause - Variable in exception net.sf.ezmorph.MorphException
-
The root cause of this
ConversionException, compatible with JDK 1.4's extensions tojava.lang.Throwable. - CharacterObjectArrayMorpher - Class in net.sf.ezmorph.array
-
Morphs an array to a Character[].
- CharacterObjectArrayMorpher() - Constructor for class net.sf.ezmorph.array.CharacterObjectArrayMorpher
- CharacterObjectArrayMorpher(Character) - Constructor for class net.sf.ezmorph.array.CharacterObjectArrayMorpher
- CharacterObjectMorpher - Class in net.sf.ezmorph.object
-
Morphs to a Character.
- CharacterObjectMorpher() - Constructor for class net.sf.ezmorph.object.CharacterObjectMorpher
- CharacterObjectMorpher(Character) - Constructor for class net.sf.ezmorph.object.CharacterObjectMorpher
- CharArrayMorpher - Class in net.sf.ezmorph.array
-
Morphs an array to a char[].
- CharArrayMorpher() - Constructor for class net.sf.ezmorph.array.CharArrayMorpher
- CharArrayMorpher(char) - Constructor for class net.sf.ezmorph.array.CharArrayMorpher
- CharMorpher - Class in net.sf.ezmorph.primitive
-
Morphs to a char.
- CharMorpher() - Constructor for class net.sf.ezmorph.primitive.CharMorpher
- CharMorpher(char) - Constructor for class net.sf.ezmorph.primitive.CharMorpher
- ClassMorpher - Class in net.sf.ezmorph.object
-
Morphs to a Class.
This morpher is a singleton. - clear() - Method in class net.sf.ezmorph.MorpherRegistry
-
Deregisters all morphers.
- clear() - Method in class net.sf.json.JSONArray
- clear() - Method in class net.sf.json.JSONObject
- clear(Class) - Method in class net.sf.ezmorph.MorpherRegistry
-
Deregister all Morphers of a type.
- clearJavaPropertyNameProcessors() - Method in class net.sf.json.JsonConfig
-
Removes all registered PropertyNameProcessors.
[JSON -> Java] - clearJsonBeanProcessors() - Method in class net.sf.json.JsonConfig
-
Removes all registered JsonBeanProcessors.
[Java -> JSON] - clearJsonEventListeners() - Method in class net.sf.json.JsonConfig
-
Removes all registered listener for JSON Events.
[Java -> JSON] - clearJsonPropertyNameProcessors() - Method in class net.sf.json.JsonConfig
-
Removes all registered PropertyNameProcessors.
[Java -> JSON] - clearJsonValueProcessors() - Method in class net.sf.json.JsonConfig
-
Removes all registered JsonValueProcessors.
[Java -> JSON] - clearPropertyExclusions() - Method in class net.sf.json.JsonConfig
-
Removes all property exclusions registered per class.
[Java -> JSON] - clearPropertyNameProcessors() - Method in class net.sf.json.JsonConfig
-
Deprecated.use clearJavaPropertyNameProcessors() instead
- compareTo(Object) - Method in class net.sf.json.JSONArray
- compareTo(Object) - Method in class net.sf.json.JSONObject
- CompositePropertyFilter - Class in net.sf.json.filters
- CompositePropertyFilter() - Constructor for class net.sf.json.filters.CompositePropertyFilter
- CompositePropertyFilter(List) - Constructor for class net.sf.json.filters.CompositePropertyFilter
- contains(Object) - Method in class net.sf.json.JSONArray
- contains(Object, JsonConfig) - Method in class net.sf.json.JSONArray
- contains(String, String) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- containsAll(Collection) - Method in class net.sf.json.JSONArray
- containsAll(Collection, JsonConfig) - Method in class net.sf.json.JSONArray
- containsKey(Object) - Method in class net.sf.json.JSONObject
- containsValue(Object) - Method in class net.sf.json.JSONObject
- containsValue(Object, JsonConfig) - Method in class net.sf.json.JSONObject
- convertToJavaIdentifier(String) - Static method in class net.sf.json.util.JSONUtils
-
Transforms the string into a valid Java Identifier.
The default strategy is JavaIdentifierTransformer.NOOP - convertToJavaIdentifier(String, JsonConfig) - Static method in class net.sf.json.util.JSONUtils
-
Transforms the string into a valid Java Identifier.
The default strategy is JavaIdentifierTransformer.NOOP - copy() - Method in class net.sf.json.JsonConfig
- createDimensions(int, int) - Method in class net.sf.ezmorph.array.AbstractArrayMorpher
-
Creates an array representing the dimensions for comversion.
- CycleDetectionStrategy - Class in net.sf.json.util
-
Base class for cycle detection in a hierarchy.
The JSON spec forbides cycles in a hierarchy and most parsers will raise and error when a cycle is detected. - CycleDetectionStrategy() - Constructor for class net.sf.json.util.CycleDetectionStrategy
D
- DateMorpher - Class in net.sf.ezmorph.object
-
Morphs a String to a Date.
- DateMorpher(String[]) - Constructor for class net.sf.ezmorph.object.DateMorpher
- DateMorpher(String[], boolean) - Constructor for class net.sf.ezmorph.object.DateMorpher
- DateMorpher(String[], Date) - Constructor for class net.sf.ezmorph.object.DateMorpher
- DateMorpher(String[], Date, Locale, boolean) - Constructor for class net.sf.ezmorph.object.DateMorpher
- DateMorpher(String[], Locale) - Constructor for class net.sf.ezmorph.object.DateMorpher
- DateMorpher(String[], Locale, boolean) - Constructor for class net.sf.ezmorph.object.DateMorpher
- DEFAULT - Static variable in class net.sf.json.processors.DefaultValueProcessorMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class net.sf.json.processors.JsonBeanProcessorMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class net.sf.json.processors.JsonValueProcessorMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class net.sf.json.processors.PropertyNameProcessorMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class net.sf.json.util.NewBeanInstanceStrategy
-
Calls Class.newInstance()
- DEFAULT - Static variable in class net.sf.json.util.PropertyExclusionClassMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class net.sf.json.util.PropertySetStrategy
- DEFAULT_DEFAULT_VALUE_PROCESSOR_MATCHER - Static variable in class net.sf.json.JsonConfig
- DEFAULT_JSON_BEAN_PROCESSOR_MATCHER - Static variable in class net.sf.json.JsonConfig
- DEFAULT_JSON_VALUE_PROCESSOR_MATCHER - Static variable in class net.sf.json.JsonConfig
- DEFAULT_NEW_BEAN_INSTANCE_STRATEGY - Static variable in class net.sf.json.JsonConfig
- DEFAULT_PROPERTY_EXCLUSION_CLASS_MATCHER - Static variable in class net.sf.json.JsonConfig
- DEFAULT_PROPERTY_NAME_PROCESSOR_MATCHER - Static variable in class net.sf.json.JsonConfig
- DefaultDefaultValueProcessor - Class in net.sf.json.processors
-
Base implementation for DefaultDefaultValueProcessor.
- DefaultDefaultValueProcessor() - Constructor for class net.sf.json.processors.DefaultDefaultValueProcessor
- DefaultValueProcessor - Interface in net.sf.json.processors
-
Defines the default value for a type when its value is null.
- DefaultValueProcessorMatcher - Class in net.sf.json.processors
-
Base class for finding a matching DefaultValueProcessor.
DEFAULT - matches the target class with equals(). - DefaultValueProcessorMatcher() - Constructor for class net.sf.json.processors.DefaultValueProcessorMatcher
- dehexchar(char) - Static method in class net.sf.json.util.JSONTokener
-
Get the hex value of a character (base16).
- deregisterMorpher(Morpher) - Method in class net.sf.ezmorph.MorpherRegistry
-
Deregister the specified Morpher.
The registry will remove the targetClassfrom the morphers Map if it has no other registered morphers. - disableEventTriggering() - Method in class net.sf.json.JsonConfig
-
Disables event triggering when building.
[Java -> JSON] - discard(int) - Method in class net.sf.json.JSONArray
-
Remove an element, if present.
- discard(Object) - Method in class net.sf.json.JSONArray
-
Remove an element, if present.
- discard(String) - Method in class net.sf.json.JSONObject
-
Remove a name and its value, if present.
- DOUBLE_QUOTE - Static variable in class net.sf.json.util.JSONUtils
-
Constant for char "
- DoubleArrayMorpher - Class in net.sf.ezmorph.array
-
Morphs an array to a double[].
- DoubleArrayMorpher() - Constructor for class net.sf.ezmorph.array.DoubleArrayMorpher
- DoubleArrayMorpher(double) - Constructor for class net.sf.ezmorph.array.DoubleArrayMorpher
- DoubleMorpher - Class in net.sf.ezmorph.primitive
-
Morphs to a double.
- DoubleMorpher() - Constructor for class net.sf.ezmorph.primitive.DoubleMorpher
- DoubleMorpher(double) - Constructor for class net.sf.ezmorph.primitive.DoubleMorpher
- doubleToString(double) - Static method in class net.sf.json.util.JSONUtils
-
Produce a string from a double.
E
- element(boolean) - Method in class net.sf.json.JSONArray
-
Append a boolean value.
- element(double) - Method in class net.sf.json.JSONArray
-
Append a double value.
- element(int) - Method in class net.sf.json.JSONArray
-
Append an int value.
- element(int, boolean) - Method in class net.sf.json.JSONArray
-
Put or replace a boolean value in the JSONArray.
- element(int, double) - Method in class net.sf.json.JSONArray
-
Put or replace a double value.
- element(int, int) - Method in class net.sf.json.JSONArray
-
Put or replace an int value.
- element(int, long) - Method in class net.sf.json.JSONArray
-
Put or replace a long value.
- element(int, Object) - Method in class net.sf.json.JSONArray
-
Put or replace an object value in the JSONArray.
- element(int, Object, JsonConfig) - Method in class net.sf.json.JSONArray
-
Put or replace an object value in the JSONArray.
- element(int, String) - Method in class net.sf.json.JSONArray
-
Put or replace a String value in the JSONArray.
- element(int, String, JsonConfig) - Method in class net.sf.json.JSONArray
-
Put or replace a String value in the JSONArray.
- element(int, Collection) - Method in class net.sf.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
- element(int, Collection, JsonConfig) - Method in class net.sf.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
- element(int, Map) - Method in class net.sf.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
- element(int, Map, JsonConfig) - Method in class net.sf.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
- element(long) - Method in class net.sf.json.JSONArray
-
Append an long value.
- element(Object) - Method in class net.sf.json.JSONArray
-
Append an object value.
- element(Object, JsonConfig) - Method in class net.sf.json.JSONArray
-
Append an object value.
- element(String) - Method in class net.sf.json.JSONArray
-
Append a String value.
- element(String, boolean) - Method in class net.sf.json.JSONObject
-
Put a key/boolean pair in the JSONObject.
- element(String, double) - Method in class net.sf.json.JSONObject
-
Put a key/double pair in the JSONObject.
- element(String, int) - Method in class net.sf.json.JSONObject
-
Put a key/int pair in the JSONObject.
- element(String, long) - Method in class net.sf.json.JSONObject
-
Put a key/long pair in the JSONObject.
- element(String, Object) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject.
- element(String, Object, JsonConfig) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject.
- element(String, Collection) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
- element(String, Collection, JsonConfig) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
- element(String, Map) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.
- element(String, Map, JsonConfig) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.
- element(String, JsonConfig) - Method in class net.sf.json.JSONArray
-
Append a String value.
- element(Collection) - Method in class net.sf.json.JSONArray
-
Append a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
- element(Collection, JsonConfig) - Method in class net.sf.json.JSONArray
-
Append a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
- element(Map) - Method in class net.sf.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
- element(Map, JsonConfig) - Method in class net.sf.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
- element(JSONNull) - Method in class net.sf.json.JSONArray
-
Append an JSON value.
- element(JSONObject) - Method in class net.sf.json.JSONArray
-
Append an JSON value.
- elementOpt(String, Object) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.
- elementOpt(String, Object, JsonConfig) - Method in class net.sf.json.JSONObject
-
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.
- enableEventTriggering() - Method in class net.sf.json.JsonConfig
-
Enables event triggering when building.
[Java -> JSON] - endArray() - Method in class net.sf.json.util.JSONBuilder
-
End an array.
- endObject() - Method in class net.sf.json.util.JSONBuilder
-
End an object.
- entrySet() - Method in class net.sf.json.JSONObject
- EnumMorpher - Class in net.sf.json.util
- EnumMorpher(Class) - Constructor for class net.sf.json.util.EnumMorpher
- equals(Object) - Method in class net.sf.ezmorph.array.BooleanArrayMorpher
- equals(Object) - Method in class net.sf.ezmorph.array.BooleanObjectArrayMorpher
- equals(Object) - Method in class net.sf.ezmorph.array.ByteArrayMorpher
- equals(Object) - Method in class net.sf.ezmorph.array.CharacterObjectArrayMorpher
- equals(Object) - Method in class net.sf.ezmorph.array.CharArrayMorpher
- equals(Object) - Method in class net.sf.ezmorph.array.DoubleArrayMorpher
- equals(Object) - Method in class net.sf.ezmorph.array.FloatArrayMorpher
- equals(Object) - Method in class net.sf.ezmorph.array.IntArrayMorpher
- equals(Object) - Method in class net.sf.ezmorph.array.LongArrayMorpher
- equals(Object) - Method in class net.sf.ezmorph.array.ObjectArrayMorpher
- equals(Object) - Method in class net.sf.ezmorph.array.ShortArrayMorpher
- equals(Object) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- equals(Object) - Method in class net.sf.ezmorph.bean.MorphDynaClass
- equals(Object) - Method in class net.sf.ezmorph.object.BigDecimalMorpher
- equals(Object) - Method in class net.sf.ezmorph.object.BigIntegerMorpher
- equals(Object) - Method in class net.sf.ezmorph.object.BooleanObjectMorpher
- equals(Object) - Method in class net.sf.ezmorph.object.CharacterObjectMorpher
- equals(Object) - Method in class net.sf.ezmorph.object.ClassMorpher
- equals(Object) - Method in class net.sf.ezmorph.object.DateMorpher
- equals(Object) - Method in class net.sf.ezmorph.object.IdentityObjectMorpher
- equals(Object) - Method in class net.sf.ezmorph.object.MapToDateMorpher
- equals(Object) - Method in class net.sf.ezmorph.object.NumberMorpher
- equals(Object) - Method in class net.sf.ezmorph.object.ObjectListMorpher
- equals(Object) - Method in class net.sf.ezmorph.object.StringMorpher
- equals(Object) - Method in class net.sf.ezmorph.object.SwitchingMorpher
- equals(Object) - Method in class net.sf.ezmorph.primitive.BooleanMorpher
- equals(Object) - Method in class net.sf.ezmorph.primitive.ByteMorpher
- equals(Object) - Method in class net.sf.ezmorph.primitive.CharMorpher
- equals(Object) - Method in class net.sf.ezmorph.primitive.DoubleMorpher
- equals(Object) - Method in class net.sf.ezmorph.primitive.FloatMorpher
- equals(Object) - Method in class net.sf.ezmorph.primitive.IntMorpher
- equals(Object) - Method in class net.sf.ezmorph.primitive.LongMorpher
- equals(Object) - Method in class net.sf.ezmorph.primitive.ShortMorpher
- equals(Object) - Method in class net.sf.json.JSONArray
- equals(Object) - Method in class net.sf.json.JSONNull
-
A Null object is equal to the null value and to itself.
- equals(Object) - Method in class net.sf.json.JSONObject
F
- FalsePropertyFilter - Class in net.sf.json.filters
- FalsePropertyFilter() - Constructor for class net.sf.json.filters.FalsePropertyFilter
- findDefaultValueProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Finds a DefaultValueProcessor registered to the target class.
Returns null if none is registered.
[Java -> JSON] - findJavaPropertyNameProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Finds a PropertyNameProcessor registered to the target class.
Returns null if none is registered.
[JSON -> Java] - findJsonBeanProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Finds a JsonBeanProcessor registered to the target class.
Returns null if none is registered.
[Java -> JSON] - findJsonPropertyNameProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Finds a PropertyNameProcessor registered to the target class.
Returns null if none is registered.
[Java -> JSON] - findJsonValueProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Finds a JsonValueProcessor registered to the target type.
Returns null if none is registered.
[Java -> JSON] - findJsonValueProcessor(Class, Class, String) - Method in class net.sf.json.JsonConfig
-
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] - findJsonValueProcessor(Class, String) - Method in class net.sf.json.JsonConfig
-
Finds a JsonValueProcessor.
It will search the registered JsonValueProcessors in the following order: key type Returns null if none is registered.
[Java -> JSON] - findPropertyNameProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Deprecated.use findJavaPropertyNameProcessor() instead
- fireArrayEndEvent(JsonConfig) - Static method in class net.sf.json.JSONArray
-
Fires an end of array event.
- fireArrayStartEvent(JsonConfig) - Static method in class net.sf.json.JSONArray
-
Fires a start of array event.
- fireElementAddedEvent(int, Object, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Fires an element added event.
- fireErrorEvent(JSONException, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Fires an error event.
- fireObjectEndEvent(JsonConfig) - Static method in class net.sf.json.JSONArray
-
Fires an end of object event.
- fireObjectStartEvent(JsonConfig) - Static method in class net.sf.json.JSONArray
-
Fires a start of object event.
- firePropertySetEvent(String, Object, boolean, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Fires a property set event.
- fireWarnEvent(String, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Fires a warning event.
- FloatArrayMorpher - Class in net.sf.ezmorph.array
-
Morphs an array to a float[].
- FloatArrayMorpher() - Constructor for class net.sf.ezmorph.array.FloatArrayMorpher
- FloatArrayMorpher(float) - Constructor for class net.sf.ezmorph.array.FloatArrayMorpher
- FloatMorpher - Class in net.sf.ezmorph.primitive
-
Moprhs to a float.
- FloatMorpher() - Constructor for class net.sf.ezmorph.primitive.FloatMorpher
- FloatMorpher(float) - Constructor for class net.sf.ezmorph.primitive.FloatMorpher
- fromObject(Object) - Static method in class net.sf.json.JSONArray
-
Creates a JSONArray.
- fromObject(Object) - Static method in class net.sf.json.JSONObject
-
Creates a JSONObject.
Inspects the object type to call the correct JSONObject factory method. - fromObject(Object, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Creates a JSONArray.
- fromObject(Object, JsonConfig) - Static method in class net.sf.json.JSONObject
-
Creates a JSONObject.
Inspects the object type to call the correct JSONObject factory method.
G
- get(int) - Method in class net.sf.json.JSONArray
-
Get the object value associated with an index.
- get(Object) - Method in class net.sf.json.JSONObject
- get(String) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- get(String) - Method in class net.sf.json.JSONObject
-
Get the value object associated with a key.
- get(String, int) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- get(String, String) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- getArrayMode() - Method in class net.sf.json.JsonConfig
-
Returns the current array mode conversion.
[JSON -> Java] - getBeanClass() - Method in class net.sf.ezmorph.bean.MorphDynaClass
- getBoolean(int) - Method in class net.sf.json.JSONArray
-
Get the boolean value associated with an index.
- getBoolean(String) - Method in class net.sf.json.JSONObject
-
Get the boolean value associated with a key.
- getCause() - Method in exception net.sf.ezmorph.MorphException
-
Returns the cause of this exception.
- getClassMap() - Method in class net.sf.json.JsonConfig
-
Returns the current attribute/class Map.
[JSON -> Java] - getCollectionType() - Method in class net.sf.json.JsonConfig
-
Returns the current collection type used for collection transformations.
[JSON -> Java] - getCollectionType(PropertyDescriptor, boolean) - Static method in class net.sf.json.JSONArray
-
Get the collection type from a getter or setter, or null if no type was found.
- getCycleDetectionStrategy() - Method in class net.sf.json.JsonConfig
-
Returns the configured CycleDetectionStrategy.
Default value is CycleDetectionStrategy.STRICT
[Java -> JSON] - getDefaultValue() - Method in class net.sf.ezmorph.array.BooleanArrayMorpher
- getDefaultValue() - Method in class net.sf.ezmorph.array.BooleanObjectArrayMorpher
- getDefaultValue() - Method in class net.sf.ezmorph.array.ByteArrayMorpher
- getDefaultValue() - Method in class net.sf.ezmorph.array.CharacterObjectArrayMorpher
- getDefaultValue() - Method in class net.sf.ezmorph.array.CharArrayMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.array.DoubleArrayMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.array.FloatArrayMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.array.IntArrayMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.array.LongArrayMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.array.ShortArrayMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.object.BigDecimalMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.object.BigIntegerMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.object.BooleanObjectMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.object.CharacterObjectMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.object.DateMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.object.MapToDateMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.object.NumberMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.primitive.BooleanMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.primitive.ByteMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.primitive.CharMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.primitive.DoubleMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.primitive.FloatMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.primitive.IntMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.primitive.LongMorpher
-
Returns the default value for this Morpher.
- getDefaultValue() - Method in class net.sf.ezmorph.primitive.ShortMorpher
-
Returns the default value for this Morpher.
- getDefaultValue(Class) - Method in class net.sf.json.processors.DefaultDefaultValueProcessor
- getDefaultValue(Class) - Method in interface net.sf.json.processors.DefaultValueProcessor
-
Returns an appropriate default value for a type.
- getDefaultValueProcessorMatcher() - Method in class net.sf.json.JsonConfig
-
Returns the configured DefaultValueProcessorMatcher.
Default value is DefaultValueProcessorMatcher.DEFAULT
[Java -> JSON] - getDimensions(Class) - Method in class net.sf.ezmorph.array.AbstractArrayMorpher
-
Returns the number of dimensions in an array class.
- getDimensions(JSONArray) - Static method in class net.sf.json.JSONArray
-
Returns the number of dimensions suited for a java array.
- getDouble(int) - Method in class net.sf.json.JSONArray
-
Get the double value associated with an index.
- getDouble(String) - Method in class net.sf.json.JSONObject
-
Get the double value associated with a key.
- getDynaClass() - Method in class net.sf.ezmorph.bean.MorphDynaBean
- getDynaProperties() - Method in class net.sf.ezmorph.bean.MorphDynaClass
- getDynaProperty(String) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- getDynaProperty(String) - Method in class net.sf.ezmorph.bean.MorphDynaClass
- getEnclosedType() - Method in class net.sf.json.JsonConfig
-
Returns the current enclosed type for generic collection transformations.
[JSON -> Java] - getExcludes() - Method in class net.sf.json.JsonConfig
-
Returns the configured properties for exclusion.
- getIgnoreFieldAnnotations() - Method in class net.sf.json.JsonConfig
-
Returns a List of all annotations that mark a field to be skipped when building.
[Java -> JSON] - getInnerComponentType(Class) - Static method in class net.sf.json.util.JSONUtils
-
Returns the inner-most component type of an Array.
- getInstance() - Static method in class net.sf.ezmorph.object.ClassMorpher
-
Returns the singleton instance
- getInstance() - Static method in class net.sf.ezmorph.object.IdentityObjectMorpher
-
Returns the singleton instance
- getInstance() - Static method in class net.sf.ezmorph.object.StringMorpher
-
Returns the singleton instance
- getInstance() - Static method in class net.sf.json.JSONNull
-
Returns the singleton instance of JSONNull
- getInt(int) - Method in class net.sf.json.JSONArray
-
Get the int value associated with an index.
- getInt(String) - Method in class net.sf.json.JSONObject
-
Get the int value associated with a key.
- getIntegerValue(Object) - Method in class net.sf.ezmorph.object.BigIntegerMorpher
-
Trims the String from the begining to the first "."
- getIntegerValue(Object) - Method in class net.sf.ezmorph.primitive.AbstractIntegerMorpher
-
Trims the String from the begining to the first "."
- getJavaIdentifierTransformer() - Method in class net.sf.json.JsonConfig
-
Returns the configured JavaIdentifierTransformer.
- getJavaPropertyFilter() - Method in class net.sf.json.JsonConfig
-
Returns the configured property filter when serializing to Java.
[JSON -> Java] - getJavaPropertyNameProcessorMatcher() - Method in class net.sf.json.JsonConfig
-
Returns the configured PropertyNameProcessorMatcher.
Default value is PropertyNameProcessorMatcher.DEFAULT
[JSON -> Java] - getJSONArray(int) - Method in class net.sf.json.JSONArray
-
Get the JSONArray associated with an index.
- getJSONArray(String) - Method in class net.sf.json.JSONObject
-
Get the JSONArray value associated with a key.
- getJsonBeanProcessorMatcher() - Method in class net.sf.json.JsonConfig
-
Returns the configured JsonBeanProcessorMatcher.
Default value is JsonBeanProcessorMatcher.DEFAULT
[JSON -> Java] - getJsonEventListeners() - Method in class net.sf.json.JsonConfig
-
Returns a list of registered listeners for JSON events.
[JSON -> Java] - getJSONObject(int) - Method in class net.sf.json.JSONArray
-
Get the JSONObject associated with an index.
- getJSONObject(String) - Method in class net.sf.json.JSONObject
-
Get the JSONObject value associated with a key.
- getJsonPropertyFilter() - Method in class net.sf.json.JsonConfig
-
Returns the configured property filter when serializing to JSON.
[Java -> JSON] - getJsonPropertyNameProcessorMatcher() - Method in class net.sf.json.JsonConfig
-
Returns the configured PropertyNameProcessorMatcher.
Default value is PropertyNameProcessorMatcher.DEFAULT
[Java -> JSON] - getJsonValueProcessorMatcher() - Method in class net.sf.json.JsonConfig
-
Returns the configured JsonValueProcessorMatcher.
Default value is JsonValueProcessorMatcher.DEFAULT
[Java -> JSON] - getLong(int) - Method in class net.sf.json.JSONArray
-
Get the long value associated with an index.
- getLong(String) - Method in class net.sf.json.JSONObject
-
Get the long value associated with a key.
- getMatch(Class, Set) - Method in class net.sf.json.processors.DefaultValueProcessorMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatch(Class, Set) - Method in class net.sf.json.processors.JsonBeanProcessorMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatch(Class, Set) - Method in class net.sf.json.processors.JsonValueProcessorMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatch(Class, Set) - Method in class net.sf.json.processors.PropertyNameProcessorMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatch(Class, Set) - Method in class net.sf.json.util.PropertyExclusionClassMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMergedExcludes() - Method in class net.sf.json.JsonConfig
-
Returns a set of default excludes with user-defined excludes.
[Java -> JSON] - getMergedExcludes(Class) - Method in class net.sf.json.JsonConfig
-
Returns a set of default excludes with user-defined excludes.
Takes into account any additional excludes per matching class. - getMorpherFor(Class) - Method in class net.sf.ezmorph.MorpherRegistry
-
Returns a morpher for
clazz.
If several morphers are found for that class, it returns the first. - getMorpherRegistry() - Method in class net.sf.ezmorph.bean.MorphDynaBean
- getMorpherRegistry() - Static method in class net.sf.json.util.JSONUtils
-
Returns the singleton MorpherRegistry.
- getMorphersFor(Class) - Method in class net.sf.ezmorph.MorpherRegistry
-
Returns all morphers for
clazz.
If no Morphers are found it will return an array containing the IdentityObjectMorpher. - getName() - Method in class net.sf.ezmorph.bean.MorphDynaClass
- getNewBeanInstanceStrategy() - Method in class net.sf.json.JsonConfig
-
Returns the configured NewBeanInstanceStrategy.
Default value is NewBeanInstanceStrategy.DEFAULT
[JSON -> Java] - getProperties(JSONObject) - Static method in class net.sf.json.util.JSONUtils
-
Creates a Map with all the properties of the JSONObject.
- getPropertyExclusionClassMatcher() - Method in class net.sf.json.JsonConfig
-
Returns the configured PropertyExclusionClassMatcher.
Default value is PropertyExclusionClassMatcher.DEFAULT
[JSON -> Java] - getPropertyNameProcessorMatcher() - Method in class net.sf.json.JsonConfig
-
Deprecated.use getJavaPropertyNameProcessorMatcher() instead
- getPropertySetStrategy() - Method in class net.sf.json.JsonConfig
-
Returns the configured PropertySetStrategy.
Default value is PropertySetStrategy.DEFAULT
[JSON -> Java] - getRootClass() - Method in class net.sf.json.JsonConfig
-
Returns the current root Class.
[JSON -> Java] - getString(int) - Method in class net.sf.json.JSONArray
-
Get the string associated with an index.
- getString(String) - Method in class net.sf.json.JSONObject
-
Get the string associated with a key.
- getTypeClass(Object) - Static method in class net.sf.json.util.JSONUtils
-
Returns the JSON type.
Values are Object, String, Boolean, Number(subclasses).
H
- handleRepeatedReferenceAsArray(Object) - Method in class net.sf.json.util.CycleDetectionStrategy
-
Handle a repeated reference
Must return a valid JSONArray or null. - handleRepeatedReferenceAsObject(Object) - Method in class net.sf.json.util.CycleDetectionStrategy
-
Handle a repeated reference
Must return a valid JSONObject or null. - has(String) - Method in class net.sf.json.JSONObject
-
Determine if the JSONObject contains a specific key.
- hashCode() - Method in class net.sf.ezmorph.array.BooleanArrayMorpher
- hashCode() - Method in class net.sf.ezmorph.array.BooleanObjectArrayMorpher
- hashCode() - Method in class net.sf.ezmorph.array.ByteArrayMorpher
- hashCode() - Method in class net.sf.ezmorph.array.CharacterObjectArrayMorpher
- hashCode() - Method in class net.sf.ezmorph.array.CharArrayMorpher
- hashCode() - Method in class net.sf.ezmorph.array.DoubleArrayMorpher
- hashCode() - Method in class net.sf.ezmorph.array.FloatArrayMorpher
- hashCode() - Method in class net.sf.ezmorph.array.IntArrayMorpher
- hashCode() - Method in class net.sf.ezmorph.array.LongArrayMorpher
- hashCode() - Method in class net.sf.ezmorph.array.ObjectArrayMorpher
- hashCode() - Method in class net.sf.ezmorph.array.ShortArrayMorpher
- hashCode() - Method in class net.sf.ezmorph.bean.MorphDynaBean
- hashCode() - Method in class net.sf.ezmorph.bean.MorphDynaClass
- hashCode() - Method in class net.sf.ezmorph.object.BigDecimalMorpher
- hashCode() - Method in class net.sf.ezmorph.object.BigIntegerMorpher
- hashCode() - Method in class net.sf.ezmorph.object.BooleanObjectMorpher
- hashCode() - Method in class net.sf.ezmorph.object.CharacterObjectMorpher
- hashCode() - Method in class net.sf.ezmorph.object.ClassMorpher
- hashCode() - Method in class net.sf.ezmorph.object.DateMorpher
- hashCode() - Method in class net.sf.ezmorph.object.IdentityObjectMorpher
- hashCode() - Method in class net.sf.ezmorph.object.MapToDateMorpher
- hashCode() - Method in class net.sf.ezmorph.object.NumberMorpher
- hashCode() - Method in class net.sf.ezmorph.object.ObjectListMorpher
- hashCode() - Method in class net.sf.ezmorph.object.StringMorpher
- hashCode() - Method in class net.sf.ezmorph.object.SwitchingMorpher
- hashCode() - Method in class net.sf.ezmorph.primitive.BooleanMorpher
- hashCode() - Method in class net.sf.ezmorph.primitive.ByteMorpher
- hashCode() - Method in class net.sf.ezmorph.primitive.CharMorpher
- hashCode() - Method in class net.sf.ezmorph.primitive.DoubleMorpher
- hashCode() - Method in class net.sf.ezmorph.primitive.FloatMorpher
- hashCode() - Method in class net.sf.ezmorph.primitive.IntMorpher
- hashCode() - Method in class net.sf.ezmorph.primitive.LongMorpher
- hashCode() - Method in class net.sf.ezmorph.primitive.ShortMorpher
- hashCode() - Method in class net.sf.json.JSONArray
- hashCode() - Method in class net.sf.json.JSONNull
- hashCode() - Method in class net.sf.json.JSONObject
- hashCode(Object) - Static method in class net.sf.json.util.JSONUtils
-
Returns the hashcode of value.
If null it will return JSONNull.getInstance().hashCode().
If value is JSON or String, value.hashCode is returned, otherwise the value is transformed to a String an its hashcode is returned. - hasQuotes(String) - Static method in class net.sf.json.util.JSONUtils
-
Returns true if the input has single-quotes or double-quotes at both sides.
I
- IdentityObjectMorpher - Class in net.sf.ezmorph.object
-
Morpher that performs no conversion.
This morpher is a singleton. - IGNORE_PROPERTY_ARR - Static variable in class net.sf.json.util.CycleDetectionStrategy
- IGNORE_PROPERTY_OBJ - Static variable in class net.sf.json.util.CycleDetectionStrategy
- indexOf(Object) - Method in class net.sf.json.JSONArray
- IntArrayMorpher - Class in net.sf.ezmorph.array
-
Morphs an array to a int[].
- IntArrayMorpher() - Constructor for class net.sf.ezmorph.array.IntArrayMorpher
- IntArrayMorpher(int) - Constructor for class net.sf.ezmorph.array.IntArrayMorpher
- IntMorpher - Class in net.sf.ezmorph.primitive
-
Morphs to an int.
- IntMorpher() - Constructor for class net.sf.ezmorph.primitive.IntMorpher
- IntMorpher(int) - Constructor for class net.sf.ezmorph.primitive.IntMorpher
- isAllowNonStringKeys() - Method in class net.sf.json.JsonConfig
-
Returns true if non-String keys are allowed on JSONObject.
Default value is false
[Java -> JSON] - isArray() - Method in interface net.sf.json.JSON
-
Returns true if this object is a JSONArray, false otherwise.
- isArray() - Method in class net.sf.json.JSONArray
- isArray() - Method in class net.sf.json.JSONNull
- isArray() - Method in class net.sf.json.JSONObject
- isArray(Class) - Static method in class net.sf.json.util.JSONUtils
-
Tests if a Class represents an array or Collection.
- isArray(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if obj is an array or Collection.
- isBoolean(Class) - Static method in class net.sf.json.util.JSONUtils
-
Tests if Class represents a Boolean or primitive boolean
- isBoolean(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if obj is a Boolean or primitive boolean
- isDouble(Class) - Static method in class net.sf.json.util.JSONUtils
-
Tests if Class represents a primitive double or wrapper.
- isDynaAssignable(Class, Class) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- isEmpty() - Method in interface net.sf.json.JSON
-
Returns true if this object has no elements or keys.
- isEmpty() - Method in class net.sf.json.JSONArray
- isEmpty() - Method in class net.sf.json.JSONNull
- isEmpty() - Method in class net.sf.json.JSONObject
- isEventTriggeringEnabled() - Method in class net.sf.json.JsonConfig
-
Returns true if event triggering is enabled during building.
Default value is false
[Java -> JSON] - isExpandElements() - Method in class net.sf.json.JSONArray
- isHandleJettisonEmptyElement() - Method in class net.sf.json.JsonConfig
-
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] - isHandleJettisonSingleElementArray() - Method in class net.sf.json.JsonConfig
-
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] - isIgnoreDefaultExcludes() - Method in class net.sf.json.JsonConfig
-
Returns true if default excludes will not be used.
Default value is false.
[Java -> JSON] - isIgnoreJPATransient() - Method in class net.sf.json.JsonConfig
-
Returns true if JPA Transient annotated methods should be ignored.
Default value is false.
[Java -> JSON] - isIgnorePublicFields() - Method in class net.sf.json.JsonConfig
-
Returns true if public fields of a bean will be ignored.
Default value is true.
[Java -> JSON] - isIgnoreTransientFields() - Method in class net.sf.json.JsonConfig
-
Returns true if transient fields of a bean will be ignored.
Default value is false.
[Java -> JSON] - isIgnoreUnreadableProperty() - Method in class net.sf.json.JsonConfig
- isJavaIdentifier(String) - Static method in class net.sf.json.util.JSONUtils
-
Returns trus if str represents a valid Java identifier.
- isJavascriptCompliant() - Method in class net.sf.json.JsonConfig
-
Returns true if Javascript compatibility is turned on.
Default value is false.
[Java -> JSON] - isJsonKeyword(String, JsonConfig) - Static method in class net.sf.json.util.JSONUtils
- isNull(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if the obj is a javaScript null.
- isNullObject() - Method in class net.sf.json.JSONObject
-
Returs if this object is a null JSONObject.
- isNumber(Class) - Static method in class net.sf.json.util.JSONUtils
-
Tests if Class represents a primitive number or wrapper.
- isNumber(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if obj is a primitive number or wrapper.
- isObject(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if obj is not a boolean, number, string or array.
- isSkipJavaIdentifierTransformationInMapKeys() - Method in class net.sf.json.JsonConfig
-
Returns true if map keys will not be transformed.
Default value is false.
[JSON -> Java] - isString(Class) - Static method in class net.sf.json.util.JSONUtils
-
Tests if Class represents a String or a char
- isString(Object) - Static method in class net.sf.json.util.JSONUtils
-
Tests if obj is a String or a char
- isUseDefault() - Method in class net.sf.ezmorph.array.AbstractArrayMorpher
-
Returns if this morpher will use a default value.
- isUseDefault() - Method in class net.sf.ezmorph.object.AbstractObjectMorpher
-
Returns if this morpher will use a default value.
- isUseDefault() - Method in class net.sf.ezmorph.primitive.AbstractPrimitiveMorpher
-
Returns if this morpher will use a default value if the value to be morphed is null
- isValidJsonValue(Object) - Static method in class net.sf.json.processors.JsonVerifier
-
Verifies if value is a valid JSON value.
- iterator() - Method in class net.sf.json.JSONArray
-
Returns an Iterator for this JSONArray
J
- JavaIdentifierTransformer - Class in net.sf.json.util
-
Transforms a string into a valid Java identifier.
There are five predefined strategies: NOOP: does not perform transformation. CAMEL_CASE: follows the camel case convention, deletes non JavaIdentifierPart chars (including whitespace). UNDERSCORE: replaces sequences of non JavaIdentifierPart chars (including whitespace) with single '_' separators. WHITESPACE: deletes non JavaIdentifierPart chars (including whitespace). STRICT: always throws a JSONException, does not perform transformation. - JavaIdentifierTransformer() - Constructor for class net.sf.json.util.JavaIdentifierTransformer
- join(String) - Method in class net.sf.json.JSONArray
-
Make a string from the contents of this JSONArray.
- join(String, boolean) - Method in class net.sf.json.JSONArray
-
Make a string from the contents of this JSONArray.
- JsDateJsonBeanProcessor - Class in net.sf.json.processors
-
Transforms a java.util.Date into a JSONObject ideal for JsDate conversion.
Example: - JsDateJsonBeanProcessor() - Constructor for class net.sf.json.processors.JsDateJsonBeanProcessor
- JsDateJsonValueProcessor - Class in net.sf.json.processors
-
Transforms a java.util.Date property into a JSONObject ideal for JsDate conversion
- JsDateJsonValueProcessor() - Constructor for class net.sf.json.processors.JsDateJsonValueProcessor
- JSON - Interface in net.sf.json
-
Marker interface, identifies a valid JSON value.
A JSON value may be aJSONObject, aJSONArrayor aJSONNull. - JSONArray - Class in net.sf.json
-
A JSONArray is an ordered sequence of values.
- JSONArray() - Constructor for class net.sf.json.JSONArray
-
Construct an empty JSONArray.
- JsonBeanProcessor - Interface in net.sf.json.processors
-
Base interface for custom serialization per Bean.
- JsonBeanProcessorMatcher - Class in net.sf.json.processors
-
Base class for finding a matching JsonBeanProcessor.
DEFAULT - matches the target class with equals(). - JsonBeanProcessorMatcher() - Constructor for class net.sf.json.processors.JsonBeanProcessorMatcher
- JSONBuilder - Class in net.sf.json.util
-
JSONBuilder provides a quick and convenient way of producing JSON text.
- JSONBuilder(Writer) - Constructor for class net.sf.json.util.JSONBuilder
-
Make a fresh JSONBuilder.
- JsonConfig - Class in net.sf.json
-
Utility class that helps configuring the serialization process.
- JsonConfig() - Constructor for class net.sf.json.JsonConfig
- JsonEventListener - Interface in net.sf.json.util
-
Defines the contract to handle JsonEvents when building an object or array.
- JSONException - Exception in net.sf.json
-
The JSONException is thrown when things are amiss.
- JSONException() - Constructor for exception net.sf.json.JSONException
- JSONException(String) - Constructor for exception net.sf.json.JSONException
- JSONException(String, Throwable) - Constructor for exception net.sf.json.JSONException
- JSONException(Throwable) - Constructor for exception net.sf.json.JSONException
- JSONNull - Class in net.sf.json
-
JSONNull is equivalent to the value that JavaScript calls null, whilst Java's null is equivalent to the value that JavaScript calls undefined.
- JSONObject - Class in net.sf.json
-
A JSONObject is an unordered collection of name/value pairs.
- JSONObject() - Constructor for class net.sf.json.JSONObject
-
Construct an empty JSONObject.
- JSONObject(boolean) - Constructor for class net.sf.json.JSONObject
-
Creates a JSONObject that is null.
- JSONSerializer - Class in net.sf.json
-
Transforms java objects into JSON and back.
Transformation from java to JSON is pretty straightforward, but the other way around needs certain configuration, otherwise the java objects produced will be DynaBeans and Lists, because the JSON notation does not carry any information on java classes. - JSONSerializer() - Constructor for class net.sf.json.JSONSerializer
- JSONString - Interface in net.sf.json
-
The
JSONStringinterface allows atoJSONString()method so that a class can change the behavior ofJSONObject.toString(),JSONArray.toString(), andJSONWriter.value(Object). - JSONStringer - Class in net.sf.json.util
-
JSONStringer provides a quick and convenient way of producing JSON text.
- JSONStringer() - Constructor for class net.sf.json.util.JSONStringer
-
Make a fresh JSONStringer.
- JSONTokener - Class in net.sf.json.util
-
A JSONTokener takes a source string and extracts characters and tokens from it.
- JSONTokener(String) - Constructor for class net.sf.json.util.JSONTokener
-
Construct a JSONTokener from a string.
- JSONUtils - Class in net.sf.json.util
-
Provides useful methods on java objects and JSON values.
- JsonValueProcessor - Interface in net.sf.json.processors
-
Base interface for custom serialization per property.
- JsonValueProcessorMatcher - Class in net.sf.json.processors
-
Base class for finding a matching JsonValueProcessor.
DEFAULT - matches the target class with equals(). - JsonValueProcessorMatcher() - Constructor for class net.sf.json.processors.JsonValueProcessorMatcher
- JsonVerifier - Class in net.sf.json.processors
-
Verifies if a value is a valid JSON value.
- JsonVerifier() - Constructor for class net.sf.json.processors.JsonVerifier
K
- key(String) - Method in class net.sf.json.util.JSONBuilder
-
Append a key.
- keyMatches(Object, Object, String, Object) - Method in class net.sf.json.filters.MappingPropertyFilter
- keys() - Method in class net.sf.json.JSONObject
-
Get an enumeration of the keys of the JSONObject.
- keySet() - Method in class net.sf.json.JSONObject
L
- lastIndexOf(Object) - Method in class net.sf.json.JSONArray
- length() - Method in class net.sf.json.util.JSONTokener
- LENIENT - Static variable in class net.sf.json.util.CycleDetectionStrategy
-
Returns empty array and null object
- listIterator() - Method in class net.sf.json.JSONArray
- listIterator(int) - Method in class net.sf.json.JSONArray
- LongArrayMorpher - Class in net.sf.ezmorph.array
-
Morphs an array to a long[].
- LongArrayMorpher() - Constructor for class net.sf.ezmorph.array.LongArrayMorpher
- LongArrayMorpher(long) - Constructor for class net.sf.ezmorph.array.LongArrayMorpher
- LongMorpher - Class in net.sf.ezmorph.primitive
-
Morphs to a long.
- LongMorpher() - Constructor for class net.sf.ezmorph.primitive.LongMorpher
- LongMorpher(long) - Constructor for class net.sf.ezmorph.primitive.LongMorpher
M
- MappingPropertyFilter - Class in net.sf.json.filters
- MappingPropertyFilter() - Constructor for class net.sf.json.filters.MappingPropertyFilter
- MappingPropertyFilter(Map) - Constructor for class net.sf.json.filters.MappingPropertyFilter
- MapToDateMorpher - Class in net.sf.ezmorph.object
-
Morphs a Map into a Date.
The Map should have at least one of the following keys [yer,month,day,hour,minutes,seconds,milliseconds] and the values should be instances of Number. - MapToDateMorpher() - Constructor for class net.sf.ezmorph.object.MapToDateMorpher
- MapToDateMorpher(Date) - Constructor for class net.sf.ezmorph.object.MapToDateMorpher
- matches(String) - Method in class net.sf.json.util.JSONTokener
- mayBeJSON(String) - Static method in class net.sf.json.util.JSONUtils
-
Tests if the String possibly represents a valid JSON String.
Valid JSON strings are: "null" starts with "[" and ends with "]" starts with "{" and ends with "}" - mode - Variable in class net.sf.json.util.JSONBuilder
-
The current mode.
- MODE_LIST - Static variable in class net.sf.json.JsonConfig
- MODE_OBJECT_ARRAY - Static variable in class net.sf.json.JsonConfig
- MODE_SET - Static variable in class net.sf.json.JsonConfig
- more() - Method in class net.sf.json.util.JSONTokener
-
Determine if the source string still contains characters that next() can consume.
- morph(Class, Object) - Method in class net.sf.ezmorph.MorpherRegistry
-
Morphs and object to the specified target class.
This method uses reflection to invoke primitive Morphers and Morphers that do not implement ObjectMorpher. - morph(Object) - Method in class net.sf.ezmorph.array.BooleanArrayMorpher
- morph(Object) - Method in class net.sf.ezmorph.array.BooleanObjectArrayMorpher
- morph(Object) - Method in class net.sf.ezmorph.array.ByteArrayMorpher
- morph(Object) - Method in class net.sf.ezmorph.array.CharacterObjectArrayMorpher
- morph(Object) - Method in class net.sf.ezmorph.array.CharArrayMorpher
- morph(Object) - Method in class net.sf.ezmorph.array.DoubleArrayMorpher
- morph(Object) - Method in class net.sf.ezmorph.array.FloatArrayMorpher
- morph(Object) - Method in class net.sf.ezmorph.array.IntArrayMorpher
- morph(Object) - Method in class net.sf.ezmorph.array.LongArrayMorpher
- morph(Object) - Method in class net.sf.ezmorph.array.ObjectArrayMorpher
- morph(Object) - Method in class net.sf.ezmorph.array.ShortArrayMorpher
- morph(Object) - Method in class net.sf.ezmorph.bean.BeanMorpher
- morph(Object) - Method in class net.sf.ezmorph.object.BigDecimalMorpher
- morph(Object) - Method in class net.sf.ezmorph.object.BigIntegerMorpher
- morph(Object) - Method in class net.sf.ezmorph.object.BooleanObjectMorpher
- morph(Object) - Method in class net.sf.ezmorph.object.CharacterObjectMorpher
- morph(Object) - Method in class net.sf.ezmorph.object.ClassMorpher
- morph(Object) - Method in class net.sf.ezmorph.object.DateMorpher
- morph(Object) - Method in class net.sf.ezmorph.object.IdentityObjectMorpher
- morph(Object) - Method in class net.sf.ezmorph.object.MapToDateMorpher
- morph(Object) - Method in class net.sf.ezmorph.object.NumberMorpher
- morph(Object) - Method in class net.sf.ezmorph.object.ObjectListMorpher
- morph(Object) - Method in class net.sf.ezmorph.object.StringMorpher
- morph(Object) - Method in class net.sf.ezmorph.object.SwitchingMorpher
- morph(Object) - Method in interface net.sf.ezmorph.ObjectMorpher
-
Morphs the input object into an output object of the supported type.
- morph(Object) - Method in class net.sf.ezmorph.primitive.BooleanMorpher
-
Morphs the input object into an output object of the supported type.
- morph(Object) - Method in class net.sf.ezmorph.primitive.ByteMorpher
-
Morphs the input object into an output object of the supported type.
- morph(Object) - Method in class net.sf.ezmorph.primitive.CharMorpher
-
Morphs the input object into an output object of the supported type.
- morph(Object) - Method in class net.sf.ezmorph.primitive.DoubleMorpher
-
Morphs the input object into an output object of the supported type.
- morph(Object) - Method in class net.sf.ezmorph.primitive.FloatMorpher
-
Morphs the input object into an output object of the supported type.
- morph(Object) - Method in class net.sf.ezmorph.primitive.IntMorpher
-
Morphs the input object into an output object of the supported type.
- morph(Object) - Method in class net.sf.ezmorph.primitive.LongMorpher
-
Morphs the input object into an output object of the supported type.
- morph(Object) - Method in class net.sf.ezmorph.primitive.ShortMorpher
-
Morphs the input object into an output object of the supported type.
- morph(Object) - Method in class net.sf.json.util.EnumMorpher
- MorphDynaBean - Class in net.sf.ezmorph.bean
- MorphDynaBean() - Constructor for class net.sf.ezmorph.bean.MorphDynaBean
- MorphDynaBean(MorpherRegistry) - Constructor for class net.sf.ezmorph.bean.MorphDynaBean
- MorphDynaClass - Class in net.sf.ezmorph.bean
- MorphDynaClass(String, Class, Map) - Constructor for class net.sf.ezmorph.bean.MorphDynaClass
- MorphDynaClass(String, Class, Map, boolean) - Constructor for class net.sf.ezmorph.bean.MorphDynaClass
- MorphDynaClass(Map) - Constructor for class net.sf.ezmorph.bean.MorphDynaClass
- MorphDynaClass(Map, boolean) - Constructor for class net.sf.ezmorph.bean.MorphDynaClass
- Morpher - Interface in net.sf.ezmorph
-
Marker interface for morphers.
All implementations must have amorph( Object value )method that returns the appropiate morphed value. - MorpherRegistry - Class in net.sf.ezmorph
-
Convenient class that manages Morphers.
A MorpherRehistry manages a group of Morphers. - MorpherRegistry() - Constructor for class net.sf.ezmorph.MorpherRegistry
- MorphException - Exception in net.sf.ezmorph
-
A MorphException indicates that a call to
Morpher.morph()has failed to complete successfully.
Based on common-beauntils ConversionException. - MorphException(String) - Constructor for exception net.sf.ezmorph.MorphException
-
Construct a new exception with the specified message.
- MorphException(String, Throwable) - Constructor for exception net.sf.ezmorph.MorphException
-
Construct a new exception with the specified message and root cause.
- MorphException(Throwable) - Constructor for exception net.sf.ezmorph.MorphException
-
Construct a new exception with the specified root cause.
- morphsTo() - Method in class net.sf.ezmorph.array.BooleanArrayMorpher
- morphsTo() - Method in class net.sf.ezmorph.array.BooleanObjectArrayMorpher
- morphsTo() - Method in class net.sf.ezmorph.array.ByteArrayMorpher
- morphsTo() - Method in class net.sf.ezmorph.array.CharacterObjectArrayMorpher
- morphsTo() - Method in class net.sf.ezmorph.array.CharArrayMorpher
- morphsTo() - Method in class net.sf.ezmorph.array.DoubleArrayMorpher
- morphsTo() - Method in class net.sf.ezmorph.array.FloatArrayMorpher
- morphsTo() - Method in class net.sf.ezmorph.array.IntArrayMorpher
- morphsTo() - Method in class net.sf.ezmorph.array.LongArrayMorpher
- morphsTo() - Method in class net.sf.ezmorph.array.ObjectArrayMorpher
- morphsTo() - Method in class net.sf.ezmorph.array.ShortArrayMorpher
- morphsTo() - Method in class net.sf.ezmorph.bean.BeanMorpher
- morphsTo() - Method in interface net.sf.ezmorph.Morpher
-
Returns the target Class for conversion.
- morphsTo() - Method in class net.sf.ezmorph.object.BigDecimalMorpher
- morphsTo() - Method in class net.sf.ezmorph.object.BigIntegerMorpher
- morphsTo() - Method in class net.sf.ezmorph.object.BooleanObjectMorpher
- morphsTo() - Method in class net.sf.ezmorph.object.CharacterObjectMorpher
- morphsTo() - Method in class net.sf.ezmorph.object.ClassMorpher
- morphsTo() - Method in class net.sf.ezmorph.object.DateMorpher
- morphsTo() - Method in class net.sf.ezmorph.object.IdentityObjectMorpher
- morphsTo() - Method in class net.sf.ezmorph.object.MapToDateMorpher
- morphsTo() - Method in class net.sf.ezmorph.object.NumberMorpher
- morphsTo() - Method in class net.sf.ezmorph.object.ObjectListMorpher
- morphsTo() - Method in class net.sf.ezmorph.object.StringMorpher
- morphsTo() - Method in class net.sf.ezmorph.object.SwitchingMorpher
- morphsTo() - Method in class net.sf.ezmorph.primitive.BooleanMorpher
- morphsTo() - Method in class net.sf.ezmorph.primitive.ByteMorpher
- morphsTo() - Method in class net.sf.ezmorph.primitive.CharMorpher
- morphsTo() - Method in class net.sf.ezmorph.primitive.DoubleMorpher
- morphsTo() - Method in class net.sf.ezmorph.primitive.FloatMorpher
- morphsTo() - Method in class net.sf.ezmorph.primitive.IntMorpher
- morphsTo() - Method in class net.sf.ezmorph.primitive.LongMorpher
- morphsTo() - Method in class net.sf.ezmorph.primitive.ShortMorpher
- morphsTo() - Method in class net.sf.json.util.EnumMorpher
- MorphUtils - Class in net.sf.ezmorph
-
Covenient class for registering standard morphers to a ConvertRegistry.
N
- names() - Method in class net.sf.json.JSONObject
-
Produce a JSONArray containing the names of the elements of this JSONObject.
- names(JsonConfig) - Method in class net.sf.json.JSONObject
-
Produce a JSONArray containing the names of the elements of this JSONObject.
- net.sf.ezmorph - package net.sf.ezmorph
-
Base package
- net.sf.ezmorph.array - package net.sf.ezmorph.array
-
Morphers for arrays.
- net.sf.ezmorph.bean - package net.sf.ezmorph.bean
-
Morphers for JavaBeans and DynaBeans.
- net.sf.ezmorph.object - package net.sf.ezmorph.object
-
Morphers for Object types.
- net.sf.ezmorph.primitive - package net.sf.ezmorph.primitive
-
Morphers for primitive types.
- net.sf.json - package net.sf.json
-
The core of the library
- net.sf.json.filters - package net.sf.json.filters
-
Support for custom serialization
- net.sf.json.processors - package net.sf.json.processors
-
Support for custom serialization
- net.sf.json.util - package net.sf.json.util
-
Miscellaneous utilities
- NewBeanInstanceStrategy - Class in net.sf.json.util
-
Base class for creating Bean instances.
DEFAULT - calls Class.newInstance(). - NewBeanInstanceStrategy() - Constructor for class net.sf.json.util.NewBeanInstanceStrategy
- newDynaBean(JSONObject) - Static method in class net.sf.json.util.JSONUtils
-
Creates a new MorphDynaBean from a JSONObject.
- newDynaBean(JSONObject, JsonConfig) - Static method in class net.sf.json.util.JSONUtils
-
Creates a new MorphDynaBean from a JSONObject.
- newInstance() - Method in class net.sf.ezmorph.bean.MorphDynaClass
- newInstance(Class, JSONObject) - Method in class net.sf.json.util.NewBeanInstanceStrategy
-
Creates a new instance.
- newInstance(MorpherRegistry) - Method in class net.sf.ezmorph.bean.MorphDynaClass
- next() - Method in class net.sf.json.util.JSONTokener
-
Get the next character in the source string.
- next(char) - Method in class net.sf.json.util.JSONTokener
-
Consume the next character, and check that it matches a specified character.
- next(int) - Method in class net.sf.json.util.JSONTokener
-
Get the next n characters.
- nextClean() - Method in class net.sf.json.util.JSONTokener
-
Get the next char in the string, skipping whitespace and comments (slashslash, slashstar, and hash).
- nextString(char) - Method in class net.sf.json.util.JSONTokener
-
Return the characters up to the next close quote character.
- nextTo(char) - Method in class net.sf.json.util.JSONTokener
-
Get the text up but not including the specified character or the end of line, whichever comes first.
- nextTo(String) - Method in class net.sf.json.util.JSONTokener
-
Get the text up but not including one of the specified delimeter characters or the end of line, whichever comes first.
- nextValue() - Method in class net.sf.json.util.JSONTokener
-
Get the next value.
- nextValue(JsonConfig) - Method in class net.sf.json.util.JSONTokener
-
Get the next value.
- NOOP - Static variable in class net.sf.json.util.JavaIdentifierTransformer
-
Noop transformer '@invalid' => '@invalid'
- NOPROP - Static variable in class net.sf.json.util.CycleDetectionStrategy
-
Returns a special object (IGNORE_PROPERTY_OBJ) that indicates the entire property should be ignored
- NotPropertyFilter - Class in net.sf.json.filters
- NotPropertyFilter(PropertyFilter) - Constructor for class net.sf.json.filters.NotPropertyFilter
- NumberMorpher - Class in net.sf.ezmorph.object
-
Morphs to a subclass of Number.
Supported types are - Byte, Short, Integer, Long, Float, BigInteger, BigtDecimal. - NumberMorpher(Class) - Constructor for class net.sf.ezmorph.object.NumberMorpher
-
Creates a new morpher for the target type.
- NumberMorpher(Class, Number) - Constructor for class net.sf.ezmorph.object.NumberMorpher
-
Creates a new morpher for the target type with a default value.
The defaultValue should be of the same class as the target type. - numberToString(Number) - Static method in class net.sf.json.util.JSONUtils
-
Produce a string from a Number.
O
- object() - Method in class net.sf.json.util.JSONBuilder
-
Begin appending a new object.
- ObjectArrayMorpher - Class in net.sf.ezmorph.array
-
Morphs an array to another array using a Morpher.
- ObjectArrayMorpher(Morpher) - Constructor for class net.sf.ezmorph.array.ObjectArrayMorpher
-
Creates a new ArrayMorpher which will use another Morpher for its inner type.
The inner morpher can not morph to an array. - ObjectListMorpher - Class in net.sf.ezmorph.object
-
Morphs a List to another List using a Morpher.
- ObjectListMorpher(Morpher) - Constructor for class net.sf.ezmorph.object.ObjectListMorpher
-
Creates a new ArrayMorpher which will use another Morpher for its inner type.
The inner morpher can not morph to an array. - ObjectListMorpher(Morpher, Object) - Constructor for class net.sf.ezmorph.object.ObjectListMorpher
- ObjectMorpher - Interface in net.sf.ezmorph
-
Marker interface for morphers that return an Object.
- onArrayEnd() - Method in interface net.sf.json.util.JsonEventListener
-
Ttriggered when reaching the end of an array.
- onArrayStart() - Method in interface net.sf.json.util.JsonEventListener
-
triggered when the start of an array is encountered.
- onElementAdded(int, Object) - Method in interface net.sf.json.util.JsonEventListener
-
Triggered when an element has been added to the current array.
- onError(JSONException) - Method in interface net.sf.json.util.JsonEventListener
-
Triggered when an exception is thrown.
- onObjectEnd() - Method in interface net.sf.json.util.JsonEventListener
-
triggered when reaching the end of an object.
- onObjectStart() - Method in interface net.sf.json.util.JsonEventListener
-
Triggered when the start of an object is encountered.
- onPropertySet(String, Object, boolean) - Method in interface net.sf.json.util.JsonEventListener
-
Triggered when a property is set on an object
- onWarning(String) - Method in interface net.sf.json.util.JsonEventListener
-
Triggered when a warning is encountered.
- opt(int) - Method in class net.sf.json.JSONArray
-
Get the optional object value associated with an index.
- opt(String) - Method in class net.sf.json.JSONObject
-
Get an optional value associated with a key.
- optBoolean(int) - Method in class net.sf.json.JSONArray
-
Get the optional boolean value associated with an index.
- optBoolean(int, boolean) - Method in class net.sf.json.JSONArray
-
Get the optional boolean value associated with an index.
- optBoolean(String) - Method in class net.sf.json.JSONObject
-
Get an optional boolean associated with a key.
- optBoolean(String, boolean) - Method in class net.sf.json.JSONObject
-
Get an optional boolean associated with a key.
- optDouble(int) - Method in class net.sf.json.JSONArray
-
Get the optional double value associated with an index.
- optDouble(int, double) - Method in class net.sf.json.JSONArray
-
Get the optional double value associated with an index.
- optDouble(String) - Method in class net.sf.json.JSONObject
-
Get an optional double associated with a key, or NaN if there is no such key or if its value is not a number.
- optDouble(String, double) - Method in class net.sf.json.JSONObject
-
Get an optional double associated with a key, or the defaultValue if there is no such key or if its value is not a number.
- optInt(int) - Method in class net.sf.json.JSONArray
-
Get the optional int value associated with an index.
- optInt(int, int) - Method in class net.sf.json.JSONArray
-
Get the optional int value associated with an index.
- optInt(String) - Method in class net.sf.json.JSONObject
-
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number.
- optInt(String, int) - Method in class net.sf.json.JSONObject
-
Get an optional int value associated with a key, or the default if there is no such key or if the value is not a number.
- optJSONArray(int) - Method in class net.sf.json.JSONArray
-
Get the optional JSONArray associated with an index.
- optJSONArray(String) - Method in class net.sf.json.JSONObject
-
Get an optional JSONArray associated with a key.
- optJSONObject(int) - Method in class net.sf.json.JSONArray
-
Get the optional JSONObject associated with an index.
- optJSONObject(String) - Method in class net.sf.json.JSONObject
-
Get an optional JSONObject associated with a key.
- optLong(int) - Method in class net.sf.json.JSONArray
-
Get the optional long value associated with an index.
- optLong(int, long) - Method in class net.sf.json.JSONArray
-
Get the optional long value associated with an index.
- optLong(String) - Method in class net.sf.json.JSONObject
-
Get an optional long value associated with a key, or zero if there is no such key or if the value is not a number.
- optLong(String, long) - Method in class net.sf.json.JSONObject
-
Get an optional long value associated with a key, or the default if there is no such key or if the value is not a number.
- optString(int) - Method in class net.sf.json.JSONArray
-
Get the optional string value associated with an index.
- optString(int, String) - Method in class net.sf.json.JSONArray
-
Get the optional string associated with an index.
- optString(String) - Method in class net.sf.json.JSONObject
-
Get an optional string associated with a key.
- optString(String, String) - Method in class net.sf.json.JSONObject
-
Get an optional string associated with a key.
- OrPropertyFilter - Class in net.sf.json.filters
- OrPropertyFilter(PropertyFilter, PropertyFilter) - Constructor for class net.sf.json.filters.OrPropertyFilter
P
- peek() - Method in class net.sf.json.util.JSONTokener
-
Look at the next character in the source string.
- processArrayValue(Object, JsonConfig) - Method in class net.sf.json.processors.JsDateJsonValueProcessor
- processArrayValue(Object, JsonConfig) - Method in interface net.sf.json.processors.JsonValueProcessor
-
Processes the value an returns a suitable JSON value.
- processBean(Object, JsonConfig) - Method in class net.sf.json.processors.JsDateJsonBeanProcessor
-
Processes the input bean into a compatible JsDate.
- processBean(Object, JsonConfig) - Method in interface net.sf.json.processors.JsonBeanProcessor
-
Processes the bean an returns a suitable JSONObject representation.
- processObjectValue(String, Object, JsonConfig) - Method in class net.sf.json.processors.JsDateJsonValueProcessor
- processObjectValue(String, Object, JsonConfig) - Method in interface net.sf.json.processors.JsonValueProcessor
-
Processes the value an returns a suitable JSON value.
- processPropertyName(Class, String) - Method in interface net.sf.json.processors.PropertyNameProcessor
-
Processes the property name.
- PropertyExclusionClassMatcher - Class in net.sf.json.util
-
Base class for finding a matching property exlucsion.
DEFAULT - matches the target class with equals(). - PropertyExclusionClassMatcher() - Constructor for class net.sf.json.util.PropertyExclusionClassMatcher
- PropertyFilter - Interface in net.sf.json.util
- PropertyNameProcessor - Interface in net.sf.json.processors
-
Base interface for mutating property names of a Bean.
- PropertyNameProcessorMatcher - Class in net.sf.json.processors
-
Base class for finding a matching PropertyNameProcessor.
DEFAULT - matches the target class with equals(). - PropertyNameProcessorMatcher() - Constructor for class net.sf.json.processors.PropertyNameProcessorMatcher
- PropertySetStrategy - Class in net.sf.json.util
-
Defines a custom setter to be used when setting object values.
Specify with JsonConfig.setJsonPropertySetter(). - PropertySetStrategy() - Constructor for class net.sf.json.util.PropertySetStrategy
- put(String, Object) - Method in class net.sf.json.JSONObject
- putAll(Map) - Method in class net.sf.json.JSONObject
- putAll(Map, JsonConfig) - Method in class net.sf.json.JSONObject
Q
- quote(String) - Static method in class net.sf.json.util.JSONUtils
-
Produce a string in double quotes with backslash sequences in all the right places.
- quoteCanonical(String) - Static method in class net.sf.json.util.JSONUtils
-
Minimal escape form.
R
- registerDefaultValueProcessor(Class, DefaultValueProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a DefaultValueProcessor.
[Java -> JSON] - registerJavaPropertyNameProcessor(Class, PropertyNameProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a PropertyNameProcessor.
[JSON -> Java] - registerJsonBeanProcessor(Class, JsonBeanProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a JsonBeanProcessor.
[Java -> JSON] - registerJsonPropertyNameProcessor(Class, PropertyNameProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a PropertyNameProcessor.
[Java -> JSON] - registerJsonValueProcessor(Class, Class, JsonValueProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a JsonValueProcessor.
[Java -> JSON] - registerJsonValueProcessor(Class, String, JsonValueProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a JsonValueProcessor.
[Java -> JSON] - registerJsonValueProcessor(Class, JsonValueProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a JsonValueProcessor.
[Java -> JSON] - registerJsonValueProcessor(String, JsonValueProcessor) - Method in class net.sf.json.JsonConfig
-
Registers a JsonValueProcessor.
[Java -> JSON] - registerMorpher(Morpher) - Method in class net.sf.ezmorph.MorpherRegistry
-
Register a Morpher for a target
Class.
The target class is the class this Morpher morphs to. - registerMorpher(Morpher, boolean) - Method in class net.sf.ezmorph.MorpherRegistry
-
Register a Morpher for a target
Class.
The target class is the class this Morpher morphs to. - registerPropertyExclusion(Class, String) - Method in class net.sf.json.JsonConfig
-
Registers a exclusion for a target class.
[Java -> JSON] - registerPropertyExclusions(Class, String[]) - Method in class net.sf.json.JsonConfig
-
Registers exclusions for a target class.
[Java -> JSON] - registerPropertyNameProcessor(Class, PropertyNameProcessor) - Method in class net.sf.json.JsonConfig
-
Deprecated.use registerJavaPropertyNameProcessor() instead
- registerStandardMorphers(MorpherRegistry) - Static method in class net.sf.ezmorph.MorphUtils
-
Clears and registers all standard morpehrs.
- registerStandardObjectArrayMorphers(MorpherRegistry) - Static method in class net.sf.ezmorph.MorphUtils
-
Registers morphers for arrays of wrappers and String with standard default values.
Boolean - Boolean.FALSE Character - '\0' Byte - (byte) 0 Short - (short) 0 Integer - 0 Long - 0L Float - 0f Double - 0d String - null BigInteger - BigInteger.ZERO BigDecimal - MorphUtils.BIGDECIMAL_ZERO - registerStandardObjectMorphers(MorpherRegistry) - Static method in class net.sf.ezmorph.MorphUtils
-
Registers morphers for wrappers and String with standard default values.
Boolean - Boolean.FALSE Character - '\0' Byte - (byte) 0 Short - (short) 0 Integer - 0 Long - 0L Float - 0f Double - 0d String - null BigInteger - BigInteger.ZERO BigDecimal - MorphUtils.BIGDECIMAL_ZERO - registerStandardPrimitiveArrayMorphers(MorpherRegistry) - Static method in class net.sf.ezmorph.MorphUtils
-
Registers morphers for arrays of primitives with standard default values.
boolean - false char - '\0' byte - 0 short - 0 int - 0 long - 0 float - 0 double - 0 - registerStandardPrimitiveMorphers(MorpherRegistry) - Static method in class net.sf.ezmorph.MorphUtils
-
Registers morphers for primitives with standard default values.
boolean - false char - '\0' byte - 0 short - 0 int - 0 long - 0 float - 0 double - 0 - remove(int) - Method in class net.sf.json.JSONArray
- remove(Object) - Method in class net.sf.json.JSONArray
- remove(Object) - Method in class net.sf.json.JSONObject
- remove(String) - Method in class net.sf.json.JSONObject
-
Remove a name and its value, if present.
- remove(String, String) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- removeAll(Collection) - Method in class net.sf.json.JSONArray
- removeAll(Collection, JsonConfig) - Method in class net.sf.json.JSONArray
- removeIgnoreFieldAnnotation(Class) - Method in class net.sf.json.JsonConfig
-
Removes an annotation that marks a field to be skipped when building.
[Java -> JSON] - removeIgnoreFieldAnnotation(String) - Method in class net.sf.json.JsonConfig
-
Adds an annotation that marks a field to be skipped when building.
[Java -> JSON] - removeInstance(Object) - Static method in class net.sf.json.JSONArray
-
Removes a reference for cycle detection check.
- removeJsonEventListener(JsonEventListener) - Method in class net.sf.json.JsonConfig
-
Removes a listener for JSON events.
[Java -> JSON] - removePropertyFilter(Object) - Method in class net.sf.json.filters.MappingPropertyFilter
- removePropertyFilter(PropertyFilter) - Method in class net.sf.json.filters.CompositePropertyFilter
- reset() - Method in class net.sf.json.JsonConfig
-
Resets all values to its default state.
- reset() - Method in class net.sf.json.util.JSONTokener
- retainAll(Collection) - Method in class net.sf.json.JSONArray
- retainAll(Collection, JsonConfig) - Method in class net.sf.json.JSONArray
S
- set(int, Object) - Method in class net.sf.json.JSONArray
- set(int, Object, JsonConfig) - Method in class net.sf.json.JSONArray
- set(String, int, Object) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- set(String, Object) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- set(String, String, Object) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- setAllowNonStringKeys(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if non-String keys are allowed on JSONObject.
[Java -> JSON] - setArrayMode(int) - Method in class net.sf.json.JsonConfig
-
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] - setClassMap(Map) - Method in class net.sf.json.JsonConfig
-
Sets the current attribute/Class Map
[JSON -> Java] - setCollectionType(Class) - Method in class net.sf.json.JsonConfig
-
Sets the current collection type used for collection transformations.
[JSON -> Java] - setCycleDetectionStrategy(CycleDetectionStrategy) - Method in class net.sf.json.JsonConfig
-
Sets a CycleDetectionStrategy to use.
Will set default value (CycleDetectionStrategy.STRICT) if null.
[Java -> JSON] - setDefaultValue(Number) - Method in class net.sf.ezmorph.object.NumberMorpher
-
Sets the defaultValue to use if the value to be morphed is null.
The defaultValue should be of the same class as the type this morpher returns withmorphsTo(). - setDefaultValue(Date) - Method in class net.sf.ezmorph.object.DateMorpher
-
Sets the defaultValue to use if the value to be morphed is null.
- setDefaultValue(Date) - Method in class net.sf.ezmorph.object.MapToDateMorpher
-
Sets the defaultValue to use if the value to be morphed is null.
- setDefaultValueProcessorMatcher(DefaultValueProcessorMatcher) - Method in class net.sf.json.JsonConfig
-
Sets a DefaultValueProcessorMatcher to use.
Will set default value (DefaultValueProcessorMatcher.DEFAULT) if null.
[Java -> JSON] - setDynaBeanClass(MorphDynaClass) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- setEnclosedType(Class) - Method in class net.sf.json.JsonConfig
-
Sets the current enclosed type for generic collection transformations.
[JSON -> Java] - setExcludes(String[]) - Method in class net.sf.json.JsonConfig
-
Sets the excludes to use.
Will set default value ([]) if null.
[Java -> JSON] - setExpandElements(boolean) - Method in class net.sf.json.JSONArray
- setHandleJettisonEmptyElement(boolean) - Method in class net.sf.json.JsonConfig
-
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] - setHandleJettisonSingleElementArray(boolean) - Method in class net.sf.json.JsonConfig
-
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] - setIgnoreDefaultExcludes(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if default excludes would be skipped when building.
[Java -> JSON] - setIgnoreJPATransient(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if JPA Transient annotated methods would be skipped when building.
[Java -> JSON] - setIgnorePublicFields(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if public fields would be skipped when building.
[Java -> JSON] - setIgnoreTransientFields(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if transient fields would be skipped when building.
[Java -> JSON] - setIgnoreUnreadableProperty(boolean) - Method in class net.sf.json.JsonConfig
-
If true, properties found in JSON that have no corresponding Java setter/field/etc will not raise an exception.
- setJavaIdentifierTransformer(JavaIdentifierTransformer) - Method in class net.sf.json.JsonConfig
-
Sets the JavaIdentifierTransformer to use.
Will set default value (JavaIdentifierTransformer.NOOP) if null.
[JSON -> Java] - setJavaPropertyFilter(PropertyFilter) - Method in class net.sf.json.JsonConfig
-
Sets a property filter used when serializing to Java.
[JSON -> Java] - setJavaPropertyNameProcessorMatcher(PropertyNameProcessorMatcher) - Method in class net.sf.json.JsonConfig
-
Sets a PropertyNameProcessorMatcher to use.
Will set default value (PropertyNameProcessorMatcher.DEFAULT) if null.
[JSON -> Java] - setJavascriptCompliant(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if Javascript compatibility is enabled when building.
[Java -> JSON] - setJsonBeanProcessorMatcher(JsonBeanProcessorMatcher) - Method in class net.sf.json.JsonConfig
-
Sets a JsonBeanProcessorMatcher to use.
Will set default value (JsonBeanProcessorMatcher.DEFAULT) if null.
[Java -> JSON] - setJsonPropertyFilter(PropertyFilter) - Method in class net.sf.json.JsonConfig
-
Sets a property filter used when serializing to JSON.
[Java -> JSON] - setJsonPropertyNameProcessorMatcher(PropertyNameProcessorMatcher) - Method in class net.sf.json.JsonConfig
-
Sets a PropertyNameProcessorMatcher to use.
Will set default value (PropertyNameProcessorMatcher.DEFAULT) if null.
[Java -> JSON] - setJsonValueProcessorMatcher(JsonValueProcessorMatcher) - Method in class net.sf.json.JsonConfig
-
Sets a JsonValueProcessorMatcher to use.
Will set default value (JsonValueProcessorMatcher.DEFAULT) if null.
[Java -> JSON] - setMorpherRegistry(MorpherRegistry) - Method in class net.sf.ezmorph.bean.MorphDynaBean
- setNewBeanInstanceStrategy(NewBeanInstanceStrategy) - Method in class net.sf.json.JsonConfig
-
Sets the NewBeanInstanceStrategy to use.
Will set default value (NewBeanInstanceStrategy.DEFAULT) if null.
[JSON -> Java] - setProperty(Object, String, Object) - Method in class net.sf.json.util.PropertySetStrategy
- setProperty(Object, String, Object, JsonConfig) - Method in class net.sf.json.util.PropertySetStrategy
- setPropertyExclusionClassMatcher(PropertyExclusionClassMatcher) - Method in class net.sf.json.JsonConfig
-
Sets a PropertyExclusionClassMatcher to use.
Will set default value (PropertyExclusionClassMatcher.DEFAULT) if null.
[Java -> JSON] - setPropertyNameProcessorMatcher(PropertyNameProcessorMatcher) - Method in class net.sf.json.JsonConfig
-
Deprecated.use setJavaPropertyNameProcessorMatcher() instead
- setPropertySetStrategy(PropertySetStrategy) - Method in class net.sf.json.JsonConfig
-
Sets a PropertySetStrategy to use.
Will set default value (PropertySetStrategy.DEFAULT) if null.
[JSON -> Java] - setRootClass(Class) - Method in class net.sf.json.JsonConfig
-
Sets the current root Class.
[JSON -> Java] - setSkipJavaIdentifierTransformationInMapKeys(boolean) - Method in class net.sf.json.JsonConfig
-
Sets if property name as JavaIndetifier transformations would be skipped.
[JSON -> Java] - setUseDefault(boolean) - Method in class net.sf.ezmorph.array.AbstractArrayMorpher
-
Sets if this morpher will use a default value.
- setUseDefault(boolean) - Method in class net.sf.ezmorph.object.AbstractObjectMorpher
-
Sets if this morpher will use a default value.
- shaveOffNonJavaIdentifierStartChars(String) - Method in class net.sf.json.util.JavaIdentifierTransformer
-
Removes all non JavaIdentifier chars from the start of the string.
- ShortArrayMorpher - Class in net.sf.ezmorph.array
-
Morphs an array to a short[].
- ShortArrayMorpher() - Constructor for class net.sf.ezmorph.array.ShortArrayMorpher
- ShortArrayMorpher(short) - Constructor for class net.sf.ezmorph.array.ShortArrayMorpher
- ShortMorpher - Class in net.sf.ezmorph.primitive
-
Morphs to a short.
- ShortMorpher() - Constructor for class net.sf.ezmorph.primitive.ShortMorpher
- ShortMorpher(short) - Constructor for class net.sf.ezmorph.primitive.ShortMorpher
- SINGLE_QUOTE - Static variable in class net.sf.json.util.JSONUtils
-
Constant for char '
- size() - Method in interface net.sf.json.JSON
-
Returns the number of properties in an object or the size of the array.
- size() - Method in class net.sf.json.JSONArray
-
Get the number of elements in the JSONArray, included nulls.
- size() - Method in class net.sf.json.JSONNull
- size() - Method in class net.sf.json.JSONObject
-
Get the number of keys stored in the JSONObject.
- skipPast(String) - Method in class net.sf.json.util.JSONTokener
-
Skip characters until past the requested string.
- skipTo(char) - Method in class net.sf.json.util.JSONTokener
-
Skip characters until the next character is the requested character.
- startsWith(String) - Method in class net.sf.json.util.JSONTokener
- STRICT - Static variable in class net.sf.json.util.CycleDetectionStrategy
-
Throws a JSONException
- STRICT - Static variable in class net.sf.json.util.JavaIdentifierTransformer
-
Strict transformer '@invalid' => JSONException
- StringMorpher - Class in net.sf.ezmorph.object
-
Morphs to a String.
This morpher is a singleton. - stripQuotes(String) - Static method in class net.sf.json.util.JSONUtils
-
Strips any single-quotes or double-quotes from both sides of the string.
- subList(int, int) - Method in class net.sf.json.JSONArray
- supports(Class) - Method in class net.sf.ezmorph.array.AbstractArrayMorpher
- supports(Class) - Method in class net.sf.ezmorph.array.ObjectArrayMorpher
- supports(Class) - Method in class net.sf.ezmorph.bean.BeanMorpher
- supports(Class) - Method in interface net.sf.ezmorph.Morpher
-
Returns true if the Morpher supports conversion from this Class.
- supports(Class) - Method in class net.sf.ezmorph.object.AbstractObjectMorpher
-
Returns true if the Morpher supports conversion from this Class.
Supports any type that is not an Array. - supports(Class) - Method in class net.sf.ezmorph.object.ClassMorpher
- supports(Class) - Method in class net.sf.ezmorph.object.DateMorpher
- supports(Class) - Method in class net.sf.ezmorph.object.IdentityObjectMorpher
- supports(Class) - Method in class net.sf.ezmorph.object.MapToDateMorpher
- supports(Class) - Method in class net.sf.ezmorph.object.ObjectListMorpher
- supports(Class) - Method in class net.sf.ezmorph.object.StringMorpher
- supports(Class) - Method in class net.sf.ezmorph.object.SwitchingMorpher
- supports(Class) - Method in class net.sf.ezmorph.primitive.AbstractPrimitiveMorpher
-
Returns true if the Morpher supports conversion from this Class.
Supports any type that is not an Array. - supports(Class) - Method in class net.sf.json.util.EnumMorpher
- SwitchingMorpher - Class in net.sf.ezmorph.object
-
An all-purpose Morpher that can morph to several classes.
Because this Morpher accepts any class and morphs to Object it should not be added to a MorpherRegistry as it may be too generic for some cases and may result in unwanted transformations. - SwitchingMorpher(Map, MorpherRegistry) - Constructor for class net.sf.ezmorph.object.SwitchingMorpher
- syntaxError(String) - Method in class net.sf.json.util.JSONTokener
-
Make a JSONException to signal a syntax error.
T
- testValidity(Object) - Static method in class net.sf.json.util.JSONUtils
-
Throw an exception if the object is an NaN or infinite number.
- toArray() - Method in class net.sf.json.JSONArray
-
Produce an Object[] with the contents of this JSONArray.
- toArray(Object[]) - Method in class net.sf.json.JSONArray
- toArray(JSONArray) - Static method in class net.sf.json.JSONArray
-
Creates a java array from a JSONArray.
- toArray(JSONArray, Class) - Static method in class net.sf.json.JSONArray
-
Creates a java array from a JSONArray.
- toArray(JSONArray, Class, Map) - Static method in class net.sf.json.JSONArray
-
Creates a java array from a JSONArray.
Any attribute is a JSONObject and matches a key in the classMap, it will be converted to that target class.
The classMap has the following conventions: Every key must be an String. Every value must be a Class. A key may be a regular expression. - toArray(JSONArray, Object, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Creates a java array from a JSONArray.
- toArray(JSONArray, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Creates a java array from a JSONArray.
- toBean() - Method in class net.sf.json.JSONObject
-
Creates a JSONDynaBean from a JSONObject.
- toBean(Class) - Method in class net.sf.json.JSONObject
- toBean(JSONObject) - Static method in class net.sf.json.JSONObject
- toBean(JSONObject, Class) - Static method in class net.sf.json.JSONObject
-
Creates a bean from a JSONObject, with a specific target class.
- toBean(JSONObject, Class, Map) - Static method in class net.sf.json.JSONObject
-
Creates a bean from a JSONObject, with a specific target class.
If beanClass is null, this method will return a graph of DynaBeans. - toBean(JSONObject, Object, JsonConfig) - Static method in class net.sf.json.JSONObject
-
Creates a bean from a JSONObject, with the specific configuration.
- toBean(JSONObject, JsonConfig) - Static method in class net.sf.json.JSONObject
-
Creates a bean from a JSONObject, with the specific configuration.
- toCollection(JSONArray) - Static method in class net.sf.json.JSONArray
-
Returns a List or a Set taking generics into account.
- toCollection(JSONArray, Class) - Static method in class net.sf.json.JSONArray
-
Returns a List or a Set taking generics into account.
- toCollection(JSONArray, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Returns a List or a Set taking generics into account.
- toJava(JSON) - Static method in class net.sf.json.JSONSerializer
-
Transform a JSON value to a java object.
Depending on the configured values for conversion this will return a DynaBean, a bean, a List, or and array. - toJava(JSON, JsonConfig) - Static method in class net.sf.json.JSONSerializer
-
Transform a JSON value to a java object.
Depending on the configured values for conversion this will return a DynaBean, a bean, a List, or and array. - toJSON(Object) - Static method in class net.sf.json.JSONSerializer
-
Creates a JSONObject, JSONArray or a JSONNull from object.
Accepts JSON formatted strings, Maps, arrays, Collections, DynaBeans and JavaBeans. - toJSON(Object, JsonConfig) - Static method in class net.sf.json.JSONSerializer
-
Creates a JSONObject, JSONArray or a JSONNull from object.
Accepts JSON formatted strings, Maps, arrays, Collections, DynaBeans and JavaBeans. - toJSONArray(JSONArray) - Method in class net.sf.json.JSONObject
-
Produce a JSONArray containing the values of the members of this JSONObject.
- toJSONObject(JSONArray) - Method in class net.sf.json.JSONArray
-
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.
- toJSONString() - Method in interface net.sf.json.JSONString
-
The
toJSONStringmethod allows a class to produce its own JSON serialization. - toList(JSONArray) - Static method in class net.sf.json.JSONArray
-
Deprecated.replaced by toCollection
- toList(JSONArray, Class) - Static method in class net.sf.json.JSONArray
-
Deprecated.replaced by toCollection
- toList(JSONArray, Class, Map) - Static method in class net.sf.json.JSONArray
-
Deprecated.replaced by toCollection
- toList(JSONArray, Object, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Creates a List from a JSONArray.
- toList(JSONArray, JsonConfig) - Static method in class net.sf.json.JSONArray
-
Deprecated.replaced by toCollection
- toString() - Method in class net.sf.ezmorph.bean.MorphDynaBean
- toString() - Method in class net.sf.ezmorph.bean.MorphDynaClass
- toString() - Method in class net.sf.json.JSONArray
-
Make a JSON text of this JSONArray.
- toString() - Method in class net.sf.json.JSONNull
-
Get the "null" string value.
- toString() - Method in class net.sf.json.JSONObject
-
Make a JSON text of this JSONObject.
- toString() - Method in class net.sf.json.util.JSONStringer
-
Return the JSON text.
- toString() - Method in class net.sf.json.util.JSONTokener
-
Make a printable string of this JSONTokener.
- toString(int) - Method in interface net.sf.json.JSON
-
Make a prettyprinted JSON text.
- toString(int) - Method in class net.sf.json.JSONArray
-
Make a prettyprinted JSON text of this JSONArray.
- toString(int) - Method in class net.sf.json.JSONNull
- toString(int) - Method in class net.sf.json.JSONObject
-
Make a prettyprinted JSON text of this JSONObject.
- toString(int, int) - Method in interface net.sf.json.JSON
-
Make a prettyprinted JSON text.
- toString(int, int) - Method in class net.sf.json.JSONArray
-
Make a prettyprinted JSON text of this JSONArray.
- toString(int, int) - Method in class net.sf.json.JSONNull
- toString(int, int) - Method in class net.sf.json.JSONObject
-
Make a prettyprinted JSON text of this JSONObject.
- transformNumber(Number) - Static method in class net.sf.json.util.JSONUtils
-
Transforms a Number into a valid javascript number.
Float gets promoted to Double.
Byte and Short get promoted to Integer.
Long gets downgraded to Integer if possible. - transformToJavaIdentifier(String) - Method in class net.sf.json.util.JavaIdentifierTransformer
- TruePropertyFilter - Class in net.sf.json.filters
- TruePropertyFilter() - Constructor for class net.sf.json.filters.TruePropertyFilter
U
- UNDERSCORE - Static variable in class net.sf.json.util.JavaIdentifierTransformer
-
Underscore transformer 'under score' => 'under_score'
- unregisterDefaultValueProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Removes a DefaultValueProcessor.
[Java -> JSON] - unregisterJavaPropertyNameProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Removes a PropertyNameProcessor.
[JSON -> Java] - unregisterJsonBeanProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Removes a JsonBeanProcessor.
[Java -> JSON] - unregisterJsonPropertyNameProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Removes a PropertyNameProcessor.
[Java -> JSON] - unregisterJsonValueProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Removes a JsonValueProcessor.
[Java -> JSON] - unregisterJsonValueProcessor(Class, Class) - Method in class net.sf.json.JsonConfig
-
Removes a JsonValueProcessor.
[Java -> JSON] - unregisterJsonValueProcessor(Class, String) - Method in class net.sf.json.JsonConfig
-
Removes a JsonValueProcessor.
[Java -> JSON] - unregisterJsonValueProcessor(String) - Method in class net.sf.json.JsonConfig
-
Removes a JsonValueProcessor.
[Java -> JSON] - unregisterPropertyExclusion(Class, String) - Method in class net.sf.json.JsonConfig
-
Removes a property exclusion assigned to the target class.
[Java -> JSON] - unregisterPropertyExclusions(Class) - Method in class net.sf.json.JsonConfig
-
Removes all property exclusions assigned to the target class.
[Java -> JSON] - unregisterPropertyNameProcessor(Class) - Method in class net.sf.json.JsonConfig
-
Deprecated.use unregisterJavaPropertyNameProcessor() instead
V
- value(boolean) - Method in class net.sf.json.util.JSONBuilder
-
Append either the value
trueor the valuefalse. - value(double) - Method in class net.sf.json.util.JSONBuilder
-
Append a double value.
- value(long) - Method in class net.sf.json.util.JSONBuilder
-
Append a long value.
- value(Object) - Method in class net.sf.json.util.JSONBuilder
-
Append an object value.
- values() - Method in class net.sf.json.JSONObject
- valueToCanonicalString(Object) - Static method in class net.sf.json.util.JSONUtils
- valueToString(Object) - Static method in class net.sf.json.util.JSONUtils
-
Make a JSON text of an Object value.
- valueToString(Object, int, int) - Static method in class net.sf.json.util.JSONUtils
-
Make a prettyprinted JSON text of an object value.
W
- WHITESPACE - Static variable in class net.sf.json.util.JavaIdentifierTransformer
-
Whitespace transformer 'white space' => 'whitespace'
- write(Writer) - Method in class net.sf.json.JSONArray
- write(Writer) - Method in interface net.sf.json.JSON
-
Write the contents as JSON text to a writer.
- write(Writer) - Method in class net.sf.json.JSONNull
- write(Writer, AbstractJSON.WritingVisitor) - Method in class net.sf.json.JSONArray
- write(Writer, AbstractJSON.WritingVisitor) - Method in class net.sf.json.JSONObject
-
Write the contents of the JSONObject as JSON text to a writer.
- writeCanonical(Writer) - Method in class net.sf.json.JSONArray
- writeCanonical(Writer) - Method in interface net.sf.json.JSON
-
Writes the canonicalized form of this JSON object.
- writeCanonical(Writer) - Method in class net.sf.json.JSONNull
- writer - Variable in class net.sf.json.util.JSONBuilder
-
The writer that will receive the output.
_
- _processValue(Object, JsonConfig) - Method in class net.sf.json.JSONArray
- _processValue(Object, JsonConfig) - Method in class net.sf.json.JSONObject
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form