Uses of Class
org.opencms.json.JSONException
-
Packages that use JSONException Package Description org.opencms.ade.configuration Contains the ade configuration classes.org.opencms.json Classes to create JSON objects and arrays for JavaScript in OpenCms.org.opencms.jsp.search.config.parser API classes for the configuration parsers of the search form support provided for server-side Solr search.org.opencms.jsp.userdata org.opencms.ui.favorites org.opencms.util Utility functions for String manipulation and other often used tasks.org.opencms.widgets Contains the widget implementations, these are GUI elements used in editors and dialogs of the OpenCms workplace.org.opencms.workplace.editors.directedit Used to control the generation of the HTML for the "direct edit" buttons.org.opencms.xml.xml2json org.opencms.xml.xml2json.document org.opencms.xml.xml2json.renderer -
-
Uses of JSONException in org.opencms.ade.configuration
Methods in org.opencms.ade.configuration that throw JSONException Modifier and Type Method Description protected CmsContainerElementBeanCmsADEManager. elementFromJson(JSONObject data)Creates an element from its serialized data. -
Uses of JSONException in org.opencms.json
Methods in org.opencms.json that return JSONException Modifier and Type Method Description JSONExceptionJSONTokener. syntaxError(java.lang.String message)Make a JSONException to signal a syntax error.Methods in org.opencms.json that throw JSONException Modifier and Type Method Description JSONObjectJSONObject. accumulate(java.lang.String key, java.lang.Object value)Accumulate values under a key.JSONObjectJSONObject. append(java.lang.String key, java.lang.Object value)Append values to the array under a key.JSONWriterJSONWriter. array()Begin appending a new array.voidJSONTokener. back()Back up one character.JSONWriterJSONWriter. endArray()End an array.JSONWriterJSONWriter. endObject()End an object.java.lang.ObjectJSONArray. get(int index)Get the object value associated with an index.java.lang.ObjectJSONObject. get(java.lang.String key)Get the value object associated with a key.booleanJSONArray. getBoolean(int index)Get the boolean value associated with an index.booleanJSONObject. getBoolean(java.lang.String key)Get the boolean value associated with a key.doubleJSONArray. getDouble(int index)Get the double value associated with an index.doubleJSONObject. getDouble(java.lang.String key)Get the double value associated with a key.intJSONArray. getInt(int index)Get the int value associated with an index.intJSONObject. getInt(java.lang.String key)Get the int value associated with a key.JSONArrayJSONArray. getJSONArray(int index)Get the JSONArray associated with an index.JSONArrayJSONObject. getJSONArray(java.lang.String key)Get the JSONArray value associated with a key.JSONObjectJSONArray. getJSONObject(int index)Get the JSONObject associated with an index.JSONObjectJSONObject. getJSONObject(java.lang.String key)Get the JSONObject value associated with a key.longJSONArray. getLong(int index)Get the long value associated with an index.longJSONObject. getLong(java.lang.String key)Get the long value associated with a key.java.lang.StringJSONArray. getString(int index)Get the string associated with an index.java.lang.StringJSONObject. getString(java.lang.String key)Get the string associated with a key.java.lang.StringJSONArray. join(java.lang.String separator)Make a string from the contents of this JSONArray.JSONWriterJSONWriter. key(java.lang.String s)Append a key.voidJSONObject. merge(JSONObject jo, boolean overwrite, boolean deep)Merges the current JSON object with the given one, modifying the this.booleanJSONTokener. more()Determine if the source string still contains characters that next() can consume.charJSONTokener. next()Get the next character in the source string.charJSONTokener. next(char c)Consume the next character, and check that it matches a specified character.java.lang.StringJSONTokener. next(int n)Get the next n characters.java.lang.StringXMLTokener. nextCDATA()Get the text in the CDATA block.charJSONTokener. nextClean()Get the next char in the string, skipping whitespace and comments (slashslash, slashstar, and hash).java.lang.ObjectXMLTokener. nextContent()Get the next XML outer token, trimming whitespace.java.lang.ObjectXMLTokener. nextEntity(char a)Return the next ENTITY.java.lang.ObjectXMLTokener. nextMeta()Returns the next XML meta token.java.lang.StringJSONTokener. nextString(char quote)Return the characters up to the next close quote character.java.lang.StringJSONTokener. nextTo(char d)Get the text up but not including the specified character or the end of line, whichever comes first.java.lang.StringJSONTokener. nextTo(java.lang.String delimiters)Get the text up but not including one of the specified delimiter characters or the end of line, whichever comes first.java.lang.ObjectXMLTokener. nextToken()Get the next XML Token.java.lang.ObjectJSONTokener. nextValue()Get the next value.static java.lang.StringJSONObject. numberToString(java.lang.Number n)Produce a string from a Number.JSONWriterJSONWriter. object()Begin appending a new object.JSONArrayJSONArray. put(double value)Append a double value.JSONArrayJSONArray. put(int index, boolean value)Put or replace a boolean value in the JSONArray.JSONArrayJSONArray. put(int index, double value)Put or replace a double value.JSONArrayJSONArray. put(int index, int value)Put or replace an int value.JSONArrayJSONArray. put(int index, long value)Put or replace a long value.JSONArrayJSONArray. put(int index, java.lang.Object value)Put or replace an object value in the JSONArray.JSONArrayJSONArray. put(int index, java.util.Collection<java.lang.Object> value)Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.JSONArrayJSONArray. put(int index, java.util.Map<?,?> value)Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.JSONObjectJSONObject. put(java.lang.String key, boolean value)Put a key/boolean pair in the JSONObject.JSONObjectJSONObject. put(java.lang.String key, double value)Put a key/double pair in the JSONObject.JSONObjectJSONObject. put(java.lang.String key, int value)Put a key/int pair in the JSONObject.JSONObjectJSONObject. put(java.lang.String key, long value)Put a key/long pair in the JSONObject.JSONObjectJSONObject. put(java.lang.String key, java.lang.Object value)Put a key/value pair in the JSONObject.JSONObjectJSONObject. put(java.lang.String key, java.util.Collection<java.lang.Object> value)Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.JSONObjectJSONObject. put(java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> value)Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.JSONObjectJSONObject. putOpt(java.lang.String key, java.lang.Object value)Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.static JSONArrayCDL. rowToJSONArray(JSONTokener x)Produce a JSONArray of strings from a row of comma delimited values.static JSONObjectCDL. rowToJSONObject(JSONArray names, JSONTokener x)Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements.booleanXMLTokener. skipPast(java.lang.String to)Skip characters until past the requested string.charJSONTokener. skipTo(char to)Skip characters until the next character is the requested character.JSONObjectI_CmsJsonifable. toJson()Returns the JSON representation of this object.static JSONArrayCDL. toJSONArray(java.lang.String string)Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.static JSONArrayCDL. toJSONArray(JSONArray names, java.lang.String string)Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.static JSONArrayCDL. toJSONArray(JSONArray names, JSONTokener x)Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.static JSONArrayCDL. toJSONArray(JSONTokener x)Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.static JSONArrayJSONML. toJSONArray(java.lang.String string)Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.static JSONArrayJSONML. toJSONArray(XMLTokener x)Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.JSONArrayJSONObject. toJSONArray(JSONArray names)Produce a JSONArray containing the values of the members of this JSONObject.JSONObjectJSONArray. toJSONObject(JSONArray names)Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.static JSONObjectXML. toJSONObject(java.lang.String string)Convert a well-formed (but not necessarily valid) XML string into a JSONObject.static java.lang.StringCDL. toString(JSONArray ja)Produce a comma delimited text from a JSONArray of JSONObjects.static java.lang.StringCDL. toString(JSONArray names, JSONArray ja)Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.java.lang.StringJSONArray. toString(int indentFactor)Make a pretty printed JSON text of this JSONArray.static java.lang.StringJSONML. toString(JSONArray ja)Reverse the JSONML transformation, making an XML text from a JSONArray.java.lang.StringJSONObject. toString(int indentFactor)Make a pretty printed JSON text of this JSONObject.static java.lang.StringXML. toString(java.lang.Object o)Convert a JSONObject into a well-formed, element-normal XML string.static java.lang.StringXML. toString(java.lang.Object o, java.lang.String tagName)Convert a JSONObject into a well-formed, element-normal XML string.JSONWriterJSONWriter. value(boolean b)Append either the valuetrueor the valuefalse.JSONWriterJSONWriter. value(double d)Append a double value.JSONWriterJSONWriter. value(long l)Append a long value.JSONWriterJSONWriter. value(java.lang.Object o)Append an object value.static java.lang.StringJSONObject. valueToString(java.lang.Object value)Make a JSON text of an Object value.static java.lang.StringJSONObject. valueToString(java.lang.Object value, int indentFactor, int indent)Make a pretty printed JSON text of an object value.java.io.WriterJSONArray. write(java.io.Writer writer)Write the contents of the JSONArray as JSON text to a writer.java.io.WriterJSONObject. write(java.io.Writer writer)Write the contents of the JSONObject as JSON text to a writer.Constructors in org.opencms.json that throw JSONException Constructor Description JSONArray(java.lang.Object array)Construct a JSONArray from an array.JSONArray(java.lang.Object array, boolean includeSuperClass)Construct a JSONArray from an array with a bean.JSONArray(java.lang.String source)Construct a JSONArray from a source JSON text.JSONArray(JSONTokener x)Construct a JSONArray from a JSONTokener.JSONObject(java.lang.String source)Construct a JSONObject from a source JSON text string.JSONObject(java.lang.String source, boolean sorted)Construct a JSONObject from a source JSON text string, optionally sorted.JSONObject(JSONObject jo, java.lang.String[] names)Construct a JSONObject from a subset of another JSONObject.JSONObject(JSONTokener x)Construct a JSONObject from a JSONTokener.JSONObject(JSONTokener x, boolean sorted)Construct a JSONObject from a JSONTokener, optionally sorted. -
Uses of JSONException in org.opencms.jsp.search.config.parser
Methods in org.opencms.jsp.search.config.parser that throw JSONException Modifier and Type Method Description protected voidCmsJSONSearchConfigurationParser. init(java.lang.String configString, I_CmsSearchConfiguration baseConfig)Initialization that parses the String to a JSON object.protected java.util.List<I_CmsSearchConfigurationFacetQuery.I_CmsFacetQueryItem>CmsJSONSearchConfigurationParser. parseFacetQueryItems(JSONObject queryFacetObject)Parses the list of query items for the query facet.protected static java.util.List<java.lang.String>CmsJSONSearchConfigurationParser. parseMandatoryStringValues(JSONObject json, java.lang.String key)Helper for reading a mandatory String value list - throwing an Exception if parsing fails.Constructors in org.opencms.jsp.search.config.parser that throw JSONException Constructor Description CmsJSONSearchConfigurationParser(java.lang.String json)Constructor taking the JSON as String.CmsJSONSearchConfigurationParser(java.lang.String json, I_CmsSearchConfiguration baseConfig)Constructor taking the JSON as String.CmsSimpleSearchConfigurationParser(CmsObject cms, CmsConfigurationBean config, java.lang.String additionalParamJSON)Constructor. -
Uses of JSONException in org.opencms.jsp.userdata
Constructors in org.opencms.jsp.userdata that throw JSONException Constructor Description CmsUserDataRequestInfo(java.lang.String data)Creates a new instance from the JSON data in a string. -
Uses of JSONException in org.opencms.ui.favorites
Methods in org.opencms.ui.favorites that throw JSONException Modifier and Type Method Description JSONObjectCmsFavoriteEntry. toJson()Converts this object to JSON. -
Uses of JSONException in org.opencms.util
Methods in org.opencms.util that throw JSONException Modifier and Type Method Description static java.lang.ObjectCmsJsonUtil. mapJson(java.lang.Object obj, java.util.function.Function<java.lang.Object,java.lang.Object> func)Recursively walks through a JSON structure and returns a copy of it, but transforms primitive values using the given function for the copy.static JSONObjectCmsJsonUtil. mapJsonObject(JSONObject obj, java.util.function.Function<java.lang.Object,java.lang.Object> func)Recursively walks through a JSON object and returns a copy of it, but transforms primitive values using the given function for the copy. -
Uses of JSONException in org.opencms.widgets
Methods in org.opencms.widgets that throw JSONException Modifier and Type Method Description protected voidCmsHtmlWidget. addEmbeddedGalleryOptions(JSONObject result, CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, java.util.Locale contentLocale)Adds the configuration for embedded gallery widgets the the JSON object.protected abstract JSONObjectA_CmsAdeGalleryWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)Returns additional widget information encapsulated in a JSON object.protected JSONObjectCmsAdeDownloadGalleryWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)protected JSONObjectCmsAdeImageGalleryWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param)protected JSONObjectCmsVfsImageWidget. getAdditionalGalleryInfo(CmsObject cms, java.lang.String resource, CmsMessages messages, I_CmsWidgetParameter param) -
Uses of JSONException in org.opencms.workplace.editors.directedit
Methods in org.opencms.workplace.editors.directedit that throw JSONException Modifier and Type Method Description java.lang.StringCmsAdvancedDirectEditProvider. startDirectEditEnabled(CmsDirectEditParams params, CmsDirectEditResourceInfo resourceInfo)Returns the start HTML for an enabled direct edit button. -
Uses of JSONException in org.opencms.xml.xml2json
Methods in org.opencms.xml.xml2json that throw JSONException Modifier and Type Method Description voidCmsResourceDataJsonHelper. addPathAndLink(JSONObject json)Adds path and link fields for the resource to the given JSON object.voidCmsResourceDataJsonHelper. addProperties(JSONObject result)Adds property data to the result object.JSONObjectCmsResourceDataJsonHelper. attributes()Creates a JSON object with the attributes of the resource.JSONObjectCmsJsonRequest. getErrorsAsJson()Returns the errors of this request as JSON.JSONObjectCmsResourceDataJsonHelper. properties(boolean inherited)Creates a JSON object with the properties of the resource. -
Uses of JSONException in org.opencms.xml.xml2json.document
Methods in org.opencms.xml.xml2json.document that throw JSONException Modifier and Type Method Description java.lang.ObjectCmsJsonDocumentContainerPage. getJson()java.lang.ObjectCmsJsonDocumentFolder. getJson()java.lang.ObjectCmsJsonDocumentList. getJson()java.lang.ObjectCmsJsonDocumentResource. getJson()java.lang.ObjectCmsJsonDocumentXmlContent. getJson()java.lang.ObjectI_CmsJsonDocument. getJson()Returns the JSON document.protected voidCmsJsonDocumentResource. insertJsonResource()If the request parameter "wrapper" is set, inserts information about this resource into the JSON document.protected voidCmsJsonDocumentResource. insertJsonResourceAttributes()Inserts the resource attributes into this JSON document.protected voidCmsJsonDocumentResource. insertJsonResourceFile()Inserts file type information into this JSON document.protected voidCmsJsonDocumentResource. insertJsonResourceParams()Inserts information about the effective request parameters into this JSON document.protected voidCmsJsonDocumentResource. insertJsonResourcePathAndLink()Inserts path and link information about this resource into this JSON document.protected voidCmsJsonDocumentResource. insertJsonResourceProperties()Inserts the properties of this resource into the JSON document.protected voidCmsJsonDocumentXmlContent. insertJsonWrapper()Inserts a wrapper with resource information into this JSON document. -
Uses of JSONException in org.opencms.xml.xml2json.renderer
Methods in org.opencms.xml.xml2json.renderer that throw JSONException Modifier and Type Method Description static JSONObjectCmsJsonRendererXmlContent. linkAndPath(java.lang.String link, java.lang.String path, CmsObject cms)Builds a simple JSON object with link and path fields whose values are taken from the corresponding parameters.java.lang.ObjectCmsJsonRendererXmlContent. render(CmsXmlContent content, java.util.Locale locale)java.lang.ObjectI_CmsJsonRendererXmlContent. render(CmsXmlContent content, java.util.Locale locale)Converts the XML content for a single locale to a JSON objectstatic JSONObjectCmsJsonRendererXmlContent. renderAllLocales(CmsXmlContent content, I_CmsJsonRendererXmlContent renderer)Helper method to apply renderer to all locales of an XML content, and put the resulting objects into a JSON object with the locales as keys.protected java.util.AbstractMap.SimpleEntry<java.lang.String,java.lang.Object>CmsJsonRendererXmlContent. renderField(CmsXmlContentTree.Field field)Renders a tree field as a field in the given JSON object.java.lang.ObjectCmsJsonRendererXmlContent. renderNode(CmsXmlContentTree.Node node)Renders a tree node as JSON.protected java.lang.ObjectCmsJsonRendererXmlContent. renderSimpleValue(CmsXmlContentTree.Node node)Renders a simple value (i.e.
-