Class ImmutableProjectJSON
java.lang.Object
org.json.JSONObject
ca.phon.project.ImmutableProjectJSON
public class ImmutableProjectJSON
extends org.json.JSONObject
Immutable wrapper for a project JSON object.
This class is used to provide read-only access to the project JSON
while preventing any modifications.
-
Field Summary
Fields inherited from class org.json.JSONObject
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObjectaccumulate(String key, Object value) org.json.JSONObjectvoidclear()entrySet()getBigDecimal(String key) getBigInteger(String key) booleangetBoolean(String key) double<E extends Enum<E>>
Efloatintorg.json.JSONArraygetJSONArray(String key) org.json.JSONObjectgetJSONObject(String key) longbooleanorg.json.JSONObjectbooleanisEmpty()booleankeys()keySet()intlength()org.json.JSONArraynames()optBigDecimal(String key, BigDecimal defaultValue) optBigInteger(String key, BigInteger defaultValue) booleanoptBoolean(String key) booleanoptBoolean(String key, boolean defaultValue) optBooleanObject(String key) optBooleanObject(String key, Boolean defaultValue) doubledoubleoptDoubleObject(String key) optDoubleObject(String key, Double defaultValue) <E extends Enum<E>>
E<E extends Enum<E>>
EfloatfloatoptFloatObject(String key) optFloatObject(String key, Float defaultValue) intintoptIntegerObject(String key) optIntegerObject(String key, Integer defaultValue) org.json.JSONArrayoptJSONArray(String key) org.json.JSONArrayoptJSONArray(String key, org.json.JSONArray defaultValue) org.json.JSONObjectoptJSONObject(String key) org.json.JSONObjectoptJSONObject(String key, org.json.JSONObject defaultValue) longlongoptLongObject(String key) optLongObject(String key, Long defaultValue) optQuery(org.json.JSONPointer jsonPointer) org.json.JSONObjectorg.json.JSONObjectorg.json.JSONObjectorg.json.JSONObjectorg.json.JSONObjectorg.json.JSONObjectorg.json.JSONObjectput(String key, Collection<?> value) org.json.JSONObjectorg.json.JSONObjectorg.json.JSONObjectquery(org.json.JSONPointer jsonPointer) booleanorg.json.JSONArraytoJSONArray(org.json.JSONArray names) toMap()toString()toString(int indentFactor) Methods inherited from class org.json.JSONObject
doubleToString, getNames, getNames, isDecimalNotation, numberToString, quote, quote, stringToNumber, stringToValue, testValidity, valueToString, wrap
-
Constructor Details
-
ImmutableProjectJSON
public ImmutableProjectJSON(org.json.JSONObject projectJson)
-
-
Method Details
-
getMapType
-
accumulate
-
append
-
get
-
getEnum
-
getBoolean
- Overrides:
getBooleanin classorg.json.JSONObject- Throws:
org.json.JSONException
-
getBigInteger
- Overrides:
getBigIntegerin classorg.json.JSONObject- Throws:
org.json.JSONException
-
getBigDecimal
- Overrides:
getBigDecimalin classorg.json.JSONObject- Throws:
org.json.JSONException
-
getDouble
- Overrides:
getDoublein classorg.json.JSONObject- Throws:
org.json.JSONException
-
getFloat
- Overrides:
getFloatin classorg.json.JSONObject- Throws:
org.json.JSONException
-
getNumber
-
getInt
- Overrides:
getIntin classorg.json.JSONObject- Throws:
org.json.JSONException
-
getJSONArray
- Overrides:
getJSONArrayin classorg.json.JSONObject- Throws:
org.json.JSONException
-
getJSONObject
- Overrides:
getJSONObjectin classorg.json.JSONObject- Throws:
org.json.JSONException
-
getLong
- Overrides:
getLongin classorg.json.JSONObject- Throws:
org.json.JSONException
-
getString
-
has
- Overrides:
hasin classorg.json.JSONObject
-
increment
- Overrides:
incrementin classorg.json.JSONObject- Throws:
org.json.JSONException
-
isNull
- Overrides:
isNullin classorg.json.JSONObject
-
keys
-
keySet
-
entrySet
-
length
public int length()- Overrides:
lengthin classorg.json.JSONObject
-
clear
public void clear()- Overrides:
clearin classorg.json.JSONObject
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classorg.json.JSONObject
-
names
public org.json.JSONArray names()- Overrides:
namesin classorg.json.JSONObject
-
opt
-
optEnum
-
optEnum
-
optBoolean
- Overrides:
optBooleanin classorg.json.JSONObject
-
optBoolean
- Overrides:
optBooleanin classorg.json.JSONObject
-
optBooleanObject
-
optBooleanObject
-
optBigDecimal
- Overrides:
optBigDecimalin classorg.json.JSONObject
-
optBigInteger
- Overrides:
optBigIntegerin classorg.json.JSONObject
-
optDouble
- Overrides:
optDoublein classorg.json.JSONObject
-
optDouble
- Overrides:
optDoublein classorg.json.JSONObject
-
optDoubleObject
-
optDoubleObject
-
optFloat
- Overrides:
optFloatin classorg.json.JSONObject
-
optFloat
- Overrides:
optFloatin classorg.json.JSONObject
-
optFloatObject
-
optFloatObject
-
optInt
- Overrides:
optIntin classorg.json.JSONObject
-
optInt
- Overrides:
optIntin classorg.json.JSONObject
-
optIntegerObject
-
optIntegerObject
-
optJSONArray
- Overrides:
optJSONArrayin classorg.json.JSONObject
-
optJSONArray
- Overrides:
optJSONArrayin classorg.json.JSONObject
-
optJSONObject
- Overrides:
optJSONObjectin classorg.json.JSONObject
-
optJSONObject
- Overrides:
optJSONObjectin classorg.json.JSONObject
-
optLong
- Overrides:
optLongin classorg.json.JSONObject
-
optLong
- Overrides:
optLongin classorg.json.JSONObject
-
optLongObject
-
optLongObject
-
optNumber
-
optNumber
-
optString
-
optString
-
put
- Overrides:
putin classorg.json.JSONObject- Throws:
org.json.JSONException
-
put
- Overrides:
putin classorg.json.JSONObject- Throws:
org.json.JSONException
-
put
- Overrides:
putin classorg.json.JSONObject- Throws:
org.json.JSONException
-
put
- Overrides:
putin classorg.json.JSONObject- Throws:
org.json.JSONException
-
put
- Overrides:
putin classorg.json.JSONObject- Throws:
org.json.JSONException
-
put
- Overrides:
putin classorg.json.JSONObject- Throws:
org.json.JSONException
-
put
-
put
-
putOnce
-
putOpt
-
query
-
query
- Overrides:
queryin classorg.json.JSONObject
-
optQuery
-
optQuery
- Overrides:
optQueryin classorg.json.JSONObject
-
remove
-
similar
- Overrides:
similarin classorg.json.JSONObject
-
toJSONArray
public org.json.JSONArray toJSONArray(org.json.JSONArray names) throws org.json.JSONException - Overrides:
toJSONArrayin classorg.json.JSONObject- Throws:
org.json.JSONException
-
toString
- Overrides:
toStringin classorg.json.JSONObject
-
toString
- Overrides:
toStringin classorg.json.JSONObject- Throws:
org.json.JSONException
-
write
-
write
-
toMap
-