- set(int, Object) - Method in class org.kordamp.json.JSONArray
-
- set(int, Object, JsonConfig) - Method in class org.kordamp.json.JSONArray
-
- 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.
- 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.
- 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'.
- 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, 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) - Method in class org.kordamp.json.util.PropertySetStrategy
-
- 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
-
- 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 trealing 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(JSONObject, String, Object, Class, JsonConfig, boolean) - Static method in class org.kordamp.json.JSONObject.Impl
-
- 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.
- 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.
- 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.
- 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
- 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.