Class EObjects
- java.lang.Object
-
- org.eclipse.emfcloud.jackson.utils.EObjects
-
public final class EObjects extends Object
Utility class to facilitate access or modification of eObjects.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.emf.ecore.EObjectcreateEntry(String key, Object value, org.eclipse.emf.ecore.EClass type)Creates a map entry of type string, string.static booleanisContainmentProxy(com.fasterxml.jackson.databind.DatabindContext ctxt, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EObject contained)Checks that the contained object is in a different resource than it's owner, making it a contained proxy.static voidsetOrAdd(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, Object value)Set or add a value to an object reference.
-
-
-
Method Detail
-
setOrAdd
public static void setOrAdd(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, Object value)Set or add a value to an object reference. The value must be an EObject.- Parameters:
owner- EObject owning the referencereference- the reference of the value to setvalue- value to set for the reference
-
isContainmentProxy
public static boolean isContainmentProxy(com.fasterxml.jackson.databind.DatabindContext ctxt, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EObject contained)Checks that the contained object is in a different resource than it's owner, making it a contained proxy.- Parameters:
ctxt- the databind contextowner- EObject owning the contained objectcontained- contained object to be evaluated- Returns:
- true if proxy
-
-