A B C D E F G H I J K L M N O P Q R S T U V W X

A

accept(Object) - Method in class net.sf.json.DelegatingValueVisitor
 
accept(JSON) - Method in class net.sf.json.DelegatingValueVisitor
 
accept(JSONFunction) - Method in class net.sf.json.DelegatingValueVisitor
 
accept(JSONString) - Method in class net.sf.json.DelegatingValueVisitor
 
accept(Number) - Method in class net.sf.json.DelegatingValueVisitor
 
accept(Boolean) - Method in class net.sf.json.DelegatingValueVisitor
 
accept(JSONObject) - Method in class net.sf.json.DelegatingValueVisitor
 
accept(JSONArray) - Method in class net.sf.json.DelegatingValueVisitor
 
accept(JSONFunction) - Method in class net.sf.json.ValueVisitor
 
accept(JSONString) - Method in class net.sf.json.ValueVisitor
 
accept(Number) - Method in class net.sf.json.ValueVisitor
 
accept(Boolean) - Method in class net.sf.json.ValueVisitor
 
accept(JSONObject) - Method in class net.sf.json.ValueVisitor
 
accept(JSONArray) - Method in class net.sf.json.ValueVisitor
 
acceptNull() - Method in class net.sf.json.ValueVisitor
 
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(Collection) - Method in class net.sf.json.JSONArray
 
