# Services available for EObjects

### allInstances(types: java.util.Set) = List

Returns all instances of any EClass from the OrderedSet

### allInstances(type: org.eclipse.emf.ecore.EClass) = List

Returns all instances of the EClass

### eAllContents(eObject: org.eclipse.emf.ecore.EObject, types: java.util.Set) = List

Returns a sequence of the EObjects recursively contained in the specified root eObject and that are instances of the specified EClass

Expression | Result
--- | ---
anEPackage.eAllContents({ecore::EPackage | ecore::EClass}) | Sequence{ePackage, eClass, ...}

### eAllContents(eObject: org.eclipse.emf.ecore.EObject) = List

Returns a sequence of the EObjects recursively contained in the specified root eObject.

Expression | Result
--- | ---
anEPackage.eAllContents() | Sequence{firstEClass, firstEAttribute, secondEClass, firstDataType}

### eAllContents(eObject: org.eclipse.emf.ecore.EObject, type: org.eclipse.emf.ecore.EClass) = List

Returns a sequence of the EObjects recursively contained in the specified root eObject and that are instances of the specified EClass

Expression | Result
--- | ---
anEPackage.eAllContents(ecore::EClass) | Sequence{firstEClass, secondEClass}

### eClass(eObject: org.eclipse.emf.ecore.EObject) = EClass

Returns the EClass of the specified EObject

### eContainer(eObject: org.eclipse.emf.ecore.EObject) = EObject

Returns the container of the specified EObject

Expression | Result
--- | ---
firstEAttribute.eContainer() | firstEClass

### eContainer(eObject: org.eclipse.emf.ecore.EObject, type: org.eclipse.emf.ecore.EClass) = EObject

Returns the first container of the specified EObject that matches the given type

Expression | Result
--- | ---
firstEAttribute.eContainer(ecore::EPackage) | anEPackage

### eContainerOrSelf(eObject: org.eclipse.emf.ecore.EObject, type: org.eclipse.emf.ecore.EClass) = EObject

Returns self or the first container of the specified EObject that matches the given type

Expression | Result
--- | ---
firstEAttribute.eContainerOrSelf(ecore::EAttribute) | firstEAttribute

### eContainingFeature(eObject: org.eclipse.emf.ecore.EObject) = EStructuralFeature

Returns the containing feature of the specified EObject

### eContainmentFeature(eObject: org.eclipse.emf.ecore.EObject) = EReference

Returns the containment feature of the specified EObject

### eContents(eObject: org.eclipse.emf.ecore.EObject, types: java.util.Set) = List

Returns a sequence made of the instances of the specified types in the contents of the specified eObject.

Expression | Result
--- | ---
anEPackage.eContents({ecore::EPackage | ecore::EClass}) | Sequence{SubEPackage, eClass, ... }

### eContents(eObject: org.eclipse.emf.ecore.EObject, type: org.eclipse.emf.ecore.EClass) = List

Returns a sequence made of the instances of the specified type in the contents of the specified eObject.

Expression | Result
--- | ---
anEPackage.eContents(ecore::EDataType) | Sequence{firstDataType}

### eContents(eObject: org.eclipse.emf.ecore.EObject) = List

Returns the contents of the specified EObject instance.

Expression | Result
--- | ---
anEPackage.eContents() | Sequence{firstEClass, secondEClass, firstDataType}

### eCrossReferences(eObject: org.eclipse.emf.ecore.EObject) = Object

Returns the list of all EObjects cross-referenced from the receiver.

### eGet(eObject: org.eclipse.emf.ecore.EObject, featureName: java.lang.String) = Object

Handles calls to the operation "eGet". This will fetch the value of the feature named "featureName" on "source"

### eInverse(eObject: org.eclipse.emf.ecore.EObject, featureName: java.lang.String) = Set

Returns the elements from the set of the inverse references of the receiver that are referencing the receiver using a feature with the given name.

### eInverse(eObject: org.eclipse.emf.ecore.EObject, type: org.eclipse.emf.ecore.EClassifier) = Set

Returns the elements of the given type from the set of the inverse references of the receiver.

### eInverse(eObject: org.eclipse.emf.ecore.EObject) = Set

Returns the set containing the inverse references.