Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractJSON - Class in org.kordamp.json
-
Base class for JSONObject and JSONArray.
- AbstractJSON() - Constructor for class org.kordamp.json.AbstractJSON
- AbstractJSON.CycleSet - Class in org.kordamp.json
- AbstractJSON.WritingVisitor - Interface in org.kordamp.json
- accumulate(String, boolean) - Method in class org.kordamp.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, double) - Method in class org.kordamp.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, int) - Method in class org.kordamp.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, long) - Method in class org.kordamp.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, Object) - Method in class org.kordamp.json.JSONObject
-
Accumulate values under a key.
- accumulate(String, Object, JsonConfig) - Method in class org.kordamp.json.JSONObject
-
Accumulate values under a key.
- accumulateAll(Map) - Method in class org.kordamp.json.JSONObject
- accumulateAll(Map, JsonConfig) - Method in class org.kordamp.json.JSONObject
- add(int, Object) - Method in class org.kordamp.json.JSONArray
- add(int, Object, JsonConfig) - Method in class org.kordamp.json.JSONArray
- add(Object) - Method in class org.kordamp.json.JSONArray
- add(Object) - Method in class org.kordamp.json.JSONArray.JSONArrayListIterator
- add(Object, JsonConfig) - Method in class org.kordamp.json.JSONArray
- addAll(int, Collection) - Method in class org.kordamp.json.JSONArray
- addAll(int, Collection, JsonConfig) - Method in class org.kordamp.json.JSONArray
- addAll(Collection) - Method in class org.kordamp.json.JSONArray
- addAll(Collection, JsonConfig) - Method in class org.kordamp.json.JSONArray
- addIgnoreFieldAnnotation(Class) - Method in class org.kordamp.json.JsonConfig
-
Removes an annotation that marks a field to be skipped when building.
[Java -> JSON] - addIgnoreFieldAnnotation(String) - Method in class org.kordamp.json.JsonConfig
-
Adds an annotation that marks a field to be skipped when building.
[Java -> JSON] - addInstance(Object) - Static method in class org.kordamp.json.AbstractJSON
-
Adds a reference for cycle detection check.
- addJsonEventListener(JsonEventListener) - Method in class org.kordamp.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] - addJsonPrefix(String) - Method in class org.kordamp.json.xml.XMLSerializer
- addMappedPropertyName(String, String) - Method in class org.kordamp.json.xml.XMLSerializer
-
Add a mapped JSON property name to XML element.
- addNamespace(String, String) - Method in class org.kordamp.json.xml.XMLSerializer
-
Adds a namespace declaration to the root element.
- addNamespace(String, String, String) - Method in class org.kordamp.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. - addNameSpaceToElement(Element) - Method in class org.kordamp.json.xml.XMLSerializer
- addPropertyFilter(Object, PropertyFilter) - Method in class org.kordamp.json.filters.MappingPropertyFilter
- addPropertyFilter(PropertyFilter) - Method in class org.kordamp.json.filters.CompositePropertyFilter
- addString(String) - Method in class org.kordamp.json.JSONArray
-
Adds a String without performing any conversion on it.
- addValue(Object, JsonConfig) - Method in class org.kordamp.json.JSONArray
-
Append an object value.
- allowNonStringKeys - Variable in class org.kordamp.json.JsonConfig
- AndPropertyFilter - Class in org.kordamp.json.filters
- AndPropertyFilter(PropertyFilter, PropertyFilter) - Constructor for class org.kordamp.json.filters.AndPropertyFilter
- append(String) - Method in class org.kordamp.json.util.JSONBuilder
-
Append a value.
- apply(Object, String, Object) - Method in class org.kordamp.json.filters.AndPropertyFilter
- apply(Object, String, Object) - Method in class org.kordamp.json.filters.CompositePropertyFilter
- apply(Object, String, Object) - Method in class org.kordamp.json.filters.FalsePropertyFilter
- apply(Object, String, Object) - Method in class org.kordamp.json.filters.MappingPropertyFilter
- apply(Object, String, Object) - Method in class org.kordamp.json.filters.NotPropertyFilter
- apply(Object, String, Object) - Method in class org.kordamp.json.filters.OrPropertyFilter
- apply(Object, String, Object) - Method in class org.kordamp.json.filters.TruePropertyFilter
- apply(Object, String, Object) - Method in interface org.kordamp.json.util.PropertyFilter
- array() - Method in class org.kordamp.json.util.JSONBuilder
-
Begin appending a new array.
- ARRAY - Static variable in interface org.kordamp.json.xml.JSONTypes
- arrayMode - Variable in class org.kordamp.json.JsonConfig
-
Array conversion mode
- arrayName - Variable in class org.kordamp.json.xml.XMLSerializer
-
the name for an JSONArray Element
- assertEquals(String, String, JSONArray) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONArrays are equal.
- assertEquals(String, String, JSONFunction) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONFunctions are equal.
- assertEquals(String, String, JSONNull) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONNulls are equal.
- assertEquals(String, String, JSONObject) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONObjects are equal.
- assertEquals(String, JSONArray) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONArrays are equal.
- assertEquals(String, JSONArray, String) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONArrays are equal.
- assertEquals(String, JSONArray, JSONArray) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONArrays are equal.
- assertEquals(String, JSONFunction) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONFunctions are equal.
- assertEquals(String, JSONFunction, String) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONFunctions are equal.
- assertEquals(String, JSONNull) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONNulls are equal.
- assertEquals(String, JSONNull, String) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONNulls are equal.
- assertEquals(String, JSONObject) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONObjects are equal.
- assertEquals(String, JSONObject, String) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONObjects are equal.
- assertEquals(String, JSONObject, JSONObject) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONObjects are equal.
- assertEquals(String, JSON, JSON) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSON values are equal.
- assertEquals(JSONArray, String) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONArrays are equal.
- assertEquals(JSONArray, JSONArray) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONArrays are equal.
- assertEquals(JSONFunction, String) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONFunctions are equal.
- assertEquals(JSONNull, String) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONNulls are equal.
- assertEquals(JSONObject, String) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONObjects are equal.
- assertEquals(JSONObject, JSONObject) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSONObjects are equal.
- assertEquals(JSON, JSON) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSON values are equal.
- assertJsonEquals(String, String) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSON strings are equal.
- assertJsonEquals(String, String, String) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that two JSON strings are equal.
- assertNotNull(String, JSON) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that a JSON value is not null.
Fails if: JSONNull.getInstance().equals( json ) ((JSONObject) json).isNullObject() - assertNotNull(JSON) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that a JSON value is not null.
Fails if: JSONNull.getInstance().equals( json ) ((JSONObject) json).isNullObject() - assertNull(String, JSON) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that a JSON value is null.
Fails if: !JSONNull.getInstance().equals( json ) !((JSONObject) json).isNullObject() - assertNull(JSON) - Static method in class org.kordamp.json.test.JSONAssert
-
Asserts that a JSON value is null.
Fails if: !JSONNull.getInstance().equals( json ) !((JSONObject) json).isNullObject()
B
- back() - Method in class org.kordamp.json.util.JSONTokener
-
Back up one character.
- beanKeyMap - Variable in class org.kordamp.json.JsonConfig
- beanProcessorMap - Variable in class org.kordamp.json.JsonConfig
- beanTypeMap - Variable in class org.kordamp.json.JsonConfig
- BOOLEAN - Static variable in interface org.kordamp.json.xml.JSONTypes
C
- CAMEL_CASE - Static variable in class org.kordamp.json.util.JavaIdentifierTransformer
-
CamelCase transformer 'camel case' => 'camelCase'
- CamelCaseJavaIdentifierTransformer() - Constructor for class org.kordamp.json.util.JavaIdentifierTransformer.CamelCaseJavaIdentifierTransformer
- canAutoExpand(JSONArray) - Method in class org.kordamp.json.xml.XMLSerializer
-
Only perform auto expansion if all children are objects.
- CANONICAL - Static variable in class org.kordamp.json.AbstractJSON
- checkChildElements(Element, boolean) - Method in class org.kordamp.json.xml.XMLSerializer
- classMap - Variable in class org.kordamp.json.JsonConfig
-
Map of attribute/class
- clear() - Method in class org.kordamp.json.JSONArray
- clear() - Method in class org.kordamp.json.JSONObject
- clearJavaPropertyNameProcessors() - Method in class org.kordamp.json.JsonConfig
-
Removes all registered PropertyNameProcessors.
[JSON -> Java] - clearJsonBeanProcessors() - Method in class org.kordamp.json.JsonConfig
-
Removes all registered JsonBeanProcessors.
[Java -> JSON] - clearJsonEventListeners() - Method in class org.kordamp.json.JsonConfig
-
Removes all registered listener for JSON Events.
[Java -> JSON] - clearJsonPropertyNameProcessors() - Method in class org.kordamp.json.JsonConfig
-
Removes all registered PropertyNameProcessors.
[Java -> JSON] - clearJsonValueProcessors() - Method in class org.kordamp.json.JsonConfig
-
Removes all registered JsonValueProcessors.
[Java -> JSON] - clearNamespaces() - Method in class org.kordamp.json.xml.XMLSerializer
-
Removes all namespaces declarations (from root an elements).
- clearNamespaces(String) - Method in class org.kordamp.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. - clearPropertyExclusions() - Method in class org.kordamp.json.JsonConfig
-
Removes all property exclusions registered per class.
[Java -> JSON] - clearPropertyNameProcessors() - Method in class org.kordamp.json.JsonConfig
-
Deprecated.use clearJavaPropertyNameProcessors() instead
- collectionType - Variable in class org.kordamp.json.JsonConfig
- comma - Variable in class org.kordamp.json.util.JSONBuilder
-
The comma flag determines if a comma should be output before the next value.
- COMMENTS - Static variable in class org.kordamp.json.util.WebHijackPreventionStrategy
-
Wraps the string with /* *\/
- CommentWebHijackPreventionStrategy() - Constructor for class org.kordamp.json.util.WebHijackPreventionStrategy.CommentWebHijackPreventionStrategy
- compareTo(Object) - Method in class org.kordamp.json.JSONArray
- compareTo(Object) - Method in class org.kordamp.json.JSONObject
- CompositePropertyFilter - Class in org.kordamp.json.filters
- CompositePropertyFilter() - Constructor for class org.kordamp.json.filters.CompositePropertyFilter
- CompositePropertyFilter(List) - Constructor for class org.kordamp.json.filters.CompositePropertyFilter
- contains(Object) - Method in class org.kordamp.json.JSONArray
- contains(Object, JsonConfig) - Method in class org.kordamp.json.JSONArray
- containsAll(Collection) - Method in class org.kordamp.json.JSONArray
- containsAll(Collection, JsonConfig) - Method in class org.kordamp.json.JSONArray
- containsKey(Object) - Method in class org.kordamp.json.JSONObject
- containsValue(Object) - Method in class org.kordamp.json.JSONObject
- containsValue(Object, JsonConfig) - Method in class org.kordamp.json.JSONObject
- convertPropertyValueToArray(String, Object, Class, JsonConfig, Map) - Static method in class org.kordamp.json.JSONObject.Impl
- convertPropertyValueToCollection(String, Object, JsonConfig, String, Map, Class) - Static method in class org.kordamp.json.JSONObject.Impl
- convertPropertyValueToList(String, Object, JsonConfig, String, Map) - Static method in class org.kordamp.json.JSONObject.Impl
- convertToJavaIdentifier(String) - Static method in class org.kordamp.json.util.JSONUtils
-
Transforms the string into a valid Java Identifier.
The default strategy is JavaIdentifierTransformer.NOOP - convertToJavaIdentifier(String, JsonConfig) - Static method in class org.kordamp.json.util.JSONUtils
-
Transforms the string into a valid Java Identifier.
The default strategy is JavaIdentifierTransformer.NOOP - copy() - Method in class org.kordamp.json.JsonConfig
- currentIndex - Variable in class org.kordamp.json.JSONArray.JSONArrayListIterator
- CustomElement(String) - Constructor for class org.kordamp.json.xml.XMLSerializer.CustomElement
- cycleDetectionStrategy - Variable in class org.kordamp.json.JsonConfig
- CycleDetectionStrategy - Class in org.kordamp.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 org.kordamp.json.util.CycleDetectionStrategy
- CycleDetectionStrategy.LenientCycleDetectionStrategy - Class in org.kordamp.json.util
- CycleDetectionStrategy.LenientNoRefCycleDetectionStrategy - Class in org.kordamp.json.util
-
A cycle detection strategy that prevents any mention of the possible conflict from appearing.
- CycleDetectionStrategy.StrictCycleDetectionStrategy - Class in org.kordamp.json.util
- cycleSet - Static variable in class org.kordamp.json.AbstractJSON
- CycleSet() - Constructor for class org.kordamp.json.AbstractJSON.CycleSet
D
- DEFAULT - Static variable in class org.kordamp.json.processors.DefaultValueProcessorMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class org.kordamp.json.processors.JsonBeanProcessorMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class org.kordamp.json.processors.JsonValueProcessorMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class org.kordamp.json.processors.PropertyNameProcessorMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class org.kordamp.json.util.NewBeanInstanceStrategy
-
Calls Class.newInstance()
- DEFAULT - Static variable in class org.kordamp.json.util.PropertyExclusionClassMatcher
-
Matches the target with equals()
- DEFAULT - Static variable in class org.kordamp.json.util.PropertySetStrategy
- DEFAULT_COLLECTION_TYPE - Static variable in class org.kordamp.json.JsonConfig
- DEFAULT_CYCLE_DETECTION_STRATEGY - Static variable in class org.kordamp.json.JsonConfig
- DEFAULT_DEFAULT_VALUE_PROCESSOR_MATCHER - Static variable in class org.kordamp.json.JsonConfig
- DEFAULT_EXCLUDES - Static variable in class org.kordamp.json.JsonConfig
- DEFAULT_JAVA_IDENTIFIER_TRANSFORMER - Static variable in class org.kordamp.json.JsonConfig
- DEFAULT_JSON_BEAN_PROCESSOR_MATCHER - Static variable in class org.kordamp.json.JsonConfig
- DEFAULT_JSON_VALUE_PROCESSOR_MATCHER - Static variable in class org.kordamp.json.JsonConfig
- DEFAULT_NEW_BEAN_INSTANCE_STRATEGY - Static variable in class org.kordamp.json.JsonConfig
- DEFAULT_PROPERTY_EXCLUSION_CLASS_MATCHER - Static variable in class org.kordamp.json.JsonConfig
- DEFAULT_PROPERTY_NAME_PROCESSOR_MATCHER - Static variable in class org.kordamp.json.JsonConfig
- DEFAULT_VALUE_PROCESSOR - Static variable in class org.kordamp.json.JsonConfig
- DEFAULT_WEB_HIJACK_PREVENTION_STRATEGY - Static variable in class org.kordamp.json.util.WebUtils
- defaultBeanProcessing(Object, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
- DefaultDefaultValueProcessor - Class in org.kordamp.json.processors
-
Base implementation for DefaultDefaultValueProcessor.
- DefaultDefaultValueProcessor() - Constructor for class org.kordamp.json.processors.DefaultDefaultValueProcessor
- DefaultDefaultValueProcessorMatcher() - Constructor for class org.kordamp.json.processors.DefaultValueProcessorMatcher.DefaultDefaultValueProcessorMatcher
- DefaultJsonBeanProcessorMatcher() - Constructor for class org.kordamp.json.processors.JsonBeanProcessorMatcher.DefaultJsonBeanProcessorMatcher
- DefaultJsonValueProcessorMatcher() - Constructor for class org.kordamp.json.processors.JsonValueProcessorMatcher.DefaultJsonValueProcessorMatcher
- DefaultNewBeanInstanceStrategy() - Constructor for class org.kordamp.json.util.NewBeanInstanceStrategy.DefaultNewBeanInstanceStrategy
- DefaultPropertyExclusionClassMatcher() - Constructor for class org.kordamp.json.util.PropertyExclusionClassMatcher.DefaultPropertyExclusionClassMatcher
- DefaultPropertyNameProcessorMatcher() - Constructor for class org.kordamp.json.processors.PropertyNameProcessorMatcher.DefaultPropertyNameProcessorMatcher
- DefaultPropertySetStrategy() - Constructor for class org.kordamp.json.util.PropertySetStrategy.DefaultPropertySetStrategy
- defaultValueMap - Variable in class org.kordamp.json.JsonConfig
- DefaultValueProcessor - Interface in org.kordamp.json.processors
-
Defines the default value for a type when its value is null.
- defaultValueProcessorMatcher - Variable in class org.kordamp.json.JsonConfig
- DefaultValueProcessorMatcher - Class in org.kordamp.json.processors
-
Base class for finding a matching DefaultValueProcessor.
DEFAULT - matches the target class with equals(). - DefaultValueProcessorMatcher() - Constructor for class org.kordamp.json.processors.DefaultValueProcessorMatcher
- DefaultValueProcessorMatcher.DefaultDefaultValueProcessorMatcher - Class in org.kordamp.json.processors
- dehexchar(char) - Static method in class org.kordamp.json.util.JSONTokener
-
Get the hex value of a character (base16).
- disableEventTriggering() - Method in class org.kordamp.json.JsonConfig
-
Disables event triggering when building.
[Java -> JSON] - discard(int) - Method in class org.kordamp.json.JSONArray
-
Remove an element, if present.
- discard(Object) - Method in class org.kordamp.json.JSONArray
-
Remove an element, if present.
- discard(String) - Method in class org.kordamp.json.JSONObject
-
Remove a name and its value, if present.
- DOUBLE_QUOTE - Static variable in class org.kordamp.json.util.JSONUtils
-
Constant for char "
- doubleToString(double) - Static method in class org.kordamp.json.util.JSONUtils
-
Produce a string from a double.
E
- element(boolean) - Method in class org.kordamp.json.JSONArray
-
Append a boolean value.
- element(double) - Method in class org.kordamp.json.JSONArray
-
Append a double value.
- element(int) - Method in class org.kordamp.json.JSONArray
-
Append an int value.
- element(int, boolean) - Method in class org.kordamp.json.JSONArray
-
Put or replace a boolean value in the JSONArray.
- element(int, double) - Method in class org.kordamp.json.JSONArray
-
Put or replace a double value.
- element(int, int) - Method in class org.kordamp.json.JSONArray
-
Put or replace an int value.
- element(int, long) - Method in class org.kordamp.json.JSONArray
-
Put or replace a long value.
- element(int, Object) - Method in class org.kordamp.json.JSONArray
-
Put or replace an object value in the JSONArray.
- element(int, Object, JsonConfig) - Method in class org.kordamp.json.JSONArray
-
Put or replace an object value in the JSONArray.
- element(int, String) - Method in class org.kordamp.json.JSONArray
-
Put or replace a String value in the JSONArray.
- element(int, String, JsonConfig) - Method in class org.kordamp.json.JSONArray
-
Put or replace a String value in the JSONArray.
- element(int, Collection) - Method in class org.kordamp.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 org.kordamp.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 org.kordamp.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 org.kordamp.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 org.kordamp.json.JSONArray
-
Append an long value.
- element(Object) - Method in class org.kordamp.json.JSONArray
-
Append an object value.
- element(Object, JsonConfig) - Method in class org.kordamp.json.JSONArray
-
Append an object value.
- element(String) - Method in class org.kordamp.json.JSONArray
-
Append a String value.
- element(String, boolean) - Method in class org.kordamp.json.JSONObject
-
Put a key/boolean pair in the JSONObject.
- element(String, double) - Method in class org.kordamp.json.JSONObject
-
Put a key/double pair in the JSONObject.
- element(String, int) - Method in class org.kordamp.json.JSONObject
-
Put a key/int pair in the JSONObject.
- element(String, long) - Method in class org.kordamp.json.JSONObject
-
Put a key/long pair in the JSONObject.
- element(String, Object) - Method in class org.kordamp.json.JSONObject
-
Put a key/value pair in the JSONObject.
- element(String, Object, JsonConfig) - Method in class org.kordamp.json.JSONObject
-
Put a key/value pair in the JSONObject.
- element(String, Collection) - Method in class org.kordamp.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 org.kordamp.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 org.kordamp.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 org.kordamp.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 org.kordamp.json.JSONArray
-
Append a String value.
- element(Collection) - Method in class org.kordamp.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 org.kordamp.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 org.kordamp.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 org.kordamp.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 org.kordamp.json.JSONArray
-
Append an JSON value.
- element(JSONObject) - Method in class org.kordamp.json.JSONArray
-
Append an JSON value.
- elementName - Variable in class org.kordamp.json.xml.XMLSerializer
-
the name for an JSONArray's element Element
- elementOpt(String, Object) - Method in class org.kordamp.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 org.kordamp.json.JSONObject
-
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.
- elements - Variable in class org.kordamp.json.JSONArray
-
The List where the JSONArray's properties are kept.
- EMPTY_ARGS - Static variable in class org.kordamp.json.util.NewBeanInstanceStrategy.DefaultNewBeanInstanceStrategy
- EMPTY_ARRAY - Static variable in class org.kordamp.json.xml.XMLSerializer
- EMPTY_EXCLUDES - Static variable in class org.kordamp.json.JsonConfig
- EMPTY_PARAM_ARRAY - Static variable in class org.kordamp.json.JSONFunction
-
constant array for empty parameters
- EMPTY_PARAM_TYPES - Static variable in class org.kordamp.json.util.NewBeanInstanceStrategy.DefaultNewBeanInstanceStrategy
- enableEventTriggering() - Method in class org.kordamp.json.JsonConfig
-
Enables event triggering when building.
[Java -> JSON] - enclosedType - Variable in class org.kordamp.json.JsonConfig
- end(char, char) - Method in class org.kordamp.json.util.JSONBuilder
-
End something.
- endArray() - Method in class org.kordamp.json.util.JSONBuilder
-
End an array.
- endObject() - Method in class org.kordamp.json.util.JSONBuilder
-
End an object.
- entrySet() - Method in class org.kordamp.json.JSONObject
- enumClass - Variable in class org.kordamp.json.util.EnumMorpher
- EnumMorpher - Class in org.kordamp.json.util
- EnumMorpher(Class) - Constructor for class org.kordamp.json.util.EnumMorpher
- equals(Object) - Method in class org.kordamp.json.JSONArray
- equals(Object) - Method in class org.kordamp.json.JSONFunction
- equals(Object) - Method in class org.kordamp.json.JSONNull
-
A Null object is equal to the null value and to itself.
- equals(Object) - Method in class org.kordamp.json.JSONObject
- escape(String) - Method in class org.kordamp.json.xml.XMLSerializer.XomSerializer
- escapeLowerChars - Variable in class org.kordamp.json.xml.XMLSerializer
-
flag for if characters lower than ' ' should be escaped in texts.
- eventListeners - Variable in class org.kordamp.json.JsonConfig
- excludes - Variable in class org.kordamp.json.JsonConfig
- exclusionMap - Variable in class org.kordamp.json.JsonConfig
- expandableProperties - Variable in class org.kordamp.json.xml.XMLSerializer
-
list of properties to be expanded from child to parent
- expandElements - Variable in class org.kordamp.json.JSONArray
-
A flag for XML processing.
F
- f - Variable in class org.kordamp.json.JSONObject.FieldProperty
- FalsePropertyFilter - Class in org.kordamp.json.filters
- FalsePropertyFilter() - Constructor for class org.kordamp.json.filters.FalsePropertyFilter
- FieldProperty(Field) - Constructor for class org.kordamp.json.JSONObject.FieldProperty
- filter - Variable in class org.kordamp.json.filters.NotPropertyFilter
- filter1 - Variable in class org.kordamp.json.filters.AndPropertyFilter
- filter1 - Variable in class org.kordamp.json.filters.OrPropertyFilter
- filter2 - Variable in class org.kordamp.json.filters.AndPropertyFilter
- filter2 - Variable in class org.kordamp.json.filters.OrPropertyFilter
- filters - Variable in class org.kordamp.json.filters.CompositePropertyFilter
- filters - Variable in class org.kordamp.json.filters.MappingPropertyFilter
- findDefaultValueProcessor(Class) - Method in class org.kordamp.json.JsonConfig
-
Finds a DefaultValueProcessor registered to the target class.
Returns null if none is registered.
[Java -> JSON] - findJavaPropertyNameProcessor(Class) - Method in class org.kordamp.json.JsonConfig
-
Finds a PropertyNameProcessor registered to the target class.
Returns null if none is registered.
[JSON -> Java] - findJsonBeanProcessor(Class) - Method in class org.kordamp.json.JsonConfig
-
Finds a JsonBeanProcessor registered to the target class.
Returns null if none is registered.
[Java -> JSON] - findJsonPropertyNameProcessor(Class) - Method in class org.kordamp.json.JsonConfig
-
Finds a PropertyNameProcessor registered to the target class.
Returns null if none is registered.
[Java -> JSON] - findJsonValueProcessor(Class) - Method in class org.kordamp.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 org.kordamp.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 org.kordamp.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 org.kordamp.json.JsonConfig
-
Deprecated.use findJavaPropertyNameProcessor() instead
- findTargetClass(String, Map) - Static method in class org.kordamp.json.JSONObject.Impl
-
Locates a Class associated to a specifi key.
The key may be a regexp. - fireArrayEndEvent(JsonConfig) - Static method in class org.kordamp.json.AbstractJSON
-
Fires an end of array event.
- fireArrayStartEvent(JsonConfig) - Static method in class org.kordamp.json.AbstractJSON
-
Fires a start of array event.
- fireElementAddedEvent(int, Object, JsonConfig) - Static method in class org.kordamp.json.AbstractJSON
-
Fires an element added event.
- fireErrorEvent(JSONException, JsonConfig) - Static method in class org.kordamp.json.AbstractJSON
-
Fires an error event.
- fireObjectEndEvent(JsonConfig) - Static method in class org.kordamp.json.AbstractJSON
-
Fires an end of object event.
- fireObjectStartEvent(JsonConfig) - Static method in class org.kordamp.json.AbstractJSON
-
Fires a start of object event.
- firePropertySetEvent(String, Object, boolean, JsonConfig) - Static method in class org.kordamp.json.AbstractJSON
-
Fires a property set event.
- fireWarnEvent(String, JsonConfig) - Static method in class org.kordamp.json.AbstractJSON
-
Fires a warning event.
- FLOAT - Static variable in interface org.kordamp.json.xml.JSONTypes
- forcedArrayElements - Variable in class org.kordamp.json.xml.XMLSerializer
-
set of element names that forces its children elements to be in an Array
- forceTopLevelObject - Variable in class org.kordamp.json.xml.XMLSerializer
- fromArray(boolean[], JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
-
Construct a JSONArray from an boolean[].
- fromArray(byte[], JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
-
Construct a JSONArray from an byte[].
- fromArray(char[], JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
-
Construct a JSONArray from an char[].
- fromArray(double[], JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
-
Construct a JSONArray from an double[].
- fromArray(float[], JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
-
Construct a JSONArray from an float[].
- fromArray(int[], JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
-
Construct a JSONArray from an int[].
- fromArray(long[], JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
-
Construct a JSONArray from an long[].
- fromArray(short[], JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
-
Construct a JSONArray from an short[].
- fromArray(Enum, JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
-
Construct a JSONArray from an Enum value.
- fromArray(Object[], JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
- fromBean(Object, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
-
Creates a JSONObject from a POJO.
Supports nested maps, POJOs, and arrays/collections. - fromCollection(Collection, JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
- fromDynaBean(DynaBean, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
- fromJSONArray(JSONArray, JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
- fromJSONObject(JSONObject, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
- fromJSONString(JSONString, JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
- fromJSONString(JSONString, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
- fromJSONTokener(JSONTokener, JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
- fromJSONTokener(JSONTokener, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
- fromMap(Map, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
- fromObject(Object) - Static method in class org.kordamp.json.JSONArray
-
Creates a JSONArray.
Inspects the object type to call the correct JSONArray factory method. - fromObject(Object) - Static method in class org.kordamp.json.JSONObject
-
Creates a JSONObject.
Inspects the object type to call the correct JSONObject factory method. - fromObject(Object, JsonConfig) - Static method in class org.kordamp.json.JSONArray
-
Creates a JSONArray.
Inspects the object type to call the correct JSONArray factory method. - fromObject(Object, JsonConfig) - Static method in class org.kordamp.json.JSONObject
-
Creates a JSONObject.
Inspects the object type to call the correct JSONObject factory method. - fromString(String, JsonConfig) - Static method in class org.kordamp.json.JSONArray.Impl
- fromString(String, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
- FUNCTION - Static variable in interface org.kordamp.json.xml.JSONTypes
- FUNCTION_BODY_PATTERN - Static variable in class org.kordamp.json.util.JSONUtils
- FUNCTION_HEADER_PATTERN - Static variable in class org.kordamp.json.util.JSONUtils
- FUNCTION_PARAMS_PATTERN - Static variable in class org.kordamp.json.util.JSONUtils
- FUNCTION_PATTERN - Static variable in class org.kordamp.json.util.JSONUtils
- FUNCTION_PREFIX - Static variable in class org.kordamp.json.util.JSONUtils
G
- get(int) - Method in class org.kordamp.json.JSONArray
-
Get the object value associated with an index.
- get(Object) - Method in class org.kordamp.json.JSONObject
- get(String) - Method in class org.kordamp.json.JSONObject
-
Get the value object associated with a key.
- getArrayMode() - Method in class org.kordamp.json.JsonConfig
-
Returns the current array mode conversion.
[JSON -> Java] - getArrayName() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns the name used for JSONArray.
- getBoolean(int) - Method in class org.kordamp.json.JSONArray
-
Get the boolean value associated with an index.
- getBoolean(String) - Method in class org.kordamp.json.JSONObject
-
Get the boolean value associated with a key.
- getClass(Element) - Method in class org.kordamp.json.xml.XMLSerializer
- getClassMap() - Method in class org.kordamp.json.JsonConfig
-
Returns the current attribute/class Map.
[JSON -> Java] - getCollectionType() - Method in class org.kordamp.json.JsonConfig
-
Returns the current collection type used for collection transformations.
[JSON -> Java] - getCollectionType(PropertyDescriptor, boolean) - Static method in class org.kordamp.json.JSONArray
-
Get the collection type from a getter or setter, or null if no type was found.
Contributed by [Matt Small @ WaveMaker]. - getCycleDetectionStrategy() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured CycleDetectionStrategy.
Default value is CycleDetectionStrategy.STRICT
[Java -> JSON] - getCycleSet() - Static method in class org.kordamp.json.AbstractJSON
- getDefaultValue(Class) - Method in class org.kordamp.json.processors.DefaultDefaultValueProcessor
- getDefaultValue(Class) - Method in interface org.kordamp.json.processors.DefaultValueProcessor
-
Returns an appropriate default value for a type.
- getDefaultValueProcessorMatcher() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured DefaultValueProcessorMatcher.
Default value is DefaultValueProcessorMatcher.DEFAULT
[Java -> JSON] - getDimensions(JSONArray) - Static method in class org.kordamp.json.JSONArray
-
Returns the number of dimensions suited for a java array.
- getDouble(int) - Method in class org.kordamp.json.JSONArray
-
Get the double value associated with an index.
- getDouble(String) - Method in class org.kordamp.json.JSONObject
-
Get the double value associated with a key.
- getElementName() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns the name used for JSONArray elements.
- getElementNamespace(String) - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns a read-only view of the particular element name space if found.
- getEnclosedType() - Method in class org.kordamp.json.JsonConfig
-
Returns the current enclosed type for generic collection transformations.
[JSON -> Java] - getExcludes() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured properties for exclusion.
- getExpandableProperties() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns a list of properties to be expanded from child to parent.
- getForcedArrayElements() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns the set of XML elements that force their children to be treated as array elements.
- getFunctionBody(String) - Static method in class org.kordamp.json.util.JSONUtils
-
Returns the body of a function literal.
- getFunctionParams(String) - Static method in class org.kordamp.json.util.JSONUtils
-
Returns the params of a function literal.
- getGroupIfMatches(String, int) - Method in class org.kordamp.json.regexp.JdkRegexpMatcher
- getGroupIfMatches(String, int) - Method in interface org.kordamp.json.regexp.RegexpMatcher
-
Returns the specified group if the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation. - getIgnoreFieldAnnotations() - Method in class org.kordamp.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 org.kordamp.json.util.JSONUtils
-
Returns the inner-most component type of an Array.
- getInstance() - Static method in class org.kordamp.json.JSONNull
-
Returns the singleton instance of JSONNull
- getInt(int) - Method in class org.kordamp.json.JSONArray
-
Get the int value associated with an index.
- getInt(String) - Method in class org.kordamp.json.JSONObject
-
Get the int value associated with a key.
- getJavaIdentifierTransformer() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured JavaIdentifierTransformer.
- getJavaPropertyFilter() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured property filter when serializing to Java.
[JSON -> Java] - getJavaPropertyNameProcessorMatcher() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured PropertyNameProcessorMatcher.
Default value is PropertyNameProcessorMatcher.DEFAULT
[JSON -> Java] - getJSONArray(int) - Method in class org.kordamp.json.JSONArray
-
Get the JSONArray associated with an index.
- getJSONArray(String) - Method in class org.kordamp.json.JSONObject
-
Get the JSONArray value associated with a key.
- getJsonBeanProcessorMatcher() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured JsonBeanProcessorMatcher.
Default value is JsonBeanProcessorMatcher.DEFAULT
[JSON -> Java] - getJsonEventListeners() - Method in class org.kordamp.json.JsonConfig
-
Returns a list of registered listeners for JSON events.
[JSON -> Java] - getJSONObject(int) - Method in class org.kordamp.json.JSONArray
-
Get the JSONObject associated with an index.
- getJSONObject(String) - Method in class org.kordamp.json.JSONObject
-
Get the JSONObject value associated with a key.
- getJsonPropertyFilter() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured property filter when serializing to JSON.
[Java -> JSON] - getJsonPropertyNameProcessorMatcher() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured PropertyNameProcessorMatcher.
Default value is PropertyNameProcessorMatcher.DEFAULT
[Java -> JSON] - getJsonValueProcessorMatcher() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured JsonValueProcessorMatcher.
Default value is JsonValueProcessorMatcher.DEFAULT
[Java -> JSON] - getLong(int) - Method in class org.kordamp.json.JSONArray
-
Get the long value associated with an index.
- getLong(String) - Method in class org.kordamp.json.JSONObject
-
Get the long value associated with a key.
- getMappedPropertyNames() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns mappings between JSON properties to XML elements.
- getMatch(Class, Set) - Method in class org.kordamp.json.processors.DefaultValueProcessorMatcher.DefaultDefaultValueProcessorMatcher
- getMatch(Class, Set) - Method in class org.kordamp.json.processors.DefaultValueProcessorMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatch(Class, Set) - Method in class org.kordamp.json.processors.JsonBeanProcessorMatcher.DefaultJsonBeanProcessorMatcher
- getMatch(Class, Set) - Method in class org.kordamp.json.processors.JsonBeanProcessorMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatch(Class, Set) - Method in class org.kordamp.json.processors.JsonValueProcessorMatcher.DefaultJsonValueProcessorMatcher
- getMatch(Class, Set) - Method in class org.kordamp.json.processors.JsonValueProcessorMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatch(Class, Set) - Method in class org.kordamp.json.processors.PropertyNameProcessorMatcher.DefaultPropertyNameProcessorMatcher
- getMatch(Class, Set) - Method in class org.kordamp.json.processors.PropertyNameProcessorMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatch(Class, Set) - Method in class org.kordamp.json.util.PropertyExclusionClassMatcher.DefaultPropertyExclusionClassMatcher
- getMatch(Class, Set) - Method in class org.kordamp.json.util.PropertyExclusionClassMatcher
-
Returns the matching class calculated with the target class and the provided set.
- getMatcher(String) - Static method in class org.kordamp.json.regexp.RegexpUtils
-
Returns a RegexpMatcher that works in a specific environment.
- getMatcher(String, boolean) - Static method in class org.kordamp.json.regexp.RegexpUtils
-
Returns a RegexpMatcher that works in a specific environment.
- getMergedExcludes() - Method in class org.kordamp.json.JsonConfig
-
Returns a set of default excludes with user-defined excludes.
[Java -> JSON] - getMergedExcludes(Class) - Method in class org.kordamp.json.JsonConfig
-
Returns a set of default excludes with user-defined excludes.
Takes into account any additional excludes per matching class. - getMorpherRegistry() - Static method in class org.kordamp.json.util.JSONUtils
-
Returns the singleton MorpherRegistry.
- getName(String) - Static method in class org.kordamp.json.xml.XMLSerializer.CustomElement
- getNewBeanInstanceStrategy() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured NewBeanInstanceStrategy.
Default value is NewBeanInstanceStrategy.DEFAULT
[JSON -> Java] - getObjectName() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns the name used for JSONArray.
- getParams() - Method in class org.kordamp.json.JSONFunction
-
Returns the parameters of this function.
- getPrefix(String) - Static method in class org.kordamp.json.xml.XMLSerializer.CustomElement
- getProperties(JSONObject) - Static method in class org.kordamp.json.util.JSONUtils
-
Creates a Map with all the properties of the JSONObject.
- getProperty(Class, Object, String, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
- getPropertyExclusionClassMatcher() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured PropertyExclusionClassMatcher.
Default value is PropertyExclusionClassMatcher.DEFAULT
[JSON -> Java] - getPropertyNameProcessorMatcher() - Method in class org.kordamp.json.JsonConfig
-
Deprecated.use getJavaPropertyNameProcessorMatcher() instead
- getPropertySetStrategy() - Method in class org.kordamp.json.JsonConfig
-
Returns the configured PropertySetStrategy.
Default value is PropertySetStrategy.DEFAULT
[JSON -> Java] - getPropertyType() - Method in class org.kordamp.json.JSONObject.FieldProperty
- getPropertyType() - Method in class org.kordamp.json.JSONObject.MethodProperty
- getPropertyType() - Method in interface org.kordamp.json.JSONObject.Property
- getPropertyType() - Method in class org.kordamp.json.JSONObject.PropertyOnMap
- getPropertyType() - Method in class org.kordamp.json.JSONObject.PropertySetterStrategyDecorator
- getQName() - Method in class org.kordamp.json.xml.XMLSerializer.CustomElement
- getRootClass() - Method in class org.kordamp.json.JsonConfig
-
Returns the current root Class.
[JSON -> Java] - getRootName() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns the name used for the root element.
- getRootNamespace() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns a read-only view of the root name space.
- getSet() - Method in class org.kordamp.json.AbstractJSON.CycleSet
- getString(int) - Method in class org.kordamp.json.JSONArray
-
Get the string associated with an index.
- getString(String) - Method in class org.kordamp.json.JSONObject
-
Get the string associated with a key.
- getText() - Method in class org.kordamp.json.JSONFunction
-
Reeturns the text of this function.
- getType(Element) - Method in class org.kordamp.json.xml.XMLSerializer
- getType(Element, String) - Method in class org.kordamp.json.xml.XMLSerializer
- getTypeClass(Object) - Static method in class org.kordamp.json.util.JSONUtils
-
Returns the JSON type.
Values are Object, String, Boolean, Number(subclasses) & JSONFunction. - getWebHijackPreventionStrategy() - Static method in class org.kordamp.json.util.WebUtils
-
Returns the configured WebHijackPreventionStrategy.
H
- handleJettisonEmptyElement - Variable in class org.kordamp.json.JsonConfig
- handleJettisonSingleElementArray - Variable in class org.kordamp.json.JsonConfig
- handleRepeatedReferenceAsArray(Object) - Method in class org.kordamp.json.util.CycleDetectionStrategy
-
Handle a repeated reference
Must return a valid JSONArray or null. - handleRepeatedReferenceAsArray(Object) - Method in class org.kordamp.json.util.CycleDetectionStrategy.LenientCycleDetectionStrategy
- handleRepeatedReferenceAsArray(Object) - Method in class org.kordamp.json.util.CycleDetectionStrategy.LenientNoRefCycleDetectionStrategy
- handleRepeatedReferenceAsArray(Object) - Method in class org.kordamp.json.util.CycleDetectionStrategy.StrictCycleDetectionStrategy
- handleRepeatedReferenceAsObject(Object) - Method in class org.kordamp.json.util.CycleDetectionStrategy
-
Handle a repeated reference
Must return a valid JSONObject or null. - handleRepeatedReferenceAsObject(Object) - Method in class org.kordamp.json.util.CycleDetectionStrategy.LenientCycleDetectionStrategy
- handleRepeatedReferenceAsObject(Object) - Method in class org.kordamp.json.util.CycleDetectionStrategy.LenientNoRefCycleDetectionStrategy
- handleRepeatedReferenceAsObject(Object) - Method in class org.kordamp.json.util.CycleDetectionStrategy.StrictCycleDetectionStrategy
- has(String) - Method in class org.kordamp.json.JSONObject
-
Determine if the JSONObject contains a specific key.
- hashCode() - Method in class org.kordamp.json.JSONArray
- hashCode() - Method in class org.kordamp.json.JSONFunction
- hashCode() - Method in class org.kordamp.json.JSONNull
- hashCode() - Method in class org.kordamp.json.JSONObject
- hashCode(Object) - Static method in class org.kordamp.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. - hasNamespaces(Element) - Method in class org.kordamp.json.xml.XMLSerializer
- hasNext() - Method in class org.kordamp.json.JSONArray.JSONArrayListIterator
- hasPrevious() - Method in class org.kordamp.json.JSONArray.JSONArrayListIterator
- hasQuotes(String) - Static method in class org.kordamp.json.util.JSONUtils
-
Returns true if the input has single-quotes or double-quotes at both sides.
I
- IGNORE_PROPERTY_ARR - Static variable in class org.kordamp.json.util.CycleDetectionStrategy
- IGNORE_PROPERTY_OBJ - Static variable in class org.kordamp.json.util.CycleDetectionStrategy
- ignoreDefaultExcludes - Variable in class org.kordamp.json.JsonConfig
- ignoreFieldAnnotations - Variable in class org.kordamp.json.JsonConfig
- ignorePublicFields - Variable in class org.kordamp.json.JsonConfig
- ignoreTransientFields - Variable in class org.kordamp.json.JsonConfig
- ignoreUnreadableProperty - Variable in class org.kordamp.json.JsonConfig
- Impl() - Constructor for class org.kordamp.json.JSONArray.Impl
- Impl() - Constructor for class org.kordamp.json.JSONObject.Impl
- indexOf(Object) - Method in class org.kordamp.json.JSONArray
- INFINITE_LOOP - Static variable in class org.kordamp.json.util.WebHijackPreventionStrategy
-
Prepends "while(1);"
- InfiniteLoopWebHijackPreventionStrategy() - Constructor for class org.kordamp.json.util.WebHijackPreventionStrategy.InfiniteLoopWebHijackPreventionStrategy
- initialValue() - Method in class org.kordamp.json.AbstractJSON.CycleSet
- inner - Variable in class org.kordamp.json.JSONObject.PropertySetterStrategyDecorator
- instance - Static variable in class org.kordamp.json.JSONNull
-
singleton instance
- INTEGER - Static variable in interface org.kordamp.json.xml.JSONTypes
- isAllowNonStringKeys() - Method in class org.kordamp.json.JsonConfig
-
Returns true if non-String keys are allowed on JSONObject.
Default value is false
[Java -> JSON] - isArray() - Method in interface org.kordamp.json.JSON
-
Returns true if this object is a JSONArray, false otherwise.
- isArray() - Method in class org.kordamp.json.JSONArray
- isArray() - Method in class org.kordamp.json.JSONNull
- isArray() - Method in class org.kordamp.json.JSONObject
- isArray(Class) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if a Class represents an array or Collection.
- isArray(Object) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if obj is an array or Collection.
- isArray(Element, boolean) - Method in class org.kordamp.json.xml.XMLSerializer
- isBigDecimal(Number) - Static method in class org.kordamp.json.util.JSONUtils
-
Finds out if n represents a BigInteger
- isBigInteger(Number) - Static method in class org.kordamp.json.util.JSONUtils
-
Finds out if n represents a BigInteger
- isBlank(String) - Static method in class org.kordamp.json.util.JSONUtils
-
Determines whether a given string is
null
, empty, or only contains whitespace. - isBoolean(Class) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if Class represents a Boolean or primitive boolean
- isBoolean(Object) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if obj is a Boolean or primitive boolean
- isCData(Element) - Method in class org.kordamp.json.xml.XMLSerializer
- isDouble(Class) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if Class represents a primitive double or wrapper.
- isDouble(Number) - Static method in class org.kordamp.json.util.JSONUtils
-
Finds out if n represents a Double.
- isEmpty() - Method in interface org.kordamp.json.JSON
-
Returns true if this object has no elements or keys.
- isEmpty() - Method in class org.kordamp.json.JSONArray
- isEmpty() - Method in class org.kordamp.json.JSONNull
- isEmpty() - Method in class org.kordamp.json.JSONObject
- isEventTriggeringEnabled() - Method in class org.kordamp.json.JsonConfig
-
Returns true if event triggering is enabled during building.
Default value is false
[Java -> JSON] - isExpandElements() - Method in class org.kordamp.json.JSONArray
- isFloat(Number) - Static method in class org.kordamp.json.util.JSONUtils
-
Finds out if n represents a Float.
- isForceTopLevelObject() - Method in class org.kordamp.json.xml.XMLSerializer
- isFunction(Object) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if obj is javaScript function.
Obj must be a non-null String and match"^function[ ]?\\(.*\\)[ ]?\\{.*\\}$" - isFunction(Element) - Method in class org.kordamp.json.xml.XMLSerializer
- isFunctionHeader(Object) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if obj is javaScript function header.
Obj must be a non-null String and match "^function[ ]?\\(.*\\)$" - isHandleJettisonEmptyElement() - Method in class org.kordamp.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 org.kordamp.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 org.kordamp.json.JsonConfig
-
Returns true if default excludes will not be used.
Default value is false.
[Java -> JSON] - isIgnoreJPATransient() - Method in class org.kordamp.json.JsonConfig
-
Returns true if JPA Transient annotated methods should be ignored.
Default value is false.
[Java -> JSON] - isIgnorePublicFields() - Method in class org.kordamp.json.JsonConfig
-
Returns true if public fields of a bean will be ignored.
Default value is true.
[Java -> JSON] - isIgnoreTransientFields() - Method in class org.kordamp.json.JsonConfig
-
Returns true if transient fields of a bean will be ignored.
Default value is false.
[Java -> JSON] - isIgnoreUnreadableProperty() - Method in class org.kordamp.json.JsonConfig
- isInteger(Number) - Static method in class org.kordamp.json.util.JSONUtils
-
Finds out if n represents an Integer.
- isJavaIdentifier(String) - Static method in class org.kordamp.json.util.JSONUtils
-
Returns trus if str represents a valid Java identifier.
- isJavascriptCompliant() - Method in class org.kordamp.json.JsonConfig
-
Returns true if Javascript compatibility is turned on.
Default value is false.
[Java -> JSON] - isJsonKeyword(String, JsonConfig) - Static method in class org.kordamp.json.util.JSONUtils
- isLong(Number) - Static method in class org.kordamp.json.util.JSONUtils
-
Finds out if n represents a Long.
- isNamespaceLenient() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns whether this serializer is tolerant to namespaces without URIs or not.
- isNull(Object) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if the obj is a javaScript null.
- isNullObject() - Method in class org.kordamp.json.JSONObject
-
Returs if this object is a null JSONObject.
- isNullObject(Element) - Method in class org.kordamp.json.xml.XMLSerializer
- isNumber(Class) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if Class represents a primitive number or wrapper.
- isNumber(Object) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if obj is a primitive number or wrapper.
- isObject(Object) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if obj is not a boolean, number, string or array.
- isObject(Element, boolean) - Method in class org.kordamp.json.xml.XMLSerializer
- isParseJsonLiterals() - Method in class org.kordamp.json.JsonConfig
- isParseJsonLiterals() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns whether JSON literals are parsed as JSON or not.
- isRemoveNamespacePrefixFromElements() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns whether this serializer will remove namespace prefix from elements or not.
- isSkipJavaIdentifierTransformationInMapKeys() - Method in class org.kordamp.json.JsonConfig
-
Returns true if map keys will not be transformed.
Default value is false.
[JSON -> Java] - isSkipNamespaces() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns whether this serializer will skip adding namespace declarations to elements or not.
- isSkipWhitespace() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns whether this serializer will skip whitespace or not.
- isSortPropertyNames() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns whether this serializer will sort object properties by name or not.
- isString(Class) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if Class represents a String or a char
- isString(Object) - Static method in class org.kordamp.json.util.JSONUtils
-
Tests if obj is a String or a char
- isTransient(AnnotatedElement, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
- isTransientField(Field, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
- isTransientField(String, Class, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
- isTrimSpaces() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns whether this serializer will trim leading and trailing whitespace from values or not.
- isTypeHintsCompatibility() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns true if types hints will have a 'json_' prefix or not.
- isTypeHintsEnabled() - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns true if JSON types will be included as attributes.
- isValidJsonValue(Object) - Static method in class org.kordamp.json.processors.JsonVerifier
-
Verifies if value is a valid JSON value.
- isWritable() - Method in class org.kordamp.json.JSONObject.FieldProperty
- isWritable() - Method in class org.kordamp.json.JSONObject.MethodProperty
- isWritable() - Method in interface org.kordamp.json.JSONObject.Property
- isWritable() - Method in class org.kordamp.json.JSONObject.PropertyOnMap
- isWritable() - Method in class org.kordamp.json.JSONObject.PropertySetterStrategyDecorator
- iterator() - Method in class org.kordamp.json.JSONArray
-
Returns an Iterator for this JSONArray
J
- javaIdentifierTransformer - Variable in class org.kordamp.json.JsonConfig
- JavaIdentifierTransformer - Class in org.kordamp.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 org.kordamp.json.util.JavaIdentifierTransformer
- JavaIdentifierTransformer.CamelCaseJavaIdentifierTransformer - Class in org.kordamp.json.util
- JavaIdentifierTransformer.NoopJavaIdentifierTransformer - Class in org.kordamp.json.util
- JavaIdentifierTransformer.StrictJavaIdentifierTransformer - Class in org.kordamp.json.util
- JavaIdentifierTransformer.UnderscoreJavaIdentifierTransformer - Class in org.kordamp.json.util
- JavaIdentifierTransformer.WhiteSpaceJavaIdentifierTransformer - Class in org.kordamp.json.util
- javaPropertyFilter - Variable in class org.kordamp.json.JsonConfig
- javaPropertyNameProcessorMap - Variable in class org.kordamp.json.JsonConfig
- javaPropertyNameProcessorMatcher - Variable in class org.kordamp.json.JsonConfig
- javascriptCompliant - Variable in class org.kordamp.json.JsonConfig
- JdkRegexpMatcher - Class in org.kordamp.json.regexp
-
JDK 1.4+ RegexpMatcher implementation.
- JdkRegexpMatcher(String) - Constructor for class org.kordamp.json.regexp.JdkRegexpMatcher
- JdkRegexpMatcher(String, boolean) - Constructor for class org.kordamp.json.regexp.JdkRegexpMatcher
- join(String) - Method in class org.kordamp.json.JSONArray
-
Make a string from the contents of this JSONArray.
- join(String, boolean) - Method in class org.kordamp.json.JSONArray
-
Make a string from the contents of this JSONArray.
- join(JSONArray) - Static method in class org.kordamp.json.util.WebUtils
- JsDateJsonBeanProcessor - Class in org.kordamp.json.processors
-
Transforms a java.util.Date into a JSONObject ideal for JsDate conversion.
Example: - JsDateJsonBeanProcessor() - Constructor for class org.kordamp.json.processors.JsDateJsonBeanProcessor
- JsDateJsonValueProcessor - Class in org.kordamp.json.processors
-
Transforms a java.util.Date property into a JSONObject ideal for JsDate conversion
- JsDateJsonValueProcessor() - Constructor for class org.kordamp.json.processors.JsDateJsonValueProcessor
- JSON - Interface in org.kordamp.json
-
Marker interface, identifies a valid JSON value.
A JSON value may be aJSONObject
, aJSONArray
or aJSONNull
. - JSON_PREFIX - Static variable in class org.kordamp.json.xml.XMLSerializer
- JSONArray - Class in org.kordamp.json
-
A JSONArray is an ordered sequence of values.
- JSONArray() - Constructor for class org.kordamp.json.JSONArray
-
Construct an empty JSONArray.
- JSONArray.Impl - Class in org.kordamp.json
-
This class is considered private API.
- JSONArray.JSONArrayListIterator - Class in org.kordamp.json
- JSONArrayListIterator() - Constructor for class org.kordamp.json.JSONArray.JSONArrayListIterator
- JSONArrayListIterator(int) - Constructor for class org.kordamp.json.JSONArray.JSONArrayListIterator
- JSONAssert - Class in org.kordamp.json.test
-
Provides assertions on equality for JSON strings and JSON types.
- JSONAssert() - Constructor for class org.kordamp.json.test.JSONAssert
- JsonBeanProcessor - Interface in org.kordamp.json.processors
-
Base interface for custom serialization per Bean.
- jsonBeanProcessorMatcher - Variable in class org.kordamp.json.JsonConfig
- JsonBeanProcessorMatcher - Class in org.kordamp.json.processors
-
Base class for finding a matching JsonBeanProcessor.
DEFAULT - matches the target class with equals(). - JsonBeanProcessorMatcher() - Constructor for class org.kordamp.json.processors.JsonBeanProcessorMatcher
- JsonBeanProcessorMatcher.DefaultJsonBeanProcessorMatcher - Class in org.kordamp.json.processors
- JSONBuilder - Class in org.kordamp.json.util
-
JSONBuilder provides a quick and convenient way of producing JSON text.
- JSONBuilder(Writer) - Constructor for class org.kordamp.json.util.JSONBuilder
-
Make a fresh JSONBuilder.
- JsonConfig - Class in org.kordamp.json
-
Utility class that helps configuring the serialization process.
- JsonConfig() - Constructor for class org.kordamp.json.JsonConfig
- JsonEventListener - Interface in org.kordamp.json.util
-
Defines the contract to handle JsonEvents when building an object or array.
- JSONException - Exception Class in org.kordamp.json
-
The JSONException is thrown when things are amiss.
- JSONException() - Constructor for exception class org.kordamp.json.JSONException
- JSONException(String) - Constructor for exception class org.kordamp.json.JSONException
- JSONException(String, Throwable) - Constructor for exception class org.kordamp.json.JSONException
- JSONException(Throwable) - Constructor for exception class org.kordamp.json.JSONException
- JSONFunction - Class in org.kordamp.json
-
JSONFunction represents a javaScript function's text.
- JSONFunction(String) - Constructor for class org.kordamp.json.JSONFunction
-
Constructs a JSONFunction with no parameters.
- JSONFunction(String[], String) - Constructor for class org.kordamp.json.JSONFunction
-
Constructs a JSONFunction with parameters.
- JSONNull - Class in org.kordamp.json
-
JSONNull is equivalent to the value that JavaScript calls null, whilst Java's null is equivalent to the value that JavaScript calls undefined.
- JSONNull() - Constructor for class org.kordamp.json.JSONNull
- JSONObject - Class in org.kordamp.json
-
A JSONObject is an unordered collection of name/value pairs.
- JSONObject() - Constructor for class org.kordamp.json.JSONObject
-
Construct an empty JSONObject.
- JSONObject(boolean) - Constructor for class org.kordamp.json.JSONObject
-
Creates a JSONObject that is null.
- JSONObject.FieldProperty - Class in org.kordamp.json
- JSONObject.Impl - Class in org.kordamp.json
-
This class is considered private API.
- JSONObject.MethodProperty - Class in org.kordamp.json
- JSONObject.Property - Interface in org.kordamp.json
- JSONObject.PropertyOnMap - Class in org.kordamp.json
- JSONObject.PropertySetterStrategyDecorator - Class in org.kordamp.json
-
Uses
PropertySetStrategy
instead of the normal set method. - jsonPropertyFilter - Variable in class org.kordamp.json.JsonConfig
- jsonPropertyNameProcessorMap - Variable in class org.kordamp.json.JsonConfig
- jsonPropertyNameProcessorMatcher - Variable in class org.kordamp.json.JsonConfig
- JSONSerializer - Class in org.kordamp.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 org.kordamp.json.JSONSerializer
- JSONString - Interface in org.kordamp.json
-
The
JSONString
interface allows atoJSONString()
method so that a class can change the behavior ofJSONObject.toString()
,JSONArray.toString()
, andJSONWriter.value(
Object)
. - JSONStringer - Class in org.kordamp.json.util
-
JSONStringer provides a quick and convenient way of producing JSON text.
- JSONStringer() - Constructor for class org.kordamp.json.util.JSONStringer
-
Make a fresh JSONStringer.
- JSONTokener - Class in org.kordamp.json.util
-
A JSONTokener takes a source string and extracts characters and tokens from it.
- JSONTokener(String) - Constructor for class org.kordamp.json.util.JSONTokener
-
Construct a JSONTokener from a string.
- JSONTypes - Interface in org.kordamp.json.xml
- JSONUtils - Class in org.kordamp.json.util
-
Provides useful methods on java objects and JSON values.
- JSONUtils() - Constructor for class org.kordamp.json.util.JSONUtils
- JsonValueProcessor - Interface in org.kordamp.json.processors
-
Base interface for custom serialization per property.
- jsonValueProcessorMatcher - Variable in class org.kordamp.json.JsonConfig
- JsonValueProcessorMatcher - Class in org.kordamp.json.processors
-
Base class for finding a matching JsonValueProcessor.
DEFAULT - matches the target class with equals(). - JsonValueProcessorMatcher() - Constructor for class org.kordamp.json.processors.JsonValueProcessorMatcher
- JsonValueProcessorMatcher.DefaultJsonValueProcessorMatcher - Class in org.kordamp.json.processors
- JsonVerifier - Class in org.kordamp.json.processors
-
Verifies if a value is a valid JSON value.
- JsonVerifier() - Constructor for class org.kordamp.json.processors.JsonVerifier
K
- keepArrayName - Variable in class org.kordamp.json.xml.XMLSerializer
-
flag for if array name should be kept in JSON data
- keepCData - Variable in class org.kordamp.json.xml.XMLSerializer
-
flag for if text with CDATA should keep the information in the value or not
- key(String) - Method in class org.kordamp.json.util.JSONBuilder
-
Append a key.
- keyMap - Variable in class org.kordamp.json.JsonConfig
- keyMatches(Object, Object, String, Object) - Method in class org.kordamp.json.filters.MappingPropertyFilter
- keys() - Method in class org.kordamp.json.JSONObject
-
Get an enumeration of the keys of the JSONObject.
- keySet() - Method in class org.kordamp.json.JSONObject
- keySet(JSONObject) - Method in interface org.kordamp.json.AbstractJSON.WritingVisitor
L
- lastIndex - Variable in class org.kordamp.json.JSONArray.JSONArrayListIterator
- lastIndexOf(Object) - Method in class org.kordamp.json.JSONArray
- length() - Method in class org.kordamp.json.util.JSONTokener
- LENIENT - Static variable in class org.kordamp.json.util.CycleDetectionStrategy
-
Returns empty array and null object
- LenientCycleDetectionStrategy() - Constructor for class org.kordamp.json.util.CycleDetectionStrategy.LenientCycleDetectionStrategy
- LenientNoRefCycleDetectionStrategy() - Constructor for class org.kordamp.json.util.CycleDetectionStrategy.LenientNoRefCycleDetectionStrategy
- listIterator() - Method in class org.kordamp.json.JSONArray
- listIterator(int) - Method in class org.kordamp.json.JSONArray
- LOG - Static variable in class org.kordamp.json.AbstractJSON
- LOG - Static variable in class org.kordamp.json.JSONObject
- LOG - Static variable in class org.kordamp.json.xml.XMLSerializer
M
- mappedPropertyNames - Variable in class org.kordamp.json.xml.XMLSerializer
-
Map JSON property names to XML elements
- MappingPropertyFilter - Class in org.kordamp.json.filters
- MappingPropertyFilter() - Constructor for class org.kordamp.json.filters.MappingPropertyFilter
- MappingPropertyFilter(Map) - Constructor for class org.kordamp.json.filters.MappingPropertyFilter
- matches(String) - Method in class org.kordamp.json.regexp.JdkRegexpMatcher
- matches(String) - Method in interface org.kordamp.json.regexp.RegexpMatcher
-
Returns true is the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation. - matches(String) - Method in class org.kordamp.json.util.JSONTokener
- MAXDEPTH - Static variable in class org.kordamp.json.util.JSONBuilder
- mayBeJSON(String) - Static method in class org.kordamp.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 "}" - MethodProperty(PropertyDescriptor) - Constructor for class org.kordamp.json.JSONObject.MethodProperty
- missingAndUnexpectedNames(JSONObject, JSONObject) - Static method in class org.kordamp.json.test.JSONAssert
- missingExpectedNames(JSONObject, JSONObject) - Static method in class org.kordamp.json.test.JSONAssert
- mode - Variable in class org.kordamp.json.util.JSONBuilder
-
The current mode.
- MODE_LIST - Static variable in class org.kordamp.json.JsonConfig
- MODE_OBJECT_ARRAY - Static variable in class org.kordamp.json.JsonConfig
- MODE_SET - Static variable in class org.kordamp.json.JsonConfig
- more() - Method in class org.kordamp.json.util.JSONTokener
-
Determine if the source string still contains characters that next() can consume.
- morph(Object) - Method in class org.kordamp.json.util.EnumMorpher
- morpherRegistry - Static variable in class org.kordamp.json.util.JSONUtils
- morphPropertyValue(String, Object, Class, Class) - Static method in class org.kordamp.json.JSONObject.Impl
- morphsTo() - Method in class org.kordamp.json.util.EnumMorpher
- myIndex - Variable in class org.kordamp.json.util.JSONTokener
-
The index of the next character.
- mySource - Variable in class org.kordamp.json.util.JSONTokener
-
The source string being tokenized.
N
- name - Variable in class org.kordamp.json.JSONObject.PropertyOnMap
- name() - Method in class org.kordamp.json.JSONObject.FieldProperty
- name() - Method in class org.kordamp.json.JSONObject.MethodProperty
- name() - Method in interface org.kordamp.json.JSONObject.Property
- name() - Method in class org.kordamp.json.JSONObject.PropertyOnMap
- name() - Method in class org.kordamp.json.JSONObject.PropertySetterStrategyDecorator
- names() - Method in class org.kordamp.json.JSONObject
-
Produce a JSONArray containing the names of the elements of this JSONObject.
- names(JsonConfig) - Method in class org.kordamp.json.JSONObject
-
Produce a JSONArray containing the names of the elements of this JSONObject.
- namespaceLenient - Variable in class org.kordamp.json.xml.XMLSerializer
-
flag to be tolerant for incomplete namespace prefixes
- namespacesPerElement - Variable in class org.kordamp.json.xml.XMLSerializer
-
Map of namespaces per element
- newBeanInstanceStrategy - Variable in class org.kordamp.json.JsonConfig
- NewBeanInstanceStrategy - Class in org.kordamp.json.util
-
Base class for creating Bean instances.
DEFAULT - calls Class.newInstance(). - NewBeanInstanceStrategy() - Constructor for class org.kordamp.json.util.NewBeanInstanceStrategy
- NewBeanInstanceStrategy.DefaultNewBeanInstanceStrategy - Class in org.kordamp.json.util
- newDynaBean(JSONObject) - Static method in class org.kordamp.json.util.JSONUtils
-
Creates a new MorphDynaBean from a JSONObject.
- newDynaBean(JSONObject, JsonConfig) - Static method in class org.kordamp.json.util.JSONUtils
-
Creates a new MorphDynaBean from a JSONObject.
- newElement(String) - Method in class org.kordamp.json.xml.XMLSerializer
- newInstance(Class, JSONObject) - Method in class org.kordamp.json.util.NewBeanInstanceStrategy.DefaultNewBeanInstanceStrategy
- newInstance(Class, JSONObject) - Method in class org.kordamp.json.util.NewBeanInstanceStrategy
-
Creates a new instance.
- next() - Method in class org.kordamp.json.JSONArray.JSONArrayListIterator
- next() - Method in class org.kordamp.json.util.JSONTokener
-
Get the next character in the source string.
- next(char) - Method in class org.kordamp.json.util.JSONTokener
-
Consume the next character, and check that it matches a specified character.
- next(int) - Method in class org.kordamp.json.util.JSONTokener
-
Get the next n characters.
- nextClean() - Method in class org.kordamp.json.util.JSONTokener
-
Get the next char in the string, skipping whitespace and comments (slashslash, slashstar, and hash).
- nextIndex() - Method in class org.kordamp.json.JSONArray.JSONArrayListIterator
- nextString(char) - Method in class org.kordamp.json.util.JSONTokener
-
Return the characters up to the next close quote character.
- nextTo(char) - Method in class org.kordamp.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 org.kordamp.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 org.kordamp.json.util.JSONTokener
-
Get the next value.
- nextValue(JsonConfig) - Method in class org.kordamp.json.util.JSONTokener
-
Get the next value.
- NOOP - Static variable in class org.kordamp.json.util.JavaIdentifierTransformer
-
Noop transformer '@invalid' => '@invalid'
- NoopJavaIdentifierTransformer() - Constructor for class org.kordamp.json.util.JavaIdentifierTransformer.NoopJavaIdentifierTransformer
- NOPROP - Static variable in class org.kordamp.json.util.CycleDetectionStrategy
-
Returns a special object (IGNORE_PROPERTY_OBJ) that indicates the entire property should be ignored
- NORMAL - Static variable in class org.kordamp.json.AbstractJSON
- NotPropertyFilter - Class in org.kordamp.json.filters
- NotPropertyFilter(PropertyFilter) - Constructor for class org.kordamp.json.filters.NotPropertyFilter
- nullObject - Variable in class org.kordamp.json.JSONObject
-
identifies this object as null
- NUMBER - Static variable in interface org.kordamp.json.xml.JSONTypes
- numberToString(Number) - Static method in class org.kordamp.json.util.JSONUtils
-
Produce a string from a Number.
O
- object() - Method in class org.kordamp.json.util.JSONBuilder
-
Begin appending a new object.
- OBJECT - Static variable in interface org.kordamp.json.xml.JSONTypes
- objectName - Variable in class org.kordamp.json.xml.XMLSerializer
-
the name for an JSONObject Element
- on(Object, Writer) - Method in interface org.kordamp.json.AbstractJSON.WritingVisitor
- on(JSON, Writer) - Method in interface org.kordamp.json.AbstractJSON.WritingVisitor
- onArrayEnd() - Method in interface org.kordamp.json.util.JsonEventListener
-
Ttriggered when reaching the end of an array.
- onArrayStart() - Method in interface org.kordamp.json.util.JsonEventListener
-
triggered when the start of an array is encountered.
- onElementAdded(int, Object) - Method in interface org.kordamp.json.util.JsonEventListener
-
Triggered when an element has been added to the current array.
- onError(JSONException) - Method in interface org.kordamp.json.util.JsonEventListener
-
Triggered when an exception is thrown.
- onObjectEnd() - Method in interface org.kordamp.json.util.JsonEventListener
-
triggered when reaching the end of an object.
- onObjectStart() - Method in interface org.kordamp.json.util.JsonEventListener
-
Triggered when the start of an object is encountered.
- onPropertySet(String, Object, boolean) - Method in interface org.kordamp.json.util.JsonEventListener
-
Triggered when a property is set on an object
- onWarning(String) - Method in interface org.kordamp.json.util.JsonEventListener
-
Triggered when a warning is encountered.
- opt(int) - Method in class org.kordamp.json.JSONArray
-
Get the optional object value associated with an index.
- opt(String) - Method in class org.kordamp.json.JSONObject
-
Get an optional value associated with a key.
- optBoolean(int) - Method in class org.kordamp.json.JSONArray
-
Get the optional boolean value associated with an index.
- optBoolean(int, boolean) - Method in class org.kordamp.json.JSONArray
-
Get the optional boolean value associated with an index.
- optBoolean(String) - Method in class org.kordamp.json.JSONObject
-
Get an optional boolean associated with a key.
- optBoolean(String, boolean) - Method in class org.kordamp.json.JSONObject
-
Get an optional boolean associated with a key.
- optDouble(int) - Method in class org.kordamp.json.JSONArray
-
Get the optional double value associated with an index.
- optDouble(int, double) - Method in class org.kordamp.json.JSONArray
-
Get the optional double value associated with an index.
- optDouble(String) - Method in class org.kordamp.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 org.kordamp.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 org.kordamp.json.JSONArray
-
Get the optional int value associated with an index.
- optInt(int, int) - Method in class org.kordamp.json.JSONArray
-
Get the optional int value associated with an index.
- optInt(String) - Method in class org.kordamp.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 org.kordamp.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 org.kordamp.json.JSONArray
-
Get the optional JSONArray associated with an index.
- optJSONArray(String) - Method in class org.kordamp.json.JSONObject
-
Get an optional JSONArray associated with a key.
- optJSONObject(int) - Method in class org.kordamp.json.JSONArray
-
Get the optional JSONObject associated with an index.
- optJSONObject(String) - Method in class org.kordamp.json.JSONObject
-
Get an optional JSONObject associated with a key.
- optLong(int) - Method in class org.kordamp.json.JSONArray
-
Get the optional long value associated with an index.
- optLong(int, long) - Method in class org.kordamp.json.JSONArray
-
Get the optional long value associated with an index.
- optLong(String) - Method in class org.kordamp.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 org.kordamp.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 org.kordamp.json.JSONArray
-
Get the optional string value associated with an index.
- optString(int, String) - Method in class org.kordamp.json.JSONArray
-
Get the optional string associated with an index.
- optString(String) - Method in class org.kordamp.json.JSONObject
-
Get an optional string associated with a key.
- optString(String, String) - Method in class org.kordamp.json.JSONObject
-
Get an optional string associated with a key.
- org.kordamp.json - package org.kordamp.json
-
The core of the library
- org.kordamp.json.filters - package org.kordamp.json.filters
-
Support for custom serialization
- org.kordamp.json.processors - package org.kordamp.json.processors
-
Support for custom serialization
- org.kordamp.json.regexp - package org.kordamp.json.regexp
-
Regexp utilities
- org.kordamp.json.test - package org.kordamp.json.test
-
Testing utilities
- org.kordamp.json.util - package org.kordamp.json.util
-
Miscelaneous utilities
- org.kordamp.json.xml - package org.kordamp.json.xml
-
Utilities for trasforming JSON to XML and back.
- OrPropertyFilter - Class in org.kordamp.json.filters
- OrPropertyFilter(PropertyFilter, PropertyFilter) - Constructor for class org.kordamp.json.filters.OrPropertyFilter
P
- params - Variable in class org.kordamp.json.JSONFunction
-
the parameters of this function
- parse(String) - Static method in class org.kordamp.json.JSONFunction
-
Constructs a JSONFunction from a text representation
- parseJsonLiterals - Variable in class org.kordamp.json.JsonConfig
- parseJsonLiterals - Variable in class org.kordamp.json.xml.XMLSerializer
-
should JSON literals be parsed or not
- pattern - Variable in class org.kordamp.json.regexp.JdkRegexpMatcher
- pd - Variable in class org.kordamp.json.JSONObject.MethodProperty
- peek() - Method in class org.kordamp.json.util.JSONTokener
-
Look at the next character in the source string.
- performAutoExpansion - Variable in class org.kordamp.json.xml.XMLSerializer
-
flag for performing auto-expansion of arrays if
- pop(char) - Method in class org.kordamp.json.util.JSONBuilder
-
Pop an array or object scope.
- prefix - Variable in class org.kordamp.json.xml.XMLSerializer.CustomElement
- previous() - Method in class org.kordamp.json.JSONArray.JSONArrayListIterator
- previousIndex() - Method in class org.kordamp.json.JSONArray.JSONArrayListIterator
- process(Object, JsonConfig) - Method in class org.kordamp.json.processors.JsDateJsonValueProcessor
- processArrayDimensions(JSONArray, List, int) - Static method in class org.kordamp.json.JSONArray.Impl
- processArrayElement(Element, String) - Method in class org.kordamp.json.xml.XMLSerializer
- processArrayValue(Object, JsonConfig) - Method in class org.kordamp.json.processors.JsDateJsonValueProcessor
- processArrayValue(Object, JsonConfig) - Method in interface org.kordamp.json.processors.JsonValueProcessor
-
Processes the value an returns a suitable JSON value.
- processBean(Object, JsonConfig) - Method in class org.kordamp.json.processors.JsDateJsonBeanProcessor
-
Processes the input bean into a compatible JsDate.
- processBean(Object, JsonConfig) - Method in interface org.kordamp.json.processors.JsonBeanProcessor
-
Processes the bean an returns a suitable JSONObject representation.
- processElement(Element, String) - Method in class org.kordamp.json.xml.XMLSerializer
- processJSONArray(JSONArray, Element, String[]) - Method in class org.kordamp.json.xml.XMLSerializer
- processJSONObject(JSONObject, Element, String[], boolean) - Method in class org.kordamp.json.xml.XMLSerializer
- processJSONValue(Object, Element, Element, String[]) - Method in class org.kordamp.json.xml.XMLSerializer
- processObjectElement(Element, String) - Method in class org.kordamp.json.xml.XMLSerializer
- processObjectValue(String, Object, JsonConfig) - Method in class org.kordamp.json.processors.JsDateJsonValueProcessor
- processObjectValue(String, Object, JsonConfig) - Method in interface org.kordamp.json.processors.JsonValueProcessor
-
Processes the value an returns a suitable JSON value.
- processor - Variable in class org.kordamp.json.processors.JsDateJsonValueProcessor
- processPropertyName(Class, String) - Method in interface org.kordamp.json.processors.PropertyNameProcessor
-
Processes the property name.
- processValue(Object, JsonConfig) - Method in class org.kordamp.json.JSONArray
- processValue(Object, JsonConfig) - Method in class org.kordamp.json.JSONObject
- processValue(String, Object, JsonConfig) - Method in class org.kordamp.json.JSONObject
- properties - Variable in class org.kordamp.json.JSONObject
-
The Map where the JSONObject's properties are kept.
- propertyExclusionClassMatcher - Variable in class org.kordamp.json.JsonConfig
- PropertyExclusionClassMatcher - Class in org.kordamp.json.util
-
Base class for finding a matching property exlucsion.
DEFAULT - matches the target class with equals(). - PropertyExclusionClassMatcher() - Constructor for class org.kordamp.json.util.PropertyExclusionClassMatcher
- PropertyExclusionClassMatcher.DefaultPropertyExclusionClassMatcher - Class in org.kordamp.json.util
- PropertyFilter - Interface in org.kordamp.json.util
- PropertyNameProcessor - Interface in org.kordamp.json.processors
-
Base interface for mutating property names of a Bean.
- PropertyNameProcessorMatcher - Class in org.kordamp.json.processors
-
Base class for finding a matching PropertyNameProcessor.
DEFAULT - matches the target class with equals(). - PropertyNameProcessorMatcher() - Constructor for class org.kordamp.json.processors.PropertyNameProcessorMatcher
- PropertyNameProcessorMatcher.DefaultPropertyNameProcessorMatcher - Class in org.kordamp.json.processors
- PropertyOnMap(String) - Constructor for class org.kordamp.json.JSONObject.PropertyOnMap
- propertySetStrategy - Variable in class org.kordamp.json.JsonConfig
- PropertySetStrategy - Class in org.kordamp.json.util
-
Defines a custom setter to be used when setting object values.
Specify with JsonConfig.setJsonPropertySetter(). - PropertySetStrategy() - Constructor for class org.kordamp.json.util.PropertySetStrategy
- PropertySetStrategy.DefaultPropertySetStrategy - Class in org.kordamp.json.util
- PropertySetterStrategyDecorator(JSONObject.Property, PropertySetStrategy) - Constructor for class org.kordamp.json.JSONObject.PropertySetterStrategyDecorator
- protect(String) - Method in class org.kordamp.json.util.WebHijackPreventionStrategy.CommentWebHijackPreventionStrategy
- protect(String) - Method in class org.kordamp.json.util.WebHijackPreventionStrategy.InfiniteLoopWebHijackPreventionStrategy
- protect(String) - Method in class org.kordamp.json.util.WebHijackPreventionStrategy
-
Transforms the input with the desired strategy.
- protect(JSON) - Static method in class org.kordamp.json.util.WebUtils
-
Transforms the input Json string using the configured WebHijackPreventionStrategy.
- protect(JSON, boolean) - Static method in class org.kordamp.json.util.WebUtils
-
Transforms the input Json string using the configured WebHijackPreventionStrategy.
- push(char) - Method in class org.kordamp.json.util.JSONBuilder
-
Push an array or object scope.
- put(String, Object) - Method in class org.kordamp.json.JSONObject
- putAll(Map) - Method in class org.kordamp.json.JSONObject
- putAll(Map, JsonConfig) - Method in class org.kordamp.json.JSONObject
Q
- quote(String) - Static method in class org.kordamp.json.util.JSONUtils
-
Produce a string in double quotes with backslash sequences in all the right places.
- quote(String) - Static method in class org.kordamp.json.util.WebUtils
- quoteCanonical(String) - Static method in class org.kordamp.json.util.JSONUtils
-
Minimal escape form.
R
- read(String) - Method in class org.kordamp.json.xml.XMLSerializer
-
Creates a JSON value from a XML string.
- readFromFile(File) - Method in class org.kordamp.json.xml.XMLSerializer
-
Creates a JSON value from a File.
- readFromFile(String) - Method in class org.kordamp.json.xml.XMLSerializer
-
Creates a JSON value from a File.
- readFromStream(InputStream) - Method in class org.kordamp.json.xml.XMLSerializer
-
Creates a JSON value from an input stream.
- RegexpMatcher - Interface in org.kordamp.json.regexp
-
Abstraction for regexp handling.
- RegexpUtils - Class in org.kordamp.json.regexp
-
Convenience utility for working withRegexpMatcher.
- RegexpUtils() - Constructor for class org.kordamp.json.regexp.RegexpUtils
- registerDefaultValueProcessor(Class, DefaultValueProcessor) - Method in class org.kordamp.json.JsonConfig
-
Registers a DefaultValueProcessor.
[Java -> JSON] - registerJavaPropertyNameProcessor(Class, PropertyNameProcessor) - Method in class org.kordamp.json.JsonConfig
-
Registers a PropertyNameProcessor.
[JSON -> Java] - registerJsonBeanProcessor(Class, JsonBeanProcessor) - Method in class org.kordamp.json.JsonConfig
-
Registers a JsonBeanProcessor.
[Java -> JSON] - registerJsonPropertyNameProcessor(Class, PropertyNameProcessor) - Method in class org.kordamp.json.JsonConfig
-
Registers a PropertyNameProcessor.
[Java -> JSON] - registerJsonValueProcessor(Class, Class, JsonValueProcessor) - Method in class org.kordamp.json.JsonConfig
-
Registers a JsonValueProcessor.
[Java -> JSON] - registerJsonValueProcessor(Class, String, JsonValueProcessor) - Method in class org.kordamp.json.JsonConfig
-
Registers a JsonValueProcessor.
[Java -> JSON] - registerJsonValueProcessor(Class, JsonValueProcessor) - Method in class org.kordamp.json.JsonConfig
-
Registers a JsonValueProcessor.
[Java -> JSON] - registerJsonValueProcessor(String, JsonValueProcessor) - Method in class org.kordamp.json.JsonConfig
-
Registers a JsonValueProcessor.
[Java -> JSON] - registerPropertyExclusion(Class, String) - Method in class org.kordamp.json.JsonConfig
-
Registers a exclusion for a target class.
[Java -> JSON] - registerPropertyExclusions(Class, String[]) - Method in class org.kordamp.json.JsonConfig
-
Registers exclusions for a target class.
[Java -> JSON] - registerPropertyNameProcessor(Class, PropertyNameProcessor) - Method in class org.kordamp.json.JsonConfig
-
Deprecated.use registerJavaPropertyNameProcessor() instead
- remove() - Method in class org.kordamp.json.JSONArray.JSONArrayListIterator
- remove(int) - Method in class org.kordamp.json.JSONArray
- remove(Object) - Method in class org.kordamp.json.JSONArray
- remove(Object) - Method in class org.kordamp.json.JSONObject
- remove(String) - Method in class org.kordamp.json.JSONObject
-
Remove a name and its value, if present.
- removeAll(Collection) - Method in class org.kordamp.json.JSONArray
- removeAll(Collection, JsonConfig) - Method in class org.kordamp.json.JSONArray
- removeIgnoreFieldAnnotation(Class) - Method in class org.kordamp.json.JsonConfig
-
Removes an annotation that marks a field to be skipped when building.
[Java -> JSON] - removeIgnoreFieldAnnotation(String) - Method in class org.kordamp.json.JsonConfig
-
Adds an annotation that marks a field to be skipped when building.
[Java -> JSON] - removeInstance(Object) - Static method in class org.kordamp.json.AbstractJSON
-
Removes a reference for cycle detection check.
- removeJsonEventListener(JsonEventListener) - Method in class org.kordamp.json.JsonConfig
-
Removes a listener for JSON events.
[Java -> JSON] - removeNamespace(String) - Method in class org.kordamp.json.xml.XMLSerializer
-
Removes a namespace from the root element.
- removeNamespace(String, String) - Method in class org.kordamp.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. - removeNamespacePrefix(String) - Method in class org.kordamp.json.xml.XMLSerializer
- removeNamespacePrefixFromElements - Variable in class org.kordamp.json.xml.XMLSerializer
-
flag for trimming namespace prefix from element name
- removePropertyFilter(Object) - Method in class org.kordamp.json.filters.MappingPropertyFilter
- removePropertyFilter(PropertyFilter) - Method in class org.kordamp.json.filters.CompositePropertyFilter
- reset() - Method in class org.kordamp.json.JsonConfig
-
Resets all values to its default state.
- reset() - Method in class org.kordamp.json.util.JSONTokener
- resolveClass(Map, String, String, Class) - Static method in class org.kordamp.json.JSONObject.Impl
- retainAll(Collection) - Method in class org.kordamp.json.JSONArray
- retainAll(Collection, JsonConfig) - Method in class org.kordamp.json.JSONArray
- rootClass - Variable in class org.kordamp.json.JsonConfig
-
Root class used when converting to an specific bean
- rootName - Variable in class org.kordamp.json.xml.XMLSerializer
-
the name for the root Element
- rootNamespace - Variable in class org.kordamp.json.xml.XMLSerializer
-
Map of namespaces for root element
S
- serialVersionUID - Static variable in class org.kordamp.json.JSONArray
- serialVersionUID - Static variable in exception class org.kordamp.json.JSONException
- serialVersionUID - Static variable in class org.kordamp.json.JSONFunction
- serialVersionUID - Static variable in class org.kordamp.json.JSONNull
- serialVersionUID - Static variable in class org.kordamp.json.JSONObject
- set(int, Object) - Method in class org.kordamp.json.JSONArray
- set(int, Object, JsonConfig) - Method in class org.kordamp.json.JSONArray
- set(Object) - Method in class org.kordamp.json.JSONArray.JSONArrayListIterator
- set(Object, Object, JsonConfig) - Method in class org.kordamp.json.JSONObject.FieldProperty
- set(Object, Object, JsonConfig) - Method in class org.kordamp.json.JSONObject.MethodProperty
- set(Object, Object, JsonConfig) - Method in interface org.kordamp.json.JSONObject.Property
- set(Object, Object, JsonConfig) - Method in class org.kordamp.json.JSONObject.PropertyOnMap
- set(Object, Object, JsonConfig) - Method in class org.kordamp.json.JSONObject.PropertySetterStrategyDecorator
- setAllowNonStringKeys(boolean) - Method in class org.kordamp.json.JsonConfig
-
Sets if non-String keys are allowed on JSONObject.
[Java -> JSON] - setArrayMode(int) - Method in class org.kordamp.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] - setArrayName(String) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets the name used for JSONArray.
Default is 'a'. - setClassMap(Map) - Method in class org.kordamp.json.JsonConfig
-
Sets the current attribute/Class Map
[JSON -> Java] - setCollectionType(Class) - Method in class org.kordamp.json.JsonConfig
-
Sets the current collection type used for collection transformations.
[JSON -> Java] - setCycleDetectionStrategy(CycleDetectionStrategy) - Method in class org.kordamp.json.JsonConfig
-
Sets a CycleDetectionStrategy to use.
Will set default value (CycleDetectionStrategy.STRICT) if null.
[Java -> JSON] - setDefaultValueProcessorMatcher(DefaultValueProcessorMatcher) - Method in class org.kordamp.json.JsonConfig
-
Sets a DefaultValueProcessorMatcher to use.
Will set default value (DefaultValueProcessorMatcher.DEFAULT) if null.
[Java -> JSON] - setElementName(String) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets the name used for JSONArray elements.
Default is 'e'. - setEnclosedType(Class) - Method in class org.kordamp.json.JsonConfig
-
Sets the current enclosed type for generic collection transformations.
[JSON -> Java] - setEscapeLowerChars(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets whether this serializer should escape characters lower than ' ' in texts.
- setExcludes(String[]) - Method in class org.kordamp.json.JsonConfig
-
Sets the excludes to use.
Will set default value ([]) if null.
[Java -> JSON] - setExpandableProperties(String[]) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets the list of properties to be expanded from child to parent.
- setExpandElements(boolean) - Method in class org.kordamp.json.JSONArray
- setForcedArrayElements(Collection<String>) - Method in class org.kordamp.json.xml.XMLSerializer
-
Defines the set of XML elements that force their children to be treated as array elements.
- setForceTopLevelObject(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
- setHandleJettisonEmptyElement(boolean) - Method in class org.kordamp.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 org.kordamp.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 org.kordamp.json.JsonConfig
-
Sets if default excludes would be skipped when building.
[Java -> JSON] - setIgnoreJPATransient(boolean) - Method in class org.kordamp.json.JsonConfig
-
Sets if JPA Transient annotated methods would be skipped when building.
[Java -> JSON] - setIgnorePublicFields(boolean) - Method in class org.kordamp.json.JsonConfig
-
Sets if public fields would be skipped when building.
[Java -> JSON] - setIgnoreTransientFields(boolean) - Method in class org.kordamp.json.JsonConfig
-
Sets if transient fields would be skipped when building.
[Java -> JSON] - setIgnoreUnreadableProperty(boolean) - Method in class org.kordamp.json.JsonConfig
-
If true, properties found in JSON that have no corresponding Java setter/field/etc will not raise an exception.
- setInternal(String, Object, JsonConfig) - Method in class org.kordamp.json.JSONObject
-
Put a key/value pair in the JSONObject.
- setJavaIdentifierTransformer(JavaIdentifierTransformer) - Method in class org.kordamp.json.JsonConfig
-
Sets the JavaIdentifierTransformer to use.
Will set default value (JavaIdentifierTransformer.NOOP) if null.
[JSON -> Java] - setJavaPropertyFilter(PropertyFilter) - Method in class org.kordamp.json.JsonConfig
-
Sets a property filter used when serializing to Java.
[JSON -> Java] - setJavaPropertyNameProcessorMatcher(PropertyNameProcessorMatcher) - Method in class org.kordamp.json.JsonConfig
-
Sets a PropertyNameProcessorMatcher to use.
Will set default value (PropertyNameProcessorMatcher.DEFAULT) if null.
[JSON -> Java] - setJavascriptCompliant(boolean) - Method in class org.kordamp.json.JsonConfig
-
Sets if Javascript compatibility is enabled when building.
[Java -> JSON] - setJsonBeanProcessorMatcher(JsonBeanProcessorMatcher) - Method in class org.kordamp.json.JsonConfig
-
Sets a JsonBeanProcessorMatcher to use.
Will set default value (JsonBeanProcessorMatcher.DEFAULT) if null.
[Java -> JSON] - setJsonPropertyFilter(PropertyFilter) - Method in class org.kordamp.json.JsonConfig
-
Sets a property filter used when serializing to JSON.
[Java -> JSON] - setJsonPropertyNameProcessorMatcher(PropertyNameProcessorMatcher) - Method in class org.kordamp.json.JsonConfig
-
Sets a PropertyNameProcessorMatcher to use.
Will set default value (PropertyNameProcessorMatcher.DEFAULT) if null.
[Java -> JSON] - setJsonValueProcessorMatcher(JsonValueProcessorMatcher) - Method in class org.kordamp.json.JsonConfig
-
Sets a JsonValueProcessorMatcher to use.
Will set default value (JsonValueProcessorMatcher.DEFAULT) if null.
[Java -> JSON] - setKeepArrayName(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets whether this serializer should keep the XML element being an array.
- setKeepCData(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets whether this serializer should keep the CDATA information in the value or not.
- setMappedPropertyNames(Map<String, String>) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets mappings between JSON properties to XML elements.
- setNamespace(String, String) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets the namespace declaration to the root element.
Any previous values are discarded. - setNamespace(String, String, String) - Method in class org.kordamp.json.xml.XMLSerializer
-
Adds a namespace declaration to an element.
Any previous values are discarded. - setNamespaceLenient(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets whether this serializer is tolerant to namespaces without URIs or not.
- setNewBeanInstanceStrategy(NewBeanInstanceStrategy) - Method in class org.kordamp.json.JsonConfig
-
Sets the NewBeanInstanceStrategy to use.
Will set default value (NewBeanInstanceStrategy.DEFAULT) if null.
[JSON -> Java] - setObjectName(String) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets the name used for JSONObject.
Default is 'o'. - setOrAccumulate(JSONObject, String, Object) - Method in class org.kordamp.json.xml.XMLSerializer
- setParseJsonLiterals(boolean) - Method in class org.kordamp.json.JsonConfig
- setParseJsonLiterals(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets whether JSON literals are parsed as JSON or not.
- setPerformAutoExpansion(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets whether this serializer should perform automatic expansion of array elements or not.
- setProperty(Object, String, Object) - Method in class org.kordamp.json.util.PropertySetStrategy.DefaultPropertySetStrategy
- setProperty(Object, String, Object) - Method in class org.kordamp.json.util.PropertySetStrategy
- setProperty(Object, String, Object, JsonConfig) - Static method in class org.kordamp.json.JSONObject.Impl
-
Sets a property on the target bean.
Bean may be a Map or a POJO. - setProperty(Object, String, Object, JsonConfig) - Method in class org.kordamp.json.util.PropertySetStrategy.DefaultPropertySetStrategy
- setProperty(Object, String, Object, JsonConfig) - Method in class org.kordamp.json.util.PropertySetStrategy
- setPropertyExclusionClassMatcher(PropertyExclusionClassMatcher) - Method in class org.kordamp.json.JsonConfig
-
Sets a PropertyExclusionClassMatcher to use.
Will set default value (PropertyExclusionClassMatcher.DEFAULT) if null.
[Java -> JSON] - setPropertyNameProcessorMatcher(PropertyNameProcessorMatcher) - Method in class org.kordamp.json.JsonConfig
-
Deprecated.use setJavaPropertyNameProcessorMatcher() instead
- setPropertySetStrategy(PropertySetStrategy) - Method in class org.kordamp.json.JsonConfig
-
Sets a PropertySetStrategy to use.
Will set default value (PropertySetStrategy.DEFAULT) if null.
[JSON -> Java] - setRemoveNamespacePrefixFromElements(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets if this serializer will remove namespace prefix from elements when reading.
- setRootClass(Class) - Method in class org.kordamp.json.JsonConfig
-
Sets the current root Class.
[JSON -> Java] - setRootName(String) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets the name used for the root element.
- setSkipJavaIdentifierTransformationInMapKeys(boolean) - Method in class org.kordamp.json.JsonConfig
-
Sets if property name as JavaIndetifier transformations would be skipped.
[JSON -> Java] - setSkipNamespaces(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets if this serializer will skip adding namespace declarations to elements when reading.
- setSkipWhitespace(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets if this serializer will skip whitespace when reading.
- setSortPropertyNames(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Returns whether this serializer will sort object properties by name or not.
- setTrimSpaces(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets if this serializer will trim leading and trailing whitespace from values when reading.
- setTypeHintsCompatibility(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets whether types hints will have a 'json_' prefix or not.
- setTypeHintsEnabled(boolean) - Method in class org.kordamp.json.xml.XMLSerializer
-
Sets whether JSON types will be included as attributes.
- setValue(JSONArray, Element, String) - Method in class org.kordamp.json.xml.XMLSerializer
- setValue(JSONObject, String, Object, Class, JsonConfig, boolean) - Static method in class org.kordamp.json.JSONObject.Impl
- setValue(JSONObject, Element, String) - Method in class org.kordamp.json.xml.XMLSerializer
- setWebHijackPreventionStrategy(WebHijackPreventionStrategy) - Static method in class org.kordamp.json.util.WebUtils
-
Sets a WebHijackPreventionStrategy.
Will use default value (WebHijackPreventionStrategy.INFINITE_LOOP) if null. - shaveOffNonJavaIdentifierStartChars(String) - Method in class org.kordamp.json.util.JavaIdentifierTransformer
-
Removes all non JavaIdentifier chars from the start of the string.
- simplifyValue(JSONObject, Object) - Method in class org.kordamp.json.xml.XMLSerializer
- SINGLE_QUOTE - Static variable in class org.kordamp.json.util.JSONUtils
-
Constant for char '
- size() - Method in interface org.kordamp.json.JSON
-
Returns the number of properties in an object or the size of the array.
- size() - Method in class org.kordamp.json.JSONArray
-
Get the number of elements in the JSONArray, included nulls.
- size() - Method in class org.kordamp.json.JSONNull
- size() - Method in class org.kordamp.json.JSONObject
-
Get the number of keys stored in the JSONObject.
- skipJavaIdentifierTransformationInMapKeys - Variable in class org.kordamp.json.JsonConfig
- skipNamespaces - Variable in class org.kordamp.json.xml.XMLSerializer
-
flag for skipping namespaces while reading
- skipPast(String) - Method in class org.kordamp.json.util.JSONTokener
-
Skip characters until past the requested string.
- skipTo(char) - Method in class org.kordamp.json.util.JSONTokener
-
Skip characters until the next character is the requested character.
- skipWhitespace - Variable in class org.kordamp.json.xml.XMLSerializer
-
flag for skipping whitespace elements while reading
- sortPropertyNames - Variable in class org.kordamp.json.xml.XMLSerializer
-
flag for sorting object properties by name
- stack - Variable in class org.kordamp.json.util.JSONBuilder
-
The object/array stack.
- strategy - Variable in class org.kordamp.json.JSONObject.PropertySetterStrategyDecorator
- STRICT - Static variable in class org.kordamp.json.util.CycleDetectionStrategy
-
Throws a JSONException
- STRICT - Static variable in class org.kordamp.json.util.JavaIdentifierTransformer
-
Strict transformer '@invalid' => JSONException
- StrictCycleDetectionStrategy() - Constructor for class org.kordamp.json.util.CycleDetectionStrategy.StrictCycleDetectionStrategy
- StrictJavaIdentifierTransformer() - Constructor for class org.kordamp.json.util.JavaIdentifierTransformer.StrictJavaIdentifierTransformer
- STRING - Static variable in interface org.kordamp.json.xml.JSONTypes
- stripQuotes(String) - Static method in class org.kordamp.json.util.JSONUtils
-
Strips any single-quotes or double-quotes from both sides of the string.
- subList(int, int) - Method in class org.kordamp.json.JSONArray
- supports(Class) - Method in class org.kordamp.json.util.EnumMorpher
- syntaxError(String) - Method in class org.kordamp.json.util.JSONTokener
-
Make a JSONException to signal a syntax error.
T
- testValidity(Object) - Static method in class org.kordamp.json.util.JSONUtils
-
Throw an exception if the object is an NaN or infinite number.
- text - Variable in class org.kordamp.json.JSONFunction
-
the text of this function
- toArray() - Method in class org.kordamp.json.JSONArray
-
Produce an Object[] with the contents of this JSONArray.
- toArray(Object[]) - Method in class org.kordamp.json.JSONArray
- toArray(JSONArray) - Static method in class org.kordamp.json.JSONArray
-
Creates a java array from a JSONArray.
- toArray(JSONArray, Class) - Static method in class org.kordamp.json.JSONArray
-
Creates a java array from a JSONArray.
- toArray(JSONArray, Class, Map) - Static method in class org.kordamp.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 org.kordamp.json.JSONArray
-
Creates a java array from a JSONArray.
- toArray(JSONArray, JsonConfig) - Static method in class org.kordamp.json.JSONArray
-
Creates a java array from a JSONArray.
- toBean() - Method in class org.kordamp.json.JSONObject
-
Creates a JSONDynaBean from a JSONObject.
- toBean(Class) - Method in class org.kordamp.json.JSONObject
- toBean(JSONObject) - Static method in class org.kordamp.json.JSONObject
- toBean(JSONObject, Class) - Static method in class org.kordamp.json.JSONObject
-
Creates a bean from a JSONObject, with a specific target class.
- toBean(JSONObject, Class, Map) - Static method in class org.kordamp.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 org.kordamp.json.JSONObject
-
Creates a bean from a JSONObject, with the specific configuration.
- toBean(JSONObject, JsonConfig) - Static method in class org.kordamp.json.JSONObject
-
Creates a bean from a JSONObject, with the specific configuration.
- toCollection(JSONArray) - Static method in class org.kordamp.json.JSONArray
-
Returns a List or a Set taking generics into account.
- toCollection(JSONArray, Class) - Static method in class org.kordamp.json.JSONArray
-
Returns a List or a Set taking generics into account.
- toCollection(JSONArray, JsonConfig) - Static method in class org.kordamp.json.JSONArray
-
Returns a List or a Set taking generics into account.
Contributed by [Matt Small @ WaveMaker]. - toJava(JSON) - Static method in class org.kordamp.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 org.kordamp.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 org.kordamp.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 org.kordamp.json.JSONSerializer
-
Creates a JSONObject, JSONArray or a JSONNull from object.
Accepts JSON formatted strings, Maps, arrays, Collections, DynaBeans and JavaBeans. - toJSON(String, JsonConfig) - Static method in class org.kordamp.json.JSONSerializer
-
Creates a JSONObject, JSONArray or a JSONNull from a JSONString.
- toJSON(JSONString, JsonConfig) - Static method in class org.kordamp.json.JSONSerializer
-
Creates a JSONObject, JSONArray or a JSONNull from a JSONString.
- toJSONArray(JSONArray) - Method in class org.kordamp.json.JSONObject
-
Produce a JSONArray containing the values of the members of this JSONObject.
- toJSONObject(JSONArray) - Method in class org.kordamp.json.JSONArray
-
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.
- toJSONString() - Method in interface org.kordamp.json.JSONString
-
The
toJSONString
method allows a class to produce its own JSON serialization. - toList(JSONArray) - Static method in class org.kordamp.json.JSONArray
-
Deprecated.replaced by toCollection
- toList(JSONArray, Class) - Static method in class org.kordamp.json.JSONArray
-
Deprecated.replaced by toCollection
- toList(JSONArray, Class, Map) - Static method in class org.kordamp.json.JSONArray
-
Deprecated.replaced by toCollection
- toList(JSONArray, Object, JsonConfig) - Static method in class org.kordamp.json.JSONArray
-
Creates a List from a JSONArray.
- toList(JSONArray, JsonConfig) - Static method in class org.kordamp.json.JSONArray
-
Deprecated.replaced by toCollection
- top - Variable in class org.kordamp.json.util.JSONBuilder
-
The stack top index.
- toString() - Method in class org.kordamp.json.JSONArray
-
Make a JSON text of this JSONArray.
- toString() - Method in class org.kordamp.json.JSONFunction
-
Returns the string representation of this function.
- toString() - Method in class org.kordamp.json.JSONNull
-
Get the "null" string value.
- toString() - Method in class org.kordamp.json.JSONObject
-
Make a JSON text of this JSONObject.
- toString() - Method in class org.kordamp.json.util.JSONStringer
-
Return the JSON text.
- toString() - Method in class org.kordamp.json.util.JSONTokener
-
Make a printable string of this JSONTokener.
- toString(int) - Method in interface org.kordamp.json.JSON
-
Make a prettyprinted JSON text.
- toString(int) - Method in class org.kordamp.json.JSONArray
-
Make a prettyprinted JSON text of this JSONArray.
- toString(int) - Method in class org.kordamp.json.JSONNull
- toString(int) - Method in class org.kordamp.json.JSONObject
-
Make a prettyprinted JSON text of this JSONObject.
- toString(int, int) - Method in interface org.kordamp.json.JSON
-
Make a prettyprinted JSON text.
- toString(int, int) - Method in class org.kordamp.json.JSONArray
-
Make a prettyprinted JSON text of this JSONArray.
- toString(int, int) - Method in class org.kordamp.json.JSONNull
- toString(int, int) - Method in class org.kordamp.json.JSONObject
-
Make a prettyprinted JSON text of this JSONObject.
- toString(Object) - Static method in class org.kordamp.json.util.WebUtils
- toString(JSON) - Static method in class org.kordamp.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. - toString(JSONArray) - Static method in class org.kordamp.json.util.WebUtils
- toString(JSONNull) - Static method in class org.kordamp.json.util.WebUtils
- toString(JSONObject) - Static method in class org.kordamp.json.util.WebUtils
- transformNumber(Number) - Static method in class org.kordamp.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 org.kordamp.json.util.JavaIdentifierTransformer.CamelCaseJavaIdentifierTransformer
- transformToJavaIdentifier(String) - Method in class org.kordamp.json.util.JavaIdentifierTransformer.NoopJavaIdentifierTransformer
- transformToJavaIdentifier(String) - Method in class org.kordamp.json.util.JavaIdentifierTransformer.StrictJavaIdentifierTransformer
- transformToJavaIdentifier(String) - Method in class org.kordamp.json.util.JavaIdentifierTransformer
- transformToJavaIdentifier(String) - Method in class org.kordamp.json.util.JavaIdentifierTransformer.UnderscoreJavaIdentifierTransformer
- transformToJavaIdentifier(String) - Method in class org.kordamp.json.util.JavaIdentifierTransformer.WhiteSpaceJavaIdentifierTransformer
- triggerEvents - Variable in class org.kordamp.json.JsonConfig
- trimSpaceFromValue(String) - Method in class org.kordamp.json.xml.XMLSerializer
- trimSpaces - Variable in class org.kordamp.json.xml.XMLSerializer
-
flag for trimming spaces from string values
- TruePropertyFilter - Class in org.kordamp.json.filters
- TruePropertyFilter() - Constructor for class org.kordamp.json.filters.TruePropertyFilter
- typeHintsCompatibility - Variable in class org.kordamp.json.xml.XMLSerializer
-
flag for type hints naming compatibility
- typeHintsEnabled - Variable in class org.kordamp.json.xml.XMLSerializer
-
flag for adding JSON types hints as attributes
- typeMap - Variable in class org.kordamp.json.JsonConfig
U
- UNDERSCORE - Static variable in class org.kordamp.json.util.JavaIdentifierTransformer
-
Underscore transformer 'under score' => 'under_score'
- UnderscoreJavaIdentifierTransformer() - Constructor for class org.kordamp.json.util.JavaIdentifierTransformer.UnderscoreJavaIdentifierTransformer
- unexpectedNames(JSONObject, JSONObject) - Static method in class org.kordamp.json.test.JSONAssert
- unregisterDefaultValueProcessor(Class) - Method in class org.kordamp.json.JsonConfig
-
Removes a DefaultValueProcessor.
[Java -> JSON] - unregisterJavaPropertyNameProcessor(Class) - Method in class org.kordamp.json.JsonConfig
-
Removes a PropertyNameProcessor.
[JSON -> Java] - unregisterJsonBeanProcessor(Class) - Method in class org.kordamp.json.JsonConfig
-
Removes a JsonBeanProcessor.
[Java -> JSON] - unregisterJsonPropertyNameProcessor(Class) - Method in class org.kordamp.json.JsonConfig
-
Removes a PropertyNameProcessor.
[Java -> JSON] - unregisterJsonValueProcessor(Class) - Method in class org.kordamp.json.JsonConfig
-
Removes a JsonValueProcessor.
[Java -> JSON] - unregisterJsonValueProcessor(Class, Class) - Method in class org.kordamp.json.JsonConfig
-
Removes a JsonValueProcessor.
[Java -> JSON] - unregisterJsonValueProcessor(Class, String) - Method in class org.kordamp.json.JsonConfig
-
Removes a JsonValueProcessor.
[Java -> JSON] - unregisterJsonValueProcessor(String) - Method in class org.kordamp.json.JsonConfig
-
Removes a JsonValueProcessor.
[Java -> JSON] - unregisterPropertyExclusion(Class, String) - Method in class org.kordamp.json.JsonConfig
-
Removes a property exclusion assigned to the target class.
[Java -> JSON] - unregisterPropertyExclusions(Class) - Method in class org.kordamp.json.JsonConfig
-
Removes all property exclusions assigned to the target class.
[Java -> JSON] - unregisterPropertyNameProcessor(Class) - Method in class org.kordamp.json.JsonConfig
-
Deprecated.use unregisterJavaPropertyNameProcessor() instead
V
- value(boolean) - Method in class org.kordamp.json.util.JSONBuilder
-
Append either the value
true
or the valuefalse
. - value(double) - Method in class org.kordamp.json.util.JSONBuilder
-
Append a double value.
- value(long) - Method in class org.kordamp.json.util.JSONBuilder
-
Append a long value.
- value(Object) - Method in class org.kordamp.json.util.JSONBuilder
-
Append an object value.
- values() - Method in class org.kordamp.json.JSONObject
- valueToCanonicalString(Object) - Static method in class org.kordamp.json.util.JSONUtils
- valueToString(Object) - Static method in class org.kordamp.json.util.JSONUtils
-
Make a JSON text of an Object value.
- valueToString(Object, int, int) - Static method in class org.kordamp.json.util.JSONUtils
-
Make a prettyprinted JSON text of an object value.
- verifyIsNull() - Method in class org.kordamp.json.JSONObject
-
Checks if this object is a "null" object.
W
- webHijackPreventionStrategy - Static variable in class org.kordamp.json.util.WebUtils
- WebHijackPreventionStrategy - Class in org.kordamp.json.util
-
Defines base implementations for preventing WebHijack in AJAX applications.
- WebHijackPreventionStrategy() - Constructor for class org.kordamp.json.util.WebHijackPreventionStrategy
- WebHijackPreventionStrategy.CommentWebHijackPreventionStrategy - Class in org.kordamp.json.util
- WebHijackPreventionStrategy.InfiniteLoopWebHijackPreventionStrategy - Class in org.kordamp.json.util
- WebUtils - Class in org.kordamp.json.util
-
Provides useful methods for working with JSON and web.
- WebUtils() - Constructor for class org.kordamp.json.util.WebUtils
- WHITESPACE - Static variable in class org.kordamp.json.util.JavaIdentifierTransformer
-
Whitespace transformer 'white space' => 'whitespace'
- WhiteSpaceJavaIdentifierTransformer() - Constructor for class org.kordamp.json.util.JavaIdentifierTransformer.WhiteSpaceJavaIdentifierTransformer
- write(Writer) - Method in class org.kordamp.json.AbstractJSON
- write(Writer) - Method in interface org.kordamp.json.JSON
-
Write the contents as JSON text to a writer.
- write(Writer) - Method in class org.kordamp.json.JSONNull
- write(Writer, AbstractJSON.WritingVisitor) - Method in class org.kordamp.json.AbstractJSON
- write(Writer, AbstractJSON.WritingVisitor) - Method in class org.kordamp.json.JSONArray
- write(Writer, AbstractJSON.WritingVisitor) - Method in class org.kordamp.json.JSONObject
-
Write the contents of the JSONObject as JSON text to a writer.
- write(Text) - Method in class org.kordamp.json.xml.XMLSerializer.XomSerializer
- write(JSON) - Method in class org.kordamp.json.xml.XMLSerializer
-
Writes a JSON value into a XML string with UTF-8 encoding.
- write(JSON, String) - Method in class org.kordamp.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 class org.kordamp.json.AbstractJSON
- writeCanonical(Writer) - Method in interface org.kordamp.json.JSON
-
Writes the canonicalized form of this JSON object.
- writeCanonical(Writer) - Method in class org.kordamp.json.JSONNull
- writeDocument(Document, String) - Method in class org.kordamp.json.xml.XMLSerializer
- writeEmptyElementTag(Element) - Method in class org.kordamp.json.xml.XMLSerializer.XomSerializer
- writeEndTag(Element) - Method in class org.kordamp.json.xml.XMLSerializer.XomSerializer
- writeNamespaceDeclaration(String, String) - Method in class org.kordamp.json.xml.XMLSerializer.XomSerializer
- writer - Variable in class org.kordamp.json.util.JSONBuilder
-
The writer that will receive the output.
- writeStartTag(Element) - Method in class org.kordamp.json.xml.XMLSerializer.XomSerializer
- writeTagBeginning(XMLSerializer.CustomElement) - Method in class org.kordamp.json.xml.XMLSerializer.XomSerializer
X
- XMLSerializer - Class in org.kordamp.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 org.kordamp.json.xml.XMLSerializer
-
Creates a new XMLSerializer with default options.
objectName
: 'o'arrayName
: 'a'elementName
: 'e'typeHintsEnabled
: truetypeHintsCompatibility
: truenamespaceLenient
: falseexpandableProperties
: []skipNamespaces
: falseremoveNameSpacePrefixFromElement
: falsetrimSpaces
: falseexpandableProperties
: []skipWhitespace
: falseperformAutoExpansion
: falsekeepCData
: falseescapeLowerChars
: falsekeepArrayName
: falseforcedArrayElements
: []parseJsonLiterals
: truesortPropertyNames
: false - XMLSerializer.CustomElement - Class in org.kordamp.json.xml
- XMLSerializer.XomSerializer - Class in org.kordamp.json.xml
- XomSerializer(OutputStream) - Constructor for class org.kordamp.json.xml.XMLSerializer.XomSerializer
- XomSerializer(OutputStream, String) - Constructor for class org.kordamp.json.xml.XMLSerializer.XomSerializer
_
- _accumulate(String, Object, JsonConfig) - Method in class org.kordamp.json.JSONObject
- _addValue(Object, JsonConfig) - Method in class org.kordamp.json.JSONArray
-
Append an object value.
- _processValue(Object, JsonConfig) - Method in class org.kordamp.json.AbstractJSON
- _processValue(Object, JsonConfig) - Method in class org.kordamp.json.JSONArray
- _processValue(Object, JsonConfig) - Method in class org.kordamp.json.JSONObject
- _setInternal(String, Object, JsonConfig) - Method in class org.kordamp.json.JSONObject
-
Put a key/value pair in the JSONObject.
- _setProperty(Object, String, Object, JsonConfig) - Method in class org.kordamp.json.util.PropertySetStrategy.DefaultPropertySetStrategy
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form