addAll(Collection, 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
 
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.
addNamespace(String, String) - Method in class net.sf.json.xml.XMLSerializer
Adds a namespace declaration to the root element.
addNamespace(String, String, String) - Method in class net.sf.json.xml.XMLSerializer
Adds a namespace declaration to an element.
If the elementName param is null or blank, the namespace declaration will be added to the root element.
addPropertyFilter(PropertyFilter) - Method in class net.sf.json.filters.CompositePropertyFilter
 
addPropertyFilter(Object, PropertyFilter) - Method in class net.sf.json.filters.MappingPropertyFilter
 
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.
ARRAY - Static variable in interface net.sf.json.xml.JSONTypes
 
assertEquals(JSON, JSON) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSON values are equal.
assertEquals(JSONArray, JSONArray) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONArrays are equal.
assertEquals(JSONArray, String) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONArrays are equal.
assertEquals(JSONFunction, String) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONFunctions are equal.
assertEquals(JSONNull, String) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONNulls are equal.
assertEquals(JSONObject, JSONObject) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONObjects are equal.
assertEquals(JSONObject, String) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONObjects are equal.
assertEquals(String, JSON, JSON) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSON values are equal.
assertEquals(String, JSONArray) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONArrays are equal.
assertEquals(String, JSONArray, JSONArray) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONArrays are equal.
assertEquals(String, JSONArray, String) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONArrays are equal.
assertEquals(String, JSONFunction) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONFunctions are equal.
assertEquals(String, JSONFunction, String) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONFunctions are equal.
assertEquals(String, JSONNull) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONNulls are equal.
assertEquals(String, JSONNull, String) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONNulls are equal.
assertEquals(String, JSONObject) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONObjects are equal.
assertEquals(String, JSONObject, JSONObject) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONObjects are equal.
assertEquals(String, JSONObject, String) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONObjects are equal.
assertEquals(String, String, JSONArray) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONArrays are equal.
assertEquals(String, String, JSONFunction) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONFunctions are equal.
assertEquals(String, String, JSONNull) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONNulls are equal.
assertEquals(String, String, JSONObject) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSONObjects are equal.
assertJsonEquals(String, String) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSON strings are equal.
assertJsonEquals(String, String, String) - Static method in class net.sf.json.test.JSONAssert
Asserts that two JSON strings are equal.
assertNotNull(JSON) - Static method in class net.sf.json.test.JSONAssert
Asserts that a JSON value is not null.
Fails if: JSONNull.getInstance().equals( json ) ((JSONObject) json).isNullObject()
assertNotNull(String, JSON) - Static method in class net.sf.json.test.JSONAssert
Asserts that a JSON value is not null.
Fails if: JSONNull.getInstance().equals( json ) ((JSONObject) json).isNullObject()
assertNull(JSON) - Static method in class net.sf.json.test.JSONAssert
Asserts that a JSON value is null.
Fails if: !JSONNull.getInstance().equals( json ) !((JSONObject) json).isNullObject()
assertNull(String, JSON) - Static method in class net.sf.json.test.JSONAssert
Asserts that a JSON value is null.
Fails if: !JSONNull.getInstance().equals( json ) !((JSONObject) json).isNullObject()

B

back() - Method in class net.sf.json.util.JSONTokener
Back up one character.
BOOLEAN - Static variable in interface net.sf.json.xml.JSONTypes
 

C

CAMEL_CASE - Static variable in class net.sf.json.util.JavaIdentifierTransformer
CamelCase transformer 'camel case' => 'camelCase'
clear() - Method in class net.sf.json.JSONArray
 
clear() - Method in class net.sf.json.JSONObject
 
clearJsonBeanProcessors() - Method in class net.sf.json.JsonConfig
Removes all registered JsonBeanProcessors.
clearJsonEventListeners() - Method in class net.sf.json.JsonConfig
Removes all registered listener for Json Events.
clearJsonValueProcessors() - Method in class net.sf.json.JsonConfig
Removes all registered JsonValueProcessors.
clearNamespaces() - Method in class net.sf.json.xml.XMLSerializer
Removes all namespaces declarations (from root an elements).
clearNamespaces(String) - Method in class net.sf.json.xml.XMLSerializer
Removes all namespace declarations from an element.
If the elementName param is null or blank, the declarations will be removed from the root element.
COMMENTS - Static variable in class net.sf.json.util.WebHijackPreventionStrategy
Wraps the string with /* *\/
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
 
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
Transformes 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
Transformes the string into a valid Java Identifier.
The default strategy is JavaIdentifierTransformer.NOOP
copy() - Method in class net.sf.json.JsonConfig
 
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

DEFAULT - Static variable in class net.sf.json.processors.JsonBeanProcessorMatcher
Macthes the target with equals()
DEFAULT - Static variable in class net.sf.json.util.NewBeanInstanceStrategy
Calls Class.newInstance()
DEFAULT_JSON_BEAN_PROCESSOR_MATCHER - Static variable in class net.sf.json.JsonConfig
 
DEFAULT_NEW_BEAN_INSTANCE_STRATEGY - Static variable in class net.sf.json.JsonConfig
 
dehexchar(char) - Static method in class net.sf.json.util.JSONTokener
Get the hex value of a character (base16).
DelegatingValueVisitor<V> - Class in net.sf.json
 
DelegatingValueVisitor() - Constructor for class net.sf.json.DelegatingValueVisitor
 
disableEventTriggering() - Method in class net.sf.json.JsonConfig
Disables event triggering when building.
DOUBLE_QUOTE - Static variable in class net.sf.json.util.JSONUtils
Constant for char "
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(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(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, 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, 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, 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(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(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.
element(long) - Method in class net.sf.json.JSONArray
Append an long value.
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(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, JsonConfig) - 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, 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, 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, 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, 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.
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.
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.json.JSONArray
 
equals(Object) - Method in class net.sf.json.JSONFunction
 
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
 
findJsonBeanProcessor(Class) - Method in class net.sf.json.JsonConfig
Finds a JsonBeanProcessor registered to the target class.
Returns null if none is registered.
findJsonValueProcessor(Class) - Method in class net.sf.json.JsonConfig
Finds a JsonValueProcessor registered to the target type.
Returns null if none is registered.
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.
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.
FLOAT - Static variable in interface net.sf.json.xml.JSONTypes
 
fromObject(Object) - Static method in class net.sf.json.JSONArray
Creates a JSONArray.
Inspects the object type to call the correct JSONArray factory method.
fromObject(Object, JsonConfig) - Static method in class net.sf.json.JSONArray
Creates a JSONArray.
Inspects the object type to call the correct JSONArray factory method.
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.JSONObject
Creates a JSONObject.
Inspects the object type to call the correct JSONObject factory method.
FUNCTION - Static variable in interface net.sf.json.xml.JSONTypes
 

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.json.JSONObject
Get the value object associated with a key.
getArrayMode() - Method in class net.sf.json.JsonConfig
Returns the current array mode conversion
getArrayName() - Method in class net.sf.json.xml.XMLSerializer
Returns the name used for JSONArray.
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.
getClassMap() - Method in class net.sf.json.JsonConfig
Returns the current attribute/class Map
getCycleDetectionStrategy() - Method in class net.sf.json.JsonConfig
Returns the configured CycleDetectionStrategy.
Default value is CycleDetectionStrategy.STRICT
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.
getElementName() - Method in class net.sf.json.xml.XMLSerializer
Returns the name used for JSONArray elements.
getExcludes() - Method in class net.sf.json.JsonConfig
Returns the configured properties for exclusion.
getExpandableProperties() - Method in class net.sf.json.xml.XMLSerializer
Returns a list of properties to be expanded from child to parent.
getFunctionParams(String) - Static method in class net.sf.json.util.JSONUtils
Returns the params of a function literal.
getGroupIfMatches(String, int) - Method in class net.sf.json.regexp.JdkRegexpMatcher
 
getGroupIfMatches(String, int) - Method in class net.sf.json.regexp.Perl5RegexpMatcher
 
getGroupIfMatches(String, int) - Method in interface net.sf.json.regexp.RegexpMatcher
Returns the specified group if the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.
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.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.
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.
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
getJsonEventListeners() - Method in class net.sf.json.JsonConfig
Returns a list of registered listeners for Json events.
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.
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.JsonBeanProcessorMatcher
Returns the matching class calculated with the target class and the provided set.
getMatcher(String) - Static method in class net.sf.json.regexp.RegexpUtils
Returns a RegexpMatcher that works in a specific environment.
When in a JVM 1.3.1 it will return a Perl5RegexpMatcher, if the JVM is younger (1.4+) it will return a JdkRegexpMatcher.
getMergedExcludes() - Method in class net.sf.json.JsonConfig
Returns a set of default excludes with user-defined excludes.
getMorpherRegistry() - Static method in class net.sf.json.util.JSONUtils
Returns the singleton MorpherRegistry.
getNewBeanInstanceStrategy() - Method in class net.sf.json.JsonConfig
Returns the configured NewBeanInstanceStrategy.
Default value is NewBeanInstanceStrategy.DEFAULT
getObjectName() - Method in class net.sf.json.xml.XMLSerializer
Returns the name used for JSONArray.
getParams() - Method in class net.sf.json.JSONFunction
Returns the parameters of this function.
getProperties(JSONObject) - Static method in class net.sf.json.util.JSONUtils
Creates a Map with all the properties of the JSONObject.
getProperty(String) - Method in class net.sf.json.groovy.JsonGroovyBuilder
 
getRootClass() - Method in class net.sf.json.JsonConfig
Returns the current root Class.
getRootName() - Method in class net.sf.json.xml.XMLSerializer
Returns the name used for the root element.
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.
getText() - Method in class net.sf.json.JSONFunction
Reeturns the text of this function.
getTypeClass(Object) - Static method in class net.sf.json.util.JSONUtils
Returns the JSON type.
Values are Object, String, Boolean, Number(subclasses) & JSONFunction.
getWebHijackPreventionStrategy() - Static method in class net.sf.json.util.WebUtils
Returns the configured WebHijackPreventionStrategy.

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.json.JSONArray
 
hashCode() - Method in class net.sf.json.JSONFunction
 
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, JSONFunction or String, value.hashCode is returned, otherwise the value is transformed to a String an its hashcode is returned.

I

indexOf(Object) - Method in class net.sf.json.JSONArray
 
INFINITE_LOOP - Static variable in class net.sf.json.util.WebHijackPreventionStrategy
Prepends "while(1);"
INTEGER - Static variable in interface net.sf.json.xml.JSONTypes
 
invokeMethod(String, Object) - Method in class net.sf.json.groovy.JsonGroovyBuilder
 
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.
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
isExpandElements() - Method in class net.sf.json.JSONArray
 
isFunction(Object) - Static method in class net.sf.json.util.JSONUtils
Tests if obj is javaScript function.
Obj must be a non-null String and match "^function[ ]?\\(.\*\)[ ]?\\{.\*\}$"
isFunctionHeader(Object) - Static method in class net.sf.json.util.JSONUtils
Tests if obj is javaScript function header.
Obj must be a non-null String and match "^function[ ]?\\(.\*\)$"
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.
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).
isIgnoreDefaultExcludes() - Method in class net.sf.json.JsonConfig
Returns true if default excludes will not be used.
Default value is false
isIgnoreTransientFields() - Method in class net.sf.json.JsonConfig
Returns true if transient fields of a bean will be ignored.
Default value is false
isJavaIdentifier(String) - Static method in class net.sf.json.util.JSONUtils
Returns trus if str represents a valid Java identifier.
isJDK13() - Static method in class net.sf.json.regexp.RegexpUtils
Queries the environment for the supported JDK version.
isNamespaceLenient() - Method in class net.sf.json.xml.XMLSerializer
Returns wether this serializer is tolerant to namespaces without URIs or not.
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.
isRemoveNamespacePrefixFromElements() - Method in class net.sf.json.xml.XMLSerializer
Returns wether this serializer will remove namespace prefix from elements or not.
isSkipJavaIdentifierTransformationInMapKeys() - Method in class net.sf.json.JsonConfig
Returns true if map keys will not be transformed.
Default value is false
isSkipNamespaces() - Method in class net.sf.json.xml.XMLSerializer
Returns wether this serializer will skip adding namespace declarations to elements or not.
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
isTrimSpaces() - Method in class net.sf.json.xml.XMLSerializer
Returns wether this serializer will trim leading and trealing whitespace from values or not.
isTypeHintsEnabled() - Method in class net.sf.json.xml.XMLSerializer
Returns true if JSON types will be included as attributes.
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 JavaIndentifierPart chars. UNDERSCORE: transform whitespace and non JavaIdentifierPart chars to '_'. WHITESPACE: deletes whitespace and non JavaIdentifierPart chars. STRICT: always throws a JSONException, does not perform transformation.
JavaIdentifierTransformer() - Constructor for class net.sf.json.util.JavaIdentifierTransformer
 
JdkRegexpMatcher - Class in net.sf.json.regexp
JDK 1.4+ RegexpMatcher implementation.
JdkRegexpMatcher(String) - Constructor for class net.sf.json.regexp.JdkRegexpMatcher
 
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 a JSONObject, a JSONArray or a JSONNull.
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.
JSONAssert - Class in net.sf.json.test
Provides assertions on equality for JSON strings and JSON types.
JSONAssert() - Constructor for class net.sf.json.test.JSONAssert
 
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
 
JSONFunction - Class in net.sf.json
JSONFunction represents a javaScript function's text.
JSONFunction(String) - Constructor for class net.sf.json.JSONFunction
Constructs a JSONFunction with no parameters.
JSONFunction(String[], String) - Constructor for class net.sf.json.JSONFunction
Constructs a JSONFunction with parameters.
JsonGroovyBuilder - Class in net.sf.json.groovy
A Groovy builder for JSON values.
JsonGroovyBuilder() - Constructor for class net.sf.json.groovy.JsonGroovyBuilder
 
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 JSONString interface allows a toJSONString() method so that a class can change the behavior of JSONObject.toString(), JSONArray.toString(), and JSONWriter.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.
JSONTypes - Interface in net.sf.json.xml
 
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.
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
 

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
 
matches(String) - Method in class net.sf.json.regexp.JdkRegexpMatcher
 
matches(String) - Method in class net.sf.json.regexp.Perl5RegexpMatcher
 
matches(String) - Method in interface net.sf.json.regexp.RegexpMatcher
Returns true is the string macthes the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.
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
 
more() - Method in class net.sf.json.util.JSONTokener
Determine if the source string still contains characters that next() can consume.
morph(Object) - Method in class net.sf.json.util.EnumMorpher
 
morphsTo() - Method in class net.sf.json.util.EnumMorpher
 

N

names() - Method in class net.sf.json.JSONObject
Produce a JSONArray containing the names of the elements of this JSONObject.
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.groovy - package net.sf.json.groovy
Groovy support
net.sf.json.processors - package net.sf.json.processors
Support for custom serialization
net.sf.json.regexp - package net.sf.json.regexp
Regexp utilities
net.sf.json.test - package net.sf.json.test
Testing utilities
net.sf.json.util - package net.sf.json.util
Miscelaneous utilities
net.sf.json.xml - package net.sf.json.xml
Utilities for trasforming JSON to XML and back.
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(Class, JSONObject) - Method in class net.sf.json.util.NewBeanInstanceStrategy
Creates a new instance.
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'
NotPropertyFilter - Class in net.sf.json.filters
 
NotPropertyFilter(PropertyFilter) - Constructor for class net.sf.json.filters.NotPropertyFilter
 
NUMBER - Static variable in interface net.sf.json.xml.JSONTypes
 
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.
OBJECT - Static variable in interface net.sf.json.xml.JSONTypes
 
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

parse(String) - Static method in class net.sf.json.JSONFunction
Constructs a JSONFunction from a text representation
peek() - Method in class net.sf.json.util.JSONTokener
Look at the next character in the source string.
Perl5RegexpMatcher - Class in net.sf.json.regexp
Jakarta-oro RegexpMatcher Implementation.
Runs on older JVMs (1.3.1).
Perl5RegexpMatcher(String) - Constructor for class net.sf.json.regexp.Perl5RegexpMatcher
 
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.
PropertyFilter - Interface in net.sf.json.util
 
protect(String) - Method in class net.sf.json.util.WebHijackPreventionStrategy
Transforms the input with the desired strategy.
protect(JSON) - Static method in class net.sf.json.util.WebUtils
Transforms the input Json string using the configured WebHijackPreventionStrategy.
protect(JSON, boolean) - Static method in class net.sf.json.util.WebUtils
Transforms the input Json string using the configured WebHijackPreventionStrategy.
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

read(String) - Method in class net.sf.json.xml.XMLSerializer
Creates a JSON value from a XML string.
readFromFile(File) - Method in class net.sf.json.xml.XMLSerializer
Creates a JSON value from a File.
readFromFile(String) - Method in class net.sf.json.xml.XMLSerializer
Creates a JSON value from a File.
readFromStream(InputStream) - Method in class net.sf.json.xml.XMLSerializer
Creates a JSON value from an input stream.
RegexpMatcher - Interface in net.sf.json.regexp
Abstraction for regexp handling.
RegexpUtils - Class in net.sf.json.regexp
Convenience utility for working withRegexpMatcher.
registerJsonBeanProcessor(Class, JsonBeanProcessor) - Method in class net.sf.json.JsonConfig
Registers a JsonValueProcessor.
registerJsonValueProcessor(Class, Class, JsonValueProcessor) - Method in class net.sf.json.JsonConfig
Registers a JsonValueProcessor.
registerJsonValueProcessor(Class, JsonValueProcessor) - Method in class net.sf.json.JsonConfig
Registers a JsonValueProcessor.
registerJsonValueProcessor(Class, String, JsonValueProcessor) - Method in class net.sf.json.JsonConfig
Registers a JsonValueProcessor.
registerJsonValueProcessor(String, JsonValueProcessor) - Method in class net.sf.json.JsonConfig
Registers a JsonValueProcessor.
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.
removeAll(Collection) - Method in class net.sf.json.JSONArray
 
removeAll(Collection, JsonConfig) - Method in class net.sf.json.JSONArray
 
removeJsonEventListener(JsonEventListener) - Method in class net.sf.json.JsonConfig
Removes a listener for Json events.
removeNamespace(String) - Method in class net.sf.json.xml.XMLSerializer
Removes a namespace from the root element.
removeNamespace(String, String) - Method in class net.sf.json.xml.XMLSerializer
Removes a namespace from the root element.
If the elementName is null or blank, the namespace will be removed from the root element.
removePropertyFilter(PropertyFilter) - Method in class net.sf.json.filters.CompositePropertyFilter
 
removePropertyFilter(Object) - Method in class net.sf.json.filters.MappingPropertyFilter
 
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
 
setArrayMode(int) - Method in class net.sf.json.JsonConfig
Sets the current array mode for conversion.
If the value is not MODE_LIST neither MODE_OBJECT_ARRAY, then MODE_LIST will be used.
setArrayName(String) - Method in class net.sf.json.xml.XMLSerializer
Sets the name used for JSONArray.
Default is 'a'.
setClassMap(Map) - Method in class net.sf.json.JsonConfig
Sets the current attribute/Class Map
setCycleDetectionStrategy(CycleDetectionStrategy) - Method in class net.sf.json.JsonConfig
Sets a CycleDetectionStrategy to use.
Will set default value (CycleDetectionStrategy.STRICT) if null.
setElementName(String) - Method in class net.sf.json.xml.XMLSerializer
Sets the name used for JSONArray elements.
Default is 'e'.
setExcludes(String[]) - Method in class net.sf.json.JsonConfig
Sets the excludes to use.
Will set default value ([]) if null.
setExpandableProperties(String[]) - Method in class net.sf.json.xml.XMLSerializer
Sets the list of properties to be expanded from child to parent.
setExpandElements(boolean) - Method in class net.sf.json.JSONArray
 
setHandleJettisonEmptyElement(boolean) - Method in class net.sf.json.JsonConfig
Activate/Deactive 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.
setHandleJettisonSingleElementArray(boolean) - Method in class net.sf.json.JsonConfig
Activate/Deactive 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).
setIgnoreDefaultExcludes(boolean) - Method in class net.sf.json.JsonConfig
Sets if default ecludes would be skipped when building.
setIgnoreTransientFields(boolean) - Method in class net.sf.json.JsonConfig
Sets if transient fields would be skipped when building.
setJavaIdentifierTransformer(JavaIdentifierTransformer) - Method in class net.sf.json.JsonConfig
Sets the JavaIdentifierTransformer to use.
Will set default value (JavaIdentifierTransformer.NOOP) if null.
setJavaPropertyFilter(PropertyFilter) - Method in class net.sf.json.JsonConfig
Sets a property filter used when serializing to Java.
setJsonBeanProcessorMatcher(JsonBeanProcessorMatcher) - Method in class net.sf.json.JsonConfig
Sets a JsonBeanProcessorMatcher to use.
Will set default value (JsonBeanProcessorMatcher.STRICT) if null.
setJsonPropertyFilter(PropertyFilter) - Method in class net.sf.json.JsonConfig
Sets a property filter used when serializing to JSON.
setNamespace(String, String) - Method in class net.sf.json.xml.XMLSerializer
Sets the namespace declaration to the root element.
Any previous values are discarded.
setNamespace(String, String, String) - Method in class net.sf.json.xml.XMLSerializer
Adds a namespace declaration to an element.
Any previous values are discarded.
setNamespaceLenient(boolean) - Method in class net.sf.json.xml.XMLSerializer
Sets wether this serializer is tolerant to namespaces without URIs or not.
setNewBeanInstanceStrategy(NewBeanInstanceStrategy) - Method in class net.sf.json.JsonConfig
Sets the NewBeanInstanceStrategy to use.
Will set default value (NewBeanInstanceStrategy.DEFAULT) if null.
setObjectName(String) - Method in class net.sf.json.xml.XMLSerializer
Sets the name used for JSONObject.
Default is 'o'.
setProperty(String, Object) - Method in class net.sf.json.groovy.JsonGroovyBuilder
 
setRemoveNamespacePrefixFromElements(boolean) - Method in class net.sf.json.xml.XMLSerializer
Sets if this serializer will remove namespace prefix from elements when reading.
setRootClass(Class) - Method in class net.sf.json.JsonConfig
Sets the current root Class
setRootName(String) - Method in class net.sf.json.xml.XMLSerializer
Sets the name used for the root element.
setSkipJavaIdentifierTransformationInMapKeys(boolean) - Method in class net.sf.json.JsonConfig
Sets if transient fields of beans would be skipped when building.
setSkipNamespaces(boolean) - Method in class net.sf.json.xml.XMLSerializer
Sets if this serializer will skip adding namespace declarations to elements when reading.
setTrimSpaces(boolean) - Method in class net.sf.json.xml.XMLSerializer
Sets if this serializer will trim leading and trealing whitespace from values when reading.
setTypeHintsEnabled(boolean) - Method in class net.sf.json.xml.XMLSerializer
Sets wether JSON types will be included as attributes.
setWebHijackPreventionStrategy(WebHijackPreventionStrategy) - Static method in class net.sf.json.util.WebUtils
Sets a WebHijackPreventionStrategy.
Will use default value (WebHijackPreventionStrategy.INFINITE_LOOP) if null.
shaveOffNonJavaIdentifierStartChars(String) - Method in class net.sf.json.util.JavaIdentifierTransformer
Removes all non JavaIdentifier chars from the start of the string.
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.
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
STRING - Static variable in interface net.sf.json.xml.JSONTypes
 
stripQuotes(String) - Static method in class net.sf.json.util.JSONUtils
Strips any single-quotes or double-quotes from boths sides of the string.
subList(int, int) - Method in class net.sf.json.JSONArray
 
supports(Class) - Method in class net.sf.json.util.EnumMorpher
 
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(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, JsonConfig) - Static method in class net.sf.json.JSONArray
Creates a java array from a JSONArray.
toArray(JSONArray, Object, JsonConfig) - Static method in class net.sf.json.JSONArray
Creates a java array from a JSONArray.
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
 
toBean() - Method in class net.sf.json.JSONObject
Creates a JSONDynaBean from a JSONObject.
toBean(JSONObject) - Static method in class net.sf.json.JSONObject
 
toBean(Class) - 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, JsonConfig) - Static method in class net.sf.json.JSONObject
Creates a bean from a JSONObject, with the specific configuration.
toBean(JSONObject, Object, JsonConfig) - Static method in class net.sf.json.JSONObject
Creates a bean from a JSONObject, with the specific configuration.
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.
toJSON(Object, JsonConfig) - Static method in class net.sf.json.JSONSerializer
Creates a JSONObject, JSONArray or a JSONNull from object.
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 toJSONString method allows a class to produce its own JSON serialization.
toList(JSONArray) - Static method in class net.sf.json.JSONArray
Creates a List from a JSONArray.
toList(JSONArray, Class) - Static method in class net.sf.json.JSONArray
Creates a List from a JSONArray.
toList(JSONArray, Class, Map) - Static method in class net.sf.json.JSONArray
Creates a List 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.
toList(JSONArray, JsonConfig) - Static method in class net.sf.json.JSONArray
Creates a List from a JSONArray.
toList(JSONArray, Object, JsonConfig) - Static method in class net.sf.json.JSONArray
Creates a List from a JSONArray.
toString(int) - Method in interface net.sf.json.JSON
Make a prettyprinted JSON text.
toString(int, int) - Method in interface net.sf.json.JSON
Make a prettyprinted JSON text.
toString() - Method in class net.sf.json.JSONArray
Make a JSON text of this JSONArray.
toString(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.JSONArray
Make a prettyprinted JSON text of this JSONArray.
toString() - Method in class net.sf.json.JSONFunction
Returns the string representation of this function.
toString() - Method in class net.sf.json.JSONNull
Get the "null" string value.
toString(int) - Method in class net.sf.json.JSONNull
 
toString(int, int) - Method in class net.sf.json.JSONNull
 
toString() - Method in class net.sf.json.JSONObject
Make a JSON text of this JSONObject.
toString(int) - Method in class net.sf.json.JSONObject
Make a prettyprinted JSON text of this JSONObject.
toString(int, int) - Method in class net.sf.json.JSONObject
Make a prettyprinted 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(JSON) - Static method in class net.sf.json.util.WebUtils
Returns a string represenation of a JSON value.
When an object property name does not contain a space (' ') or a colon (':'), the quotes are omitted.
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'
unregisterJsonBeanProcessor(Class) - Method in class net.sf.json.JsonConfig
Removes a JsonBeanProcessor.
unregisterJsonValueProcessor(Class) - Method in class net.sf.json.JsonConfig
Removes a JsonValueProcessor.
unregisterJsonValueProcessor(Class, Class) - Method in class net.sf.json.JsonConfig
Removes a JsonValueProcessor.
unregisterJsonValueProcessor(Class, String) - Method in class net.sf.json.JsonConfig
Removes a JsonValueProcessor.
unregisterJsonValueProcessor(String) - Method in class net.sf.json.JsonConfig
Removes a JsonValueProcessor.

V

value(boolean) - Method in class net.sf.json.util.JSONBuilder
Append either the value true or the value false.
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.
ValueVisitor<V> - Class in net.sf.json
 
ValueVisitor() - Constructor for class net.sf.json.ValueVisitor
 

W

WebHijackPreventionStrategy - Class in net.sf.json.util
Defines base implementations for preventing WebHijack in AJAX applications.
WebHijackPreventionStrategy() - Constructor for class net.sf.json.util.WebHijackPreventionStrategy
 
WebUtils - Class in net.sf.json.util
Provides useful methods for working with JSON and web.
WHITESPACE - Static variable in class net.sf.json.util.JavaIdentifierTransformer
Whitespace transformer 'white space' => 'whitespace'
write(Writer) - Method in interface net.sf.json.JSON
Write the contents as JSON text to a writer.
write(Writer, AbstractJSON.WritingVisitor) - Method in class net.sf.json.JSONArray
 
write(Writer) - Method in class net.sf.json.JSONNull
 
write(Writer, AbstractJSON.WritingVisitor) - Method in class net.sf.json.JSONObject
Write the contents of the JSONObject as JSON text to a writer.
write(JSON) - Method in class net.sf.json.xml.XMLSerializer
Writes a JSON value into a XML string with UTF-8 encoding.
write(JSON, String) - Method in class net.sf.json.xml.XMLSerializer
Writes a JSON value into a XML string with an specific encoding.
If the encoding string is null it will use UTF-8.
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.

X

XMLSerializer - Class in net.sf.json.xml
Utility class for transforming JSON to XML an back.
When transforming JSONObject and JSONArray instances to XML, this class will add hints for converting back to JSON.
Examples:
XMLSerializer() - Constructor for class net.sf.json.xml.XMLSerializer
Creates a new XMLSerializer with default options.
objectName: 'o' arrayName: 'a' elementName: 'e' typeHinstEnabled: true namespaceLenient: false expandableProperties: [] skipNamespaces: false removeNameSpacePrefixFromElement: false trimSpaces: false

A B C D E F G H I J K L M N O P Q R S T U V W X

Copyright © 2006-2011 Json-lib. All Rights Reserved.