Uses of Class
org.opencms.json.JSONArray
Packages that use JSONArray
Package
Description
Classes to create JSON objects and arrays for JavaScript in OpenCms.
Base classes for the editors (WYSIWYG, plain text, XML content) used in the OpenCms Workplace.
-
Uses of JSONArray in org.opencms.json
Methods in org.opencms.json that return JSONArrayModifier and TypeMethodDescriptionJSONArray.getJSONArray(int index) Get the JSONArray associated with an index.JSONObject.getJSONArray(String key) Get the JSONArray value associated with a key.JSONObject.names()Produce a JSONArray containing the names of the elements of this JSONObject.JSONArray.optJSONArray(int index) Get the optional JSONArray associated with an index.JSONObject.optJSONArray(String key) Get an optional JSONArray associated with a key.JSONArray.put(boolean value) Append a boolean value.JSONArray.put(double value) Append a double value.JSONArray.put(int value) Append an int value.JSONArray.put(int index, boolean value) Put or replace a boolean value in the JSONArray.JSONArray.put(int index, double value) Put or replace a double value.JSONArray.put(int index, int value) Put or replace an int value.JSONArray.put(int index, long value) Put or replace a long value.Put or replace an object value in the JSONArray.JSONArray.put(int index, Collection<Object> value) Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.JSONArray.put(long value) Append an long value.Append an object value.JSONArray.put(Collection<Object> value) Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.static JSONArrayCDL.rowToJSONArray(JSONTokener x) Produce a JSONArray of strings from a row of comma delimited values.static JSONArrayCDL.toJSONArray(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, 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(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.JSONObject.toJSONArray(JSONArray names) Produce a JSONArray containing the values of the members of this JSONObject.Methods in org.opencms.json with parameters of type JSONArrayModifier and TypeMethodDescriptionvoidAppends values from another JSON array.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.static StringCDL.rowToString(JSONArray ja) Produce a comma delimited text row from a JSONArray.static JSONArrayCDL.toJSONArray(JSONArray names, 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.JSONObject.toJSONArray(JSONArray names) Produce a JSONArray containing the values of the members of this JSONObject.JSONArray.toJSONObject(JSONArray names) Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.static StringProduce a comma delimited text from a JSONArray of JSONObjects.static StringProduce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.static StringReverse the JSONML transformation, making an XML text from a JSONArray. -
Uses of JSONArray in org.opencms.workplace.editors
Methods in org.opencms.workplace.editors that return JSONArrayModifier and TypeMethodDescriptionCmsXmlContentEditor.buildElementChoices(String elementName, boolean choiceType, boolean checkChoice) Returns the JSON array with information about the choices of a given element.