|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.obeo.acceleo.gen.template.scripts.imports.services.EObjectServices
public class EObjectServices
System services for EObject elements.
Constructor Summary | |
---|---|
EObjectServices()
|
Method Summary | |
---|---|
fr.obeo.acceleo.gen.template.eval.ENodeList |
eAllContents(fr.obeo.acceleo.gen.template.eval.ENode current)
Gets all the direct contents and indirect contents of this object. |
fr.obeo.acceleo.gen.template.eval.ENodeList |
eAllContents(fr.obeo.acceleo.gen.template.eval.ENode 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 containing resource, or null. |
java.lang.String |
eResourceName(org.eclipse.emf.ecore.EObject current)
Gets the containing resource name, or null. |
org.eclipse.emf.ecore.EObject |
getRootContainer(org.eclipse.emf.ecore.EObject eObject)
Returns the root container; it may be this object itself and it will have a null container . |
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 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.EObject getRootContainer(org.eclipse.emf.ecore.EObject eObject)
null
container
.
The root container must be
directly contained
in a resource for its
tree
to be
serializable
.
eObject
- the object to get the root container for.
public org.eclipse.emf.ecore.EObject eClass(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 fr.obeo.acceleo.gen.template.eval.ENodeList eAllContents(fr.obeo.acceleo.gen.template.eval.ENode current)
current
- is the object
public fr.obeo.acceleo.gen.template.eval.ENodeList eAllContents(fr.obeo.acceleo.gen.template.eval.ENode 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.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 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 java.lang.String eResourceName(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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |