Class ModelGraphElement
- java.lang.Object
-
- de.uni_marburg.mdo_over.model.modelgraph.ModelGraphElement
-
-
Constructor Summary
Constructors Constructor Description ModelGraphElement()ModelGraphElement(ModelGraphElement toCopy)Creates a copy of the given element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(org.eclipse.emf.ecore.EAttribute attribute)voidclearAttributes()Removes all attributes currently considered by the element.Set<org.eclipse.emf.ecore.EAttribute>getAttributes()Attributes of the referenced object which should also be considered attributes of this graph element.StringgetName()org.eclipse.emf.ecore.EObjectgetReferencedObject()voidremoveAttribute(org.eclipse.emf.ecore.EAttribute attribute)voidsetName(String name)voidsetReferencedObject(org.eclipse.emf.ecore.EObject referencedObject)Sets the object referenced by this element.
-
-
-
Constructor Detail
-
ModelGraphElement
public ModelGraphElement()
-
ModelGraphElement
public ModelGraphElement(ModelGraphElement toCopy)
Creates a copy of the given element.- Parameters:
toCopy- model graph to create a copy from
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getReferencedObject
public org.eclipse.emf.ecore.EObject getReferencedObject()
-
setReferencedObject
public void setReferencedObject(org.eclipse.emf.ecore.EObject referencedObject)
Sets the object referenced by this element. The reference may be null to allowmodel graphsonly partially mapping to concrete EMF models.- Parameters:
referencedObject- object referenced by the element
-
getAttributes
public Set<org.eclipse.emf.ecore.EAttribute> getAttributes()
Attributes of the referenced object which should also be considered attributes of this graph element.- Returns:
- attributes of this element
-
addAttribute
public void addAttribute(org.eclipse.emf.ecore.EAttribute attribute) throws GraphManipulationException- Throws:
GraphManipulationException
-
removeAttribute
public void removeAttribute(org.eclipse.emf.ecore.EAttribute attribute)
-
clearAttributes
public void clearAttributes()
Removes all attributes currently considered by the element.
-
-