| Modifier and Type | Method and Description |
|---|---|
JSONObject |
IndividualImpl.toJSON() |
JSONObject |
Individual.toJSON() |
| Modifier and Type | Method and Description |
|---|---|
protected JSONObject |
JSONReconcileServlet.getMetadata(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String defaultNamespace,
String defaultTypeList,
String serverName,
int serverPort)
Returns a default JSON response.
|
| Modifier and Type | Method and Description |
|---|---|
static JSONObject |
IndividualListResultsUtils.wrapIndividualListResultsInJson(IndividualListResults results,
VitroRequest vreq,
boolean multipleVclasses)
Process results related to VClass or vclasses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IndividualJsonWrapper.AddJSONFields.add(JSONObject jo,
VitroRequest vreq,
Individual ind) |
| Modifier and Type | Method and Description |
|---|---|
static JSONObject |
JsonServlet.getRandomSearchIndividualsByVClass(String vclassURI,
javax.servlet.http.HttpServletRequest req) |
static JSONObject |
JsonServlet.getSearchIndividualsByVClass(String vclassURI,
javax.servlet.http.HttpServletRequest req) |
static JSONObject |
JsonServlet.getSearchIndividualsByVClasses(List<String> vclassURIs,
javax.servlet.http.HttpServletRequest req) |
protected abstract JSONObject |
JsonObjectProducer.process()
Sub-classes implement this method.
|
protected JSONObject |
GetVClassesForVClassGroup.process() |
protected JSONObject |
GetSearchIndividualsByVClasses.process() |
protected JSONObject |
GetSearchIndividualsByVClass.process() |
protected JSONObject |
GetRenderedSearchIndividualsByVClass.process()
Search for individuals by VClass or VClasses in the case of multiple parameters.
|
protected JSONObject |
GetRandomSearchIndividualsByVClass.process()
Search for individuals by VClass.
|
protected JSONObject |
GetAllVClasses.process() |
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
IndividualFiltering.toJSON() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
JsonToFmModel.convertJSONObjectToMap(JSONObject jo)
JSONObject is an unordered collection of name/value pairs -> convert to Map (equivalent to Freemarker "hash")
|
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
IndividualsForClassesDataGetter.convertToJSON(Map<String,Object> dataMap,
VitroRequest vreq)
For processig of JSONObject
|
JSONObject |
ClassGroupPageData.convertToJSON(Map<String,Object> dataMap,
VitroRequest vreq)
For processing of JSONObject
|
JSONObject |
BrowseDataGetter.convertToJSON(Map<String,Object> dataMap,
VitroRequest vreq)
For processig of JSONObject
|
static JSONObject |
DataGetterUtils.covertDataToJSONForPage(VitroRequest vreq,
String pageUri,
com.hp.hpl.jena.rdf.model.Model displayModel)
Convert data to JSON for page uri based on type and related datagetters
TODO: How to handle different data getters? Will this replace json fields or add to them?
|
static JSONObject |
DataGetterUtils.processVClassGroupJSON(VClassGroup vcg) |
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
JSONObject.accumulate(String key,
Object value)
Accumulate values under a key.
|
JSONObject |
JSONObject.append(String key,
Object value)
Append values to the array under a key.
|
JSONObject |
JSONArray.getJSONObject(int index)
Get the JSONObject associated with an index.
|
JSONObject |
JSONObject.getJSONObject(String key)
Get the JSONObject value associated with a key.
|
JSONObject |
JSONArray.optJSONObject(int index)
Get the optional JSONObject associated with an index.
|
JSONObject |
JSONObject.optJSONObject(String key)
Get an optional JSONObject associated with a key.
|
JSONObject |
JSONObject.put(String key,
boolean value)
Put a key/boolean pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
Collection value)
Put a key/value pair in the JSONObject, where the value will be a
JSONArray which is produced from a Collection.
|
JSONObject |
JSONObject.put(String key,
double value)
Put a key/double pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
int value)
Put a key/int pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
long value)
Put a key/long pair in the JSONObject.
|
JSONObject |
JSONObject.put(String key,
Map value)
Put a key/value pair in the JSONObject, where the value will be a
JSONObject which is produced from a Map.
|
JSONObject |
JSONObject.put(String key,
Object value)
Put a key/value pair in the JSONObject.
|
JSONObject |
JSONObject.putOpt(String key,
Object value)
Put a key/value pair in the JSONObject, but only if the
key and the value are both non-null.
|
static JSONObject |
CDL.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.
|
JSONObject |
JSONArray.toJSONObject(JSONArray names)
Produce a JSONObject by combining a JSONArray of names with the values
of this JSONArray.
|
static JSONObject |
XML.toJSONObject(String string)
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject.
|
static JSONObject |
HTTP.toJSONObject(String string)
Convert an HTTP header string into a JSONObject.
|
static JSONObject |
CookieList.toJSONObject(String string)
Convert a cookie list into a JSONObject.
|
static JSONObject |
Cookie.toJSONObject(String string)
Convert a cookie specification string into a JSONObject.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
HTTP.toString(JSONObject o)
Convert a JSONObject into an HTTP header.
|
static String |
CookieList.toString(JSONObject o)
Convert a JSONObject into a cookie list.
|
static String |
Cookie.toString(JSONObject o)
Convert a JSONObject into a cookie specification string.
|
| Constructor and Description |
|---|
JSONObject(JSONObject jo,
String[] sa)
Construct a JSONObject from a subset of another JSONObject.
|
Copyright © 2016. All rights reserved.