Package org.eclipse.epsilon.emc.json
Class JsonModelObject
java.lang.Object
org.eclipse.epsilon.emc.json.JsonModelObject
- All Implemented Interfaces:
Map<String,
,Object> Contained
,HasCreatorModel
public class JsonModelObject
extends Object
implements Contained, Map<String,Object>, HasCreatorModel
Thin wrapper over a
JSONObject
which adds the concept of a container to its
values.-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.epsilon.emc.json.Contained
addContainer, isContainedBy, removeContainer
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
JsonModelObject
public JsonModelObject() -
JsonModelObject
-
-
Method Details
-
getCreatorModel
- Specified by:
getCreatorModel
in interfaceHasCreatorModel
-
getContainers
- Specified by:
getContainers
in interfaceContained
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<String,
Object>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
Object>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
hashCode
public int hashCode() -
equals
-
toString
-