public class ElementOperations
extends java.lang.Object
The following operations are supported:
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.common.util.EList<Element> |
allOwnedElements(Element element)
The query allOwnedElements() gives all of the direct and indirect owned elements of an element.
|
static Element |
getOwner(Element element) |
static boolean |
has_owner(Element element,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Elements that must be owned must have an owner.
|
static boolean |
mustBeOwned(Element element)
The query mustBeOwned() indicates whether elements of this type must have an owner.
|
static boolean |
not_own_self(Element element,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
An element may not directly or indirectly own itself.
|
public static boolean not_own_self(Element element, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
element
- The receiving 'Element' model object.diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
public static boolean has_owner(Element element, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
element
- The receiving 'Element' model object.diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
public static org.eclipse.emf.common.util.EList<Element> allOwnedElements(Element element)
element
- The receiving 'Element' model object.
public static boolean mustBeOwned(Element element)
element
- The receiving 'Element' model object.