public class EObjectServices
System services for EObject elements.
Constructor Summary | |
---|---|
EObjectServices()
|
Method Summary | |
---|---|
java.util.List |
eAllContents(org.eclipse.emf.ecore.EObject current)
Gets all the direct contents and indirect contents of this object. |
java.util.List |
eAllContents(org.eclipse.emf.ecore.EObject current,
java.lang.String type)
Gets all the direct contents and indirect contents of the object. |
org.eclipse.emf.ecore.EObject |
eClass(org.eclipse.emf.ecore.EObject current)
Gets the metamodel class of an EObject. |
org.eclipse.emf.ecore.EObject |
eContainer(org.eclipse.emf.ecore.EObject current)
Gets the container of an EObject. |
org.eclipse.emf.ecore.EObject |
eContainer(org.eclipse.emf.ecore.EObject current,
java.lang.String type)
Gets recursively the container of an EObject. |
org.eclipse.emf.ecore.EStructuralFeature |
eContainingFeature(org.eclipse.emf.ecore.EObject current)
Gets the containing feature of an EObject. |
org.eclipse.emf.ecore.EReference |
eContainmentFeature(org.eclipse.emf.ecore.EObject current)
Gets the containment feature of an EObject. |
org.eclipse.emf.common.util.EList |
eContents(org.eclipse.emf.ecore.EObject current)
Gets the children of an EObject. |
java.util.List |
eCrossReferences(org.eclipse.emf.ecore.EObject current)
Gets the cross referenced objects. |
java.lang.String |
eResource(org.eclipse.emf.ecore.EObject current)
Gets the resource of an EObject. |
org.eclipse.emf.ecore.EObject |
load(fr.obeo.acceleo.gen.template.eval.ENode node,
java.lang.String path)
Loads the root element of the given model. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EObjectServices()
Method Detail |
---|
public java.util.List eAllContents(org.eclipse.emf.ecore.EObject current)
current
- is the object
public java.util.List eAllContents(org.eclipse.emf.ecore.EObject current, java.lang.String type) throws fr.obeo.acceleo.ecore.factories.FactoryException
current
- is the objecttype
- is the type of the objects to select
fr.obeo.acceleo.ecore.factories.FactoryException
public org.eclipse.emf.ecore.EObject eClass(org.eclipse.emf.ecore.EObject current)
current
- is the object
public org.eclipse.emf.ecore.EObject eContainer(org.eclipse.emf.ecore.EObject current)
current
- is the object
public org.eclipse.emf.ecore.EObject eContainer(org.eclipse.emf.ecore.EObject current, java.lang.String type) throws fr.obeo.acceleo.ecore.factories.FactoryException
fr.obeo.acceleo.ecore.factories.FactoryException
public org.eclipse.emf.ecore.EStructuralFeature eContainingFeature(org.eclipse.emf.ecore.EObject current)
current
- is the object
public org.eclipse.emf.ecore.EReference eContainmentFeature(org.eclipse.emf.ecore.EObject current)
current
- is the object
public org.eclipse.emf.common.util.EList eContents(org.eclipse.emf.ecore.EObject current)
current
- is the object
public java.util.List eCrossReferences(org.eclipse.emf.ecore.EObject current)
current
- is the object
public java.lang.String eResource(org.eclipse.emf.ecore.EObject current)
current
- is the object
public org.eclipse.emf.ecore.EObject load(fr.obeo.acceleo.gen.template.eval.ENode node, java.lang.String path)
node
- is the current nodepath
- is the path of the model to load