- add(Object, Object) - Method in class org.kopitubruk.util.json.JsonObject
-
Add a property to the property list.
- addDateParseFormat(DateFormat) - Method in class org.kopitubruk.util.json.JSONConfig
-
Add a date parsing format to the list of parsing formats.
- addDateParseFormat(String) - Method in class org.kopitubruk.util.json.JSONConfig
-
Add a date parsing format to the list of parsing formats.
- addDateParseFormat(String) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Add a date parsing format to the list of date parsing formats
used by the parser when encodeDatesAsStrings or
encodeDatesAsObjects is true.
- addDateParseFormat(DateFormat) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Add a date parsing format to the list of parsing formats used
by the parser when encodeDatesAsStrings or encodeDatesAsObjects
is true.
- addDateParseFormat(String) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Add a date parsing format to the list of date parsing formats
used by the parser when encodeDatesAsStrings or
encodeDatesAsObjects is true.
- addDateParseFormats(Collection<? extends DateFormat>) - Method in class org.kopitubruk.util.json.JSONConfig
-
Add a collection of date parsing formats to the list of date parsing
formats.
- addDateParseFormats(Collection<? extends DateFormat>) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Add a collection of date parsing format to the list of date
parsing formats used by the parser when encodeDatesAsStrings
or encodeDatesAsObjects is true.
- addNumberFormat(Class<? extends Number>, NumberFormat) - Method in class org.kopitubruk.util.json.JSONConfig
-
Add a number format for a particular type that extends Number.
- addNumberFormat(Number, NumberFormat) - Method in class org.kopitubruk.util.json.JSONConfig
-
Add a number format for a particular type that extends Number.
- addNumberFormat(Class<? extends Number>, NumberFormat) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Add a default number format for a particular type that extends Number.
- addNumberFormat(Number, NumberFormat) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Add a default number format for a particular type that extends Number.
- addNumberFormats(Map<Class<? extends Number>, NumberFormat>) - Method in class org.kopitubruk.util.json.JSONConfig
-
Add a map of number formats to the current map of number formats.
- addNumberFormats(Map<Class<? extends Number>, NumberFormat>) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Add a map of number formats to the current map of number formats.
- addReflectClass(Object) - Method in class org.kopitubruk.util.json.JSONConfig
-
Add the class of the given object to the set of classes that
automatically get reflected.
- addReflectClass(Object) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Add the class of the given object to the set of classes that
automatically get reflected.
- addReflectClassByName(String) - Method in class org.kopitubruk.util.json.JSONConfig
-
Add the given class to the set of classes to be reflected.
- addReflectClassByName(String) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Add the given class to the set of classes to be reflected.
- addReflectClassByName(String) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Add the given class to the set of classes to be reflected.
- addReflectClasses(Collection<?>) - Method in class org.kopitubruk.util.json.JSONConfig
-
Add the classes of all of the given objests to the list of classes
that automatically get reflected.
- addReflectClasses(Collection<?>) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Add the classes of all of the given objects to the list of classes that
automatically get reflected.
- checkValidJavascriptPropertyName(String, JSONConfig) - Static method in class org.kopitubruk.util.json.JSONUtil
-
Checks if the input string represents a valid Javascript property name.
- checkValidJavascriptPropertyName(String) - Static method in class org.kopitubruk.util.json.JSONUtil
-
Checks if the input string represents a valid Javascript property name
using default identifier options.
- clear() - Method in class org.kopitubruk.util.json.JsonObject
-
Clear the property list.
- clearDateGenFormat() - Method in class org.kopitubruk.util.json.JSONConfig
-
Clear date generation format.
- clearDateGenFormat() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Clear date generation format.
- clearDateGenFormat() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Clear date generation format.
- clearDateParseFormats() - Method in class org.kopitubruk.util.json.JSONConfig
-
Clear any date parse formats.
- clearDateParseFormats() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Clear any date parse formats from the list of formats used by the parser
when encodeDatesAsStrings or encodeDatesAsObjects is true.
- clearDateParseFormats() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Clear any date parse formats from the list of formats
used by the parser when encodeDatesAsStrings or
encodeDatesAsObjects is true.
- clearMBean() - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
When this package is used by a webapp, and you have an MBean server in your
environment, then you should create a ServletContextListener and call this
in its ServletContextListener.contextDestroyed(ServletContextEvent)
method to remove the MBean when the webapp is unloaded or reloaded.
- clearNumberFormats() - Method in class org.kopitubruk.util.json.JSONConfig
-
Clear all number formats.
- clearNumberFormats() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Clear any default number formats.
- clearNumberFormats() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Clear any default number formats.
- clearReflectClasses() - Method in class org.kopitubruk.util.json.JSONConfig
-
Clear all reflection classes, disabling all automatic reflection.
- clearReflectClasses() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Clear all reflection classes, disabling all default automatic selective
reflection.
- clearReflectClasses() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Clear all reflection classes, disabling all default automatic reflection.
- clearReflectionCache() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Clear the reflection cache, if any.
- clearReflectionCache() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Clear the reflection cache.
- clone() - Method in class org.kopitubruk.util.json.IndentPadding
-
- clone() - Method in class org.kopitubruk.util.json.JSONConfig
-
Return a clone of this object.
- clone() - Method in class org.kopitubruk.util.json.JSONReflectedClass
-
- getClassName(Object) - Method in exception org.kopitubruk.util.json.JSONException
-
Get the name of the class of the object.
- getCodePoint() - Method in exception org.kopitubruk.util.json.UndefinedCodePointException
-
Get the code point that caused this exception.
- getFieldAliases() - Method in class org.kopitubruk.util.json.JSONReflectedClass
-
Get the field aliases map.
- getFieldNames() - Method in class org.kopitubruk.util.json.JSONReflectedClass
-
Get a copy of the set of field names to reflect.
- getIndent() - Method in class org.kopitubruk.util.json.IndentPadding
-
Get the spacing for one indent level.
- getIndentPadding() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the padding object.
- getIndentPadding() - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default indent padding object.
- getInstance() - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Return the JSONConfigDefaults singleton instance.
- getJavascriptReservedWords() - Static method in class org.kopitubruk.util.json.JSONUtil
-
Get the list of reserved words.
- getJSONConfig() - Method in class org.kopitubruk.util.json.JsonObject
-
Get the JSONConfig or null if there isn't one.
- getLocale() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the locale for this instance.
- getLocale() - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default locale for new
JSONConfig objects.
- getLocaleLanguageTag() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
- getLocaleLanguageTag() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the default locale for new
JSONConfig objects in string form.
- getLocalizedMessage() - Method in exception org.kopitubruk.util.json.JSONException
-
- getMessage() - Method in exception org.kopitubruk.util.json.JSONException
-
- getNewLine() - Method in class org.kopitubruk.util.json.IndentPadding
-
Get the string to use for a new line (default \n)
- getNumberFormat(Class<? extends Number>) - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the number format for the given class.
- getNumberFormat(Number) - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the number format for the class of the given numeric type.
- getNumberFormat(Class<? extends Number>) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the number format for the given class.
- getNumberFormat(Number) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the number format for the class of the given numeric type.
- getObjClass() - Method in class org.kopitubruk.util.json.JSONReflectedClass
-
Get the class being reflected.
- getPadding() - Method in class org.kopitubruk.util.json.IndentPadding
-
Get the padding for the current indent level.
- getPosition() - Method in exception org.kopitubruk.util.json.UndefinedCodePointException
-
Get the position within the string of the code point that caused this exception.
- getPosition() - Method in exception org.kopitubruk.util.json.UnmatchedSurrogateException
-
Get the position within the string of the unmatched surrogate that caused this exception.
- getReflectedClass(Object) - Method in class org.kopitubruk.util.json.JSONConfig
-
- getReflectedClass(Object) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
- getReflectionPrivacy() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the reflection privacy level.
- getReflectionPrivacy() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the reflection privacy level.
- getReflectionPrivacy() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the reflection privacy level.
- getStrValue() - Method in exception org.kopitubruk.util.json.UndefinedCodePointException
-
Get the string value that contained this undefined code point.
- getStrValue() - Method in exception org.kopitubruk.util.json.UnmatchedSurrogateException
-
Get the string value that contained this unmatched surrogate.
- getUndefinedCodePointPolicy() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the policy for undefined code points.
- getUndefinedCodePointPolicy() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default policy for undefined code points.
- getUndefinedCodePointPolicy() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the default policy for undefined code points.
- getUnmatchedSurrogate() - Method in exception org.kopitubruk.util.json.UnmatchedSurrogateException
-
Get the unmatched surrogate that caused this exception.
- getUnmatchedSurrogatePolicy() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the policy for unmatched surrogates.
- getUnmatchedSurrogatePolicy() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default policy for unmatched surrogates.
- getUnmatchedSurrogatePolicy() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the default policy for unmatched surrogates.
- incrementLevel() - Method in class org.kopitubruk.util.json.IndentPadding
-
Increment the level of indent.
- IndentPadding - Class in org.kopitubruk.util.json
-
This class provides a way to do indented formatting of the output to make it
easier to read for debugging.
- IndentPadding() - Constructor for class org.kopitubruk.util.json.IndentPadding
-
Create an indent padding object using four spaces and a standard newline.
- IndentPadding(String, String) - Constructor for class org.kopitubruk.util.json.IndentPadding
-
Create an indent padding object with the given indent and newLine
strings.
- isAllowReservedWordsInIdentifiers() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the allowReservedWordsInIdentifiers policy.
- isAllowReservedWordsInIdentifiers() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default for allowing reserved words in identifiers.
- isAllowReservedWordsInIdentifiers() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the default for allowing reserved words in identifiers.
- isCacheReflectionData() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the the cacheReflectionData policy.
- isCacheReflectionData() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default cacheReflectionData policy.
- isCacheReflectionData() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the the cacheReflectionData policy.
- isDetectDataStructureLoops() - Method in class org.kopitubruk.util.json.JSONConfig
-
Return true if data structure loops will be detected.
- isDetectDataStructureLoops() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default detect data structure loops policy.
- isDetectDataStructureLoops() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the default detect data structure loops policy.
- isEncodeDatesAsObjects() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the encode dates policy.
- isEncodeDatesAsObjects() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the encode dates as objects policy.
- isEncodeDatesAsObjects() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the encode dates as objects policy.
- isEncodeDatesAsStrings() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the encode dates as strings policy.
- isEncodeDatesAsStrings() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the encode dates as strings policy.
- isEncodeDatesAsStrings() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the encode dates as strings policy.
- isEncodeNumericStringsAsNumbers() - Method in class org.kopitubruk.util.json.JSONConfig
-
If true, then strings will be checked for number patterns and if they
look like numbers, then they won't be quoted.
- isEncodeNumericStringsAsNumbers() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default encode numeric strings as numbers policy.
- isEncodeNumericStringsAsNumbers() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the default encode numeric strings as numbers policy.
- isEscapeBadIdentifierCodePoints() - Method in class org.kopitubruk.util.json.JSONConfig
-
Find out if bad identifier code points will be escaped.
- isEscapeBadIdentifierCodePoints() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default escape bad identifier code points policy.
- isEscapeBadIdentifierCodePoints() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the default escape bad identifier code points policy.
- isEscapeNonAscii() - Method in class org.kopitubruk.util.json.JSONConfig
-
Check if non-ascii characters are to be encoded as Unicode escapes.
- isEscapeNonAscii() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default escape non-ASCII policy.
- isEscapeNonAscii() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the default escape non-ASCII policy.
- isEscapeSurrogates() - Method in class org.kopitubruk.util.json.JSONConfig
-
Return the escape surrogates policy.
- isEscapeSurrogates() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default escape surrogates policy.
- isEscapeSurrogates() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the default escape surrogates policy.
- isFastStrings() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the fastStrings policy.
- isFastStrings() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the fastStrings policy.
- isFastStrings() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the fastStrings policy.
- isFormatDates() - Method in class org.kopitubruk.util.json.JSONConfig
-
Find out if special date formatting is enabled.
- isFullJSONIdentifierCodePoints() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the full JSON identifier code points policy.
- isFullJSONIdentifierCodePoints() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the full JSON identifier code points policy.
- isFullJSONIdentifierCodePoints() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the full JSON identifier code points policy.
- isPassThroughEscapes() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the pass through escapes policy.
- isPassThroughEscapes() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the pass through escapes policy.
- isPassThroughEscapes() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the pass through escapes policy.
- isPreciseNumbers() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the preciseNumbers policy.
- isPreciseNumbers() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default preciseIntegers policy.
- isPreciseNumbers() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the preciseFloatingPoint policy.
- isQuoteIdentifier() - Method in class org.kopitubruk.util.json.JSONConfig
-
Find out what the identifier quote policy is.
- isQuoteIdentifier() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default quote identifier policy.
- isQuoteIdentifier() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the default quote identifier policy.
- isReflectClass(Object) - Method in class org.kopitubruk.util.json.JSONConfig
-
Return true if the given class is in the set of classes being
automatically reflected.
- isReflectClass(Object) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Return true if the given class is in the set of classes being
automatically reflected.
- isReflectUnknownObjects() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the reflection of unknown objects policy.
- isReflectUnknownObjects() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default reflection of unknown objects policy.
- isReflectUnknownObjects() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the reflection of unknown objects policy.
- isReservedWord(String) - Static method in class org.kopitubruk.util.json.JSONUtil
-
Check if the given string is a reserved word.
- isSmallNumbers() - Method in class org.kopitubruk.util.json.JSONConfig
-
Get the smallNumbers policy.
- isSmallNumbers() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default smallNumbers policy.
- isSmallNumbers() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the smallNumbers policy.
- isUnEscapeWherePossible() - Method in class org.kopitubruk.util.json.JSONConfig
-
The unEscape policy.
- isUnEscapeWherePossible() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default unEscape policy.
- isUnEscapeWherePossible() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
The default unEscape policy.
- isUseECMA6() - Method in class org.kopitubruk.util.json.JSONConfig
-
Find out if ECMAScript 6 code point escapes are enabled.
- isUseECMA6() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default escape ECMAScript 6 code points policy.
- isUseECMA6() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the default escape ECMAScript 6 code points policy.
- isUsePrimitiveArrays() - Method in class org.kopitubruk.util.json.JSONConfig
-
The primitive arrays policy.
- isUsePrimitiveArrays() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
The default primitive arrays policy.
- isUsePrimitiveArrays() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
The primitive arrays policy.
- isValidatePropertyNames() - Method in class org.kopitubruk.util.json.JSONConfig
-
Check if property names will be validated.
- isValidatePropertyNames() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Get the default validate property names policy.
- isValidatePropertyNames() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Get the default validate property names policy.
- isValidJavascriptPropertyName(String, JSONConfig) - Static method in class org.kopitubruk.util.json.JSONUtil
-
Return true if the input string is a valid Javascript property name.
- isValidJavascriptPropertyName(String) - Static method in class org.kopitubruk.util.json.JSONUtil
-
Return true if the input string is a valid Javascript property name
using default identifier options.
- setAllowReservedWordsInIdentifiers(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true then reserved words will be allowed in identifiers even when
identifier validation is enabled.
- setAllowReservedWordsInIdentifiers(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set default flag for allowing reserved words in identifiers.
- setAllowReservedWordsInIdentifiers(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set default flag for allowing reserved words in identifiers.
- setBadCharacterPolicy(int) - Method in class org.kopitubruk.util.json.JSONConfig
-
- setBadCharacterPolicy(int) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
- setCacheReflectionData(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true, then when an object is reflected its reflection data
will be cached to improve performance on subsequent reflections
of objects of its class.
- setCacheReflectionData(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
If true, then when an object is reflected its reflection data
will be cached to improve performance on subsequent reflections
of objects of its class.
- setCacheReflectionData(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
If true, then when an object is reflected its reflection data
will be cached to improve performance on subsequent reflections
of objects of its class.
- setCodeDefaults() - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Reset all defaults to their original unmodified values.
- setCodeDefaults() - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Reset all defaults to their original unmodified values.
- setDateGenFormat(DateFormat) - Method in class org.kopitubruk.util.json.JSONConfig
-
Set the date string generation format used when encodeDatesAsStrings or
encodeDatesAsObjects are true.
- setDateGenFormat(String) - Method in class org.kopitubruk.util.json.JSONConfig
-
Set the date string generation format.
- setDateGenFormat(String) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set the date format used for date string generation when
encodeDatesAsStrings or encodeDatesAsObjects is true.
- setDateGenFormat(DateFormat) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set the date string generation format used when encodeDatesAsStrings
or encodeDatesAsObjects is true.
- setDateGenFormat(String) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set the date format used for date string generation when
encodeDatesAsStrings or encodeDatesAsObjects is true.
- setDetectDataStructureLoops(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
Enable or disable data structure loop detection.
- setDetectDataStructureLoops(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set the default flag for detecting data structure loops.
- setDetectDataStructureLoops(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set the default flag for detecting data structure loops.
- setEncodeDatesAsObjects(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true, then
Date objects will be encoded as
Javascript dates, using new Date(dateString).
- setEncodeDatesAsObjects(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
If true, then
Date objects will be encoded as
Javascript dates, using new Date(dateString).
- setEncodeDatesAsObjects(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
If true, then
Date objects will be encoded as
Javascript dates, using new Date(dateString).
- setEncodeDatesAsStrings(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
- setEncodeDatesAsStrings(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set the encodeDatesAsStrings policy.
- setEncodeDatesAsStrings(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set the encodeDatesAsStrings policy.
- setEncodeNumericStringsAsNumbers(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true, then strings will be checked for number patterns and if they
look like numbers, then they won't be quoted.
- setEncodeNumericStringsAsNumbers(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set the default flag for encoding of numeric strings as numbers.
- setEncodeNumericStringsAsNumbers(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set the default flag for encoding of numeric strings as numbers.
- setEscapeBadIdentifierCodePoints(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true, then any bad code points in identifiers will be escaped.
- setEscapeBadIdentifierCodePoints(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
If true, then any bad code points in identifiers will be escaped.
- setEscapeBadIdentifierCodePoints(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
If true, then any bad code points in identifiers will be escaped.
- setEscapeNonAscii(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If you want non-ascii characters encoded as Unicode escapes in strings
and identifiers, you can do that by setting this to true.
- setEscapeNonAscii(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set the default flag for forcing escaping of non-ASCII characters in
strings and identifiers.
- setEscapeNonAscii(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set the default flag for forcing escaping of non-ASCII characters in
strings and identifiers.
- setEscapeSurrogates(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true then all surrogates will be escaped in strings and identifiers
and escapeNonAscii will be forced to false.
- setEscapeSurrogates(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set the default escapeSurrogates policy.
- setEscapeSurrogates(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set the default escapeSurrogates policy.
- setFastStrings(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true, then string values will be copied to the output with no escaping
or validation.
- setFastStrings(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
If true, then string values will be copied to the output with no escaping
or validation.
- setFastStrings(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
If true, then string values will be copied to the output with no escaping
or validation.
- setFieldAliases(Map<String, String>) - Method in class org.kopitubruk.util.json.JSONReflectedClass
-
Set the custom names map.
- setFieldNames(Collection<String>) - Method in class org.kopitubruk.util.json.JSONReflectedClass
-
Set the set of field names to reflect.
- setFullJSONIdentifierCodePoints(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true, then the full set of identifier code points permitted by the
JSON standard will be allowed instead of the more restrictive set
permitted by the ECMAScript standard.
- setFullJSONIdentifierCodePoints(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
If true, then the full set of identifier code points permitted by the
JSON standard will be allowed instead of the more restrictive set
permitted by the ECMAScript standard.
- setFullJSONIdentifierCodePoints(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
If true, then the full set of identifier code points permitted by the
JSON standard will be allowed instead of the more restrictive set
permitted by the ECMAScript standard.
- setIndent(String) - Method in class org.kopitubruk.util.json.IndentPadding
-
Set the spacing for one indent level (default is 4 spaces).
- setIndentPadding(IndentPadding) - Method in class org.kopitubruk.util.json.JSONConfig
-
Set the padding object.
- setIndentPadding(IndentPadding) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set the padding object.
- setJSONConfig(JSONConfig) - Method in class org.kopitubruk.util.json.JsonObject
-
Set the JSONConfig for this object.
- setLocale(Locale) - Method in class org.kopitubruk.util.json.JSONConfig
-
Set the locale.
- setLocale(String) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
- setLocale(Locale) - Static method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set a default locale for new
JSONConfig objects to use.
- setLocale(Locale) - Method in exception org.kopitubruk.util.json.JSONException
-
- setLocaleLanguageTag(String) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
- setLocaleLanguageTag(String) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set the default locale for new
JSONConfig objects to use.
- setNewLine(String) - Method in class org.kopitubruk.util.json.IndentPadding
-
Set the string to use for a new line (default \n).
- setObjClass(Object) - Method in class org.kopitubruk.util.json.JSONReflectedClass
-
Set the object class.
- setPassThroughEscapes(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true, then legal escapes in strings will be passed through unchanged.
- setPassThroughEscapes(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
If true, then escapes in strings will be passed through unchanged.
- setPassThroughEscapes(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
If true, then escapes in strings will be passed through unchanged.
- setPreciseNumbers(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true then integer numbers which are not exactly representable by a 64
bit double precision floating point number will be quoted in the output.
- setPreciseNumbers(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
If true then numbers which are not exactly representable by a 64 bit
double precision floating point number will be quoted in the output.
- setPreciseNumbers(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
If true then numbers which are not exactly representable by a 64 bit
double precision floating point number will be quoted in the output.
- setQuoteIdentifier(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
Control whether identifiers are quoted or not.
- setQuoteIdentifier(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set the default flag for forcing quotes on identifiers.
- setQuoteIdentifier(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set the default flag for forcing quotes on identifiers.
- setReflectionPrivacy(int) - Method in class org.kopitubruk.util.json.JSONConfig
-
Set the privacy level for reflection.
- setReflectionPrivacy(int) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set the privacy level for reflection.
- setReflectionPrivacy(int) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set the privacy level for reflection.
- setReflectUnknownObjects(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
Set the unknown object reflection encoding policy.
- setReflectUnknownObjects(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set the default unknown object reflection encoding policy.
- setReflectUnknownObjects(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set the reflection encoding policy.
- setSmallNumbers(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true then
JSONParser will attempt to minimize the
storage used for all numbers.
- setSmallNumbers(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
If true then
JSONParser will attempt to minimize the
storage used for all numbers.
- setSmallNumbers(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
If true then
JSONParser will attempt to minimize the
storage used for all numbers.
- setUndefinedCodePointPolicy(int) - Method in class org.kopitubruk.util.json.JSONConfig
-
Tell JSONUtil what to do when it encounters undefined code points in strings
and identifiers.
- setUndefinedCodePointPolicy(int) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Tell JSONUtil what to do by default when it encounters undefined code points in strings
and identifiers.
- setUndefinedCodePointPolicy(int) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Tell JSONUtil what to do by default when it encounters undefined code points in strings
and identifiers.
- setUnEscapeWherePossible(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true then where possible, undo inline escapes in strings before going
through normal string processing.
- setUnEscapeWherePossible(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set default flag for undoing inline escapes in strings.
- setUnEscapeWherePossible(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set default flag for undoing inline escapes in strings.
- setUnmatchedSurrogatePolicy(int) - Method in class org.kopitubruk.util.json.JSONConfig
-
Tell JSONUtil what to do when it encounters unmatched surrogates in strings
and identifiers.
- setUnmatchedSurrogatePolicy(int) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Tell JSONUtil what to do by default when it encounters unmatched surrogates in strings
and identifiers.
- setUnmatchedSurrogatePolicy(int) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Tell JSONUtil what to do by default when it encounters unmatched surrogates in strings
and identifiers.
- setUseECMA6(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If you set this to true, then when JSONUtil generates Unicode
escapes, it will use ECMAScript 6 code point escapes if they are shorter
than code unit escapes.
- setUseECMA6(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
If you set this to true, then by default when JSONUtil generates Unicode
escapes, it will use ECMAScript 6 code point escapes if they are shorter
than code unit escapes.
- setUseECMA6(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
If you set this to true, then when JSONUtil generates Unicode
escapes, it will use ECMAScript 6 code point escapes if they are shorter
than code unit escapes.
- setUsePrimitiveArrays(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true, then when
JSONParser encounters a JSON array of non-null
wrappers of primitives and those primitives are all compatible with each
other, then instead of an
ArrayList of wrappers for those
primitives it will create an array of those primitives in order to save
memory.
- setUsePrimitiveArrays(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
If true, then when
JSONParser encounters a JSON array of non-null
wrappers of primitives and those primitives are all compatible with each
other, then instead of an
ArrayList of wrappers for those
primitives it will create an array of those primitives in order to save
memory.
- setUsePrimitiveArrays(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
If true, then when
JSONParser encounters a JSON array of non-null
wrappers of primitives and those primitives are all compatible with each
other, then instead of an
ArrayList of wrappers for those
primitives it will create an array of those primitives in order to save
memory.
- setValidatePropertyNames(boolean) - Method in class org.kopitubruk.util.json.JSONConfig
-
If true, then property names will be validated.
- setValidatePropertyNames(boolean) - Method in class org.kopitubruk.util.json.JSONConfigDefaults
-
Set the default flag for validation of property names.
- setValidatePropertyNames(boolean) - Method in interface org.kopitubruk.util.json.JSONConfigDefaultsMBean
-
Set the default flag for validation of property names.
- size() - Method in class org.kopitubruk.util.json.JsonObject
-
Get the number of elements in this property list.