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, waitMethods inherited from interface org.eclipse.epsilon.emc.json.Contained
addContainer, isContainedBy, removeContainerMethods 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:
getCreatorModelin interfaceHasCreatorModel
-
getContainers
- Specified by:
getContainersin interfaceContained
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
hashCode
public int hashCode() -
equals
-
toString
-