public class MetadataObject extends Object implements net.sf.json.JSON, Map, Comparable
Constructor and Description |
---|
MetadataObject() |
MetadataObject(net.sf.json.JSONObject o) |
Modifier and Type | Method and Description |
---|---|
net.sf.json.JSONObject |
accumulate(String key,
boolean value) |
net.sf.json.JSONObject |
accumulate(String key,
double value) |
net.sf.json.JSONObject |
accumulate(String key,
int value) |
net.sf.json.JSONObject |
accumulate(String key,
long value) |
net.sf.json.JSONObject |
accumulate(String key,
Object value) |
net.sf.json.JSONObject |
accumulate(String key,
Object value,
net.sf.json.JsonConfig jsonConfig) |
void |
accumulateAll(Map map) |
void |
accumulateAll(Map map,
net.sf.json.JsonConfig jsonConfig) |
void |
clear() |
int |
compareTo(Object obj) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
boolean |
containsValue(Object value,
net.sf.json.JsonConfig jsonConfig) |
net.sf.json.JSONObject |
discard(String key) |
net.sf.json.JSONObject |
element(String key,
boolean value) |
net.sf.json.JSONObject |
element(String key,
Collection value) |
net.sf.json.JSONObject |
element(String key,
Collection value,
net.sf.json.JsonConfig jsonConfig) |
net.sf.json.JSONObject |
element(String key,
double value) |
net.sf.json.JSONObject |
element(String key,
int value) |
net.sf.json.JSONObject |
element(String key,
long value) |
net.sf.json.JSONObject |
element(String key,
Map value) |
net.sf.json.JSONObject |
element(String key,
Map value,
net.sf.json.JsonConfig jsonConfig) |
net.sf.json.JSONObject |
element(String key,
Object value) |
net.sf.json.JSONObject |
element(String key,
Object value,
net.sf.json.JsonConfig jsonConfig) |
net.sf.json.JSONObject |
elementOpt(String key,
Object value) |
net.sf.json.JSONObject |
elementOpt(String key,
Object value,
net.sf.json.JsonConfig jsonConfig) |
Set |
entrySet() |
boolean |
equals(Object obj) |
Object |
get(Object key) |
Object |
get(String key) |
boolean |
getBoolean(String key) |
net.sf.json.JSONObject |
getContent() |
List<String> |
getDependentObjectIds()
Extracts the dependent objects IDs from the content
|
List<String> |
getDependentObjectUris()
Extracts the dependent objects uris from the content
|
double |
getDouble(String key) |
String |
getId()
Extracts the object's id
|
String |
getIdentifier()
Extracts the object's identifier
|
int |
getInt(String key) |
net.sf.json.JSONArray |
getJSONArray(String key) |
net.sf.json.JSONObject |
getJSONObject(String key) |
long |
getLong(String key) |
net.sf.json.JSONObject |
getMeta() |
String |
getString(String key) |
String |
getType()
Extracts the object's type
|
String |
getUri()
Extracts the object's uri
|
boolean |
has(String key) |
int |
hashCode() |
boolean |
isArray() |
boolean |
isEmpty() |
boolean |
isNullObject() |
Iterator |
keys() |
Set |
keySet() |
net.sf.json.JSONArray |
names() |
net.sf.json.JSONArray |
names(net.sf.json.JsonConfig jsonConfig) |
Object |
opt(String key) |
boolean |
optBoolean(String key) |
boolean |
optBoolean(String key,
boolean defaultValue) |
double |
optDouble(String key) |
double |
optDouble(String key,
double defaultValue) |
int |
optInt(String key) |
int |
optInt(String key,
int defaultValue) |
net.sf.json.JSONArray |
optJSONArray(String key) |
net.sf.json.JSONObject |
optJSONObject(String key) |
long |
optLong(String key) |
long |
optLong(String key,
long defaultValue) |
String |
optString(String key) |
String |
optString(String key,
String defaultValue) |
Object |
put(Object key,
Object value) |
void |
putAll(Map map) |
void |
putAll(Map map,
net.sf.json.JsonConfig jsonConfig) |
Object |
remove(Object key) |
Object |
remove(String key) |
int |
size() |
void |
stripKeysForCreate()
Strips all keys that should not be sent to the create method
|
void |
stripKeysForRead()
Strips all keys that should not be sent to the create method
|
net.sf.json.JSONArray |
toJSONArray(net.sf.json.JSONArray names) |
String |
toString() |
String |
toString(int indentFactor) |
String |
toString(int indentFactor,
int indent) |
Collection |
values() |
Writer |
write(Writer writer) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public MetadataObject(net.sf.json.JSONObject o)
public MetadataObject()
public List<String> getDependentObjectUris()
public List<String> getDependentObjectIds()
public void stripKeysForCreate()
public void stripKeysForRead()
public net.sf.json.JSONObject getContent()
public net.sf.json.JSONObject getMeta()
public String getIdentifier()
public String getUri()
public String getType()
public String getId()
public net.sf.json.JSONObject accumulate(String key, boolean value)
public net.sf.json.JSONObject accumulate(String key, double value)
public net.sf.json.JSONObject accumulate(String key, int value)
public net.sf.json.JSONObject accumulate(String key, long value)
public net.sf.json.JSONObject accumulate(String key, Object value, net.sf.json.JsonConfig jsonConfig)
public void accumulateAll(Map map)
public void accumulateAll(Map map, net.sf.json.JsonConfig jsonConfig)
public int compareTo(Object obj)
compareTo
in interface Comparable
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public boolean containsValue(Object value, net.sf.json.JsonConfig jsonConfig)
public net.sf.json.JSONObject discard(String key)
public net.sf.json.JSONObject element(String key, boolean value)
public net.sf.json.JSONObject element(String key, Collection value)
public net.sf.json.JSONObject element(String key, Collection value, net.sf.json.JsonConfig jsonConfig)
public net.sf.json.JSONObject element(String key, double value)
public net.sf.json.JSONObject element(String key, int value)
public net.sf.json.JSONObject element(String key, long value)
public net.sf.json.JSONObject element(String key, Map value, net.sf.json.JsonConfig jsonConfig)
public net.sf.json.JSONObject element(String key, Object value, net.sf.json.JsonConfig jsonConfig)
public net.sf.json.JSONObject elementOpt(String key, Object value, net.sf.json.JsonConfig jsonConfig)
public boolean equals(Object obj)
public boolean getBoolean(String key)
public double getDouble(String key)
public int getInt(String key)
public net.sf.json.JSONArray getJSONArray(String key)
public net.sf.json.JSONObject getJSONObject(String key)
public long getLong(String key)
public boolean has(String key)
public int hashCode()
public boolean isArray()
isArray
in interface net.sf.json.JSON
public boolean isEmpty()
public boolean isNullObject()
public Iterator keys()
public net.sf.json.JSONArray names()
public net.sf.json.JSONArray names(net.sf.json.JsonConfig jsonConfig)
public boolean optBoolean(String key)
public boolean optBoolean(String key, boolean defaultValue)
public double optDouble(String key)
public double optDouble(String key, double defaultValue)
public int optInt(String key)
public int optInt(String key, int defaultValue)
public net.sf.json.JSONArray optJSONArray(String key)
public net.sf.json.JSONObject optJSONObject(String key)
public long optLong(String key)
public long optLong(String key, long defaultValue)
public void putAll(Map map, net.sf.json.JsonConfig jsonConfig)
public int size()
public net.sf.json.JSONArray toJSONArray(net.sf.json.JSONArray names)
public String toString(int indentFactor)
toString
in interface net.sf.json.JSON
public String toString(int indentFactor, int indent)
toString
in interface net.sf.json.JSON
public Collection values()
Copyright © 2014. All rights reserved.