|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.core.emf.EMFModel
org.eclipse.m2m.atl.core.emf.EMFReferenceModel
public class EMFReferenceModel
The EMF implementation of IReferenceModel
.
Field Summary |
---|
Fields inherited from class org.eclipse.m2m.atl.core.emf.EMFModel |
---|
elementsByType, referenceModel |
Constructor Summary | |
---|---|
EMFReferenceModel(EMFReferenceModel referenceModel,
EMFModelFactory mf)
Creates a new EMFReferenceModel . |
Method Summary | |
---|---|
protected void |
addAllReferencedResources(org.eclipse.emf.ecore.resource.Resource resource)
Searches for and adds all resources that are referenced from the main resource to referencedResources. |
java.util.Set<org.eclipse.emf.ecore.EObject> |
getAllElementsByType(org.eclipse.emf.ecore.EClass metaElement)
Returns a Set of the elements matching the given type, including elements in
getReferencedResources() . |
java.lang.Object |
getMetaElementByName(java.lang.String name)
Returns the metaelement having the given name. |
java.util.Set<org.eclipse.emf.ecore.resource.Resource> |
getReferencedResources()
Returns the referencedResources. |
boolean |
isModelOf(java.lang.Object object)
Returns true if the given object is contained in this model's resource or a referenced resource. |
void |
register()
Registers EMF Packages. |
Methods inherited from class org.eclipse.m2m.atl.core.emf.EMFModel |
---|
commitToResource, finalize, getElementsByType, getModelFactory, getReferenceModel, getResource, isTarget, newElement, setIsTarget, setResource |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.m2m.atl.core.IModel |
---|
getElementsByType, getModelFactory, getReferenceModel, isTarget, newElement, setIsTarget |
Constructor Detail |
---|
public EMFReferenceModel(EMFReferenceModel referenceModel, EMFModelFactory mf)
EMFReferenceModel
.
referenceModel
- the metamodel.mf
- the model factory that is creating this model.Method Detail |
---|
public java.lang.Object getMetaElementByName(java.lang.String name)
getMetaElementByName
in interface IReferenceModel
name
- the given name
IReferenceModel.getMetaElementByName(java.lang.String)
public boolean isModelOf(java.lang.Object object)
isModelOf
in interface IModel
isModelOf
in class EMFModel
object
- the model element
IModel.isModelOf(java.lang.Object)
public java.util.Set<org.eclipse.emf.ecore.EObject> getAllElementsByType(org.eclipse.emf.ecore.EClass metaElement)
Set
of the elements matching the given type, including elements in
getReferencedResources()
.
metaElement
- a metatype
Set
of the elements matching the given typeIModel.getElementsByType(java.lang.Object)
public void register()
protected void addAllReferencedResources(org.eclipse.emf.ecore.resource.Resource resource)
resource
- the main resourcepublic java.util.Set<org.eclipse.emf.ecore.resource.Resource> getReferencedResources()
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |