Package | Description |
---|---|
org.elkoserver.json |
Utilities for working with JSON (JavaScript Object Notation) objects.
|
org.elkoserver.server.context.caps |
A package of mods related to using capability security patterns in Elko
Context Server applications.
|
Modifier and Type | Method and Description |
---|---|
JSONArray |
JSONArray.getArray(int index)
Obtain an array-valued element value.
|
JSONArray |
JSONObject.getArray(String name)
Obtain an array property value.
|
boolean |
JSONArray.getBoolean(int index)
Obtain the boolean value of an element.
|
boolean |
JSONObject.getBoolean(String name)
Obtain the boolean value of a property.
|
double |
JSONArray.getDouble(int index)
Obtain the double value of an element.
|
double |
JSONObject.getDouble(String name)
Obtain a double property value.
|
int |
JSONArray.getInt(int index)
Obtain the integer value of an element.
|
int |
JSONObject.getInt(String name)
Obtain an integer property value.
|
long |
JSONArray.getLong(int index)
Obtain the long value of an element.
|
long |
JSONObject.getLong(String name)
Obtain a long property value.
|
JSONObject |
JSONArray.getObject(int index)
Obtain the JSON object value of an element.
|
JSONObject |
JSONObject.getObject(String name)
Obtain a JSON object property value.
|
String |
JSONArray.getString(int index)
Obtain the string value of an element.
|
String |
JSONObject.getString(String name)
Obtain a string property value.
|
JSONArray |
JSONObject.optArray(String name)
Obtain an array property value or an empty array if the property has no
value.
|
JSONArray |
JSONObject.optArray(String name,
JSONArray defaultValue)
Obtain an array property value or a default value if the property has no
value.
|
boolean |
JSONObject.optBoolean(String name,
boolean defaultValue)
Obtain the boolean value of a property or a default value if the
property has no value.
|
double |
JSONObject.optDouble(String name,
double defaultValue)
Obtain the double value of a property or a default value if the property
has no value.
|
int |
JSONObject.optInt(String name,
int defaultValue)
Obtain the integer value of a property or a default value if the
property has no value.
|
long |
JSONObject.optLong(String name,
long defaultValue)
Obtain the long value of a property or a default value if the property
has no value.
|
JSONObject |
JSONObject.optObject(String name)
Obtain the JSON object value of a property or an empty object if the
property has no value.
|
JSONObject |
JSONObject.optObject(String name,
JSONObject defaultValue)
Obtain the JSON object value of a property or a default value if the
property has no value.
|
String |
JSONObject.optString(String name,
String defaultValue)
Obtain the string value of a property or a default value if the
property has no value.
|
Constructor and Description |
---|
Cap(JSONObject desc)
JSON-driven constructor.
|
ContextKeyCap(JSONObject raw,
String[] contexts)
JSON-driven constructor.
|
Definer(JSONObject raw)
JSON-driven constructor.
|
Copyright © 2017. All rights reserved.