|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.vub.cocompose.lang.impl.DefaultElement
be.ac.vub.cocompose.lang.impl.core.DefaultModelElement
be.ac.vub.cocompose.lang.impl.core.DefaultNamespace
be.ac.vub.cocompose.lang.impl.core.DefaultRelationElement
be.ac.vub.cocompose.lang.impl.core.DefaultRefinedElement
Represents a language element that can have refinements.
Constructor Summary | |
DefaultRefinedElement()
|
Method Summary | |
void |
accept(ModelVisitor modelVisitor)
Accepts a visitor. |
void |
addInheritsFrom(int index,
RefinedElement inheritsFrom)
Adds an inherited element to this concept. |
void |
addInheritsFrom(RefinedElement inheritsFrom)
Adds an inherited element to this concept. |
void |
addOwnedElement(int index,
ModelElement modelElement)
Adds an element to this namespace. |
void |
addSuperimposer(int index,
RefinedElement superimposer)
Adds a superimposing element to this concept. |
void |
addSuperimposer(RefinedElement superimposer)
Adds a superimposing element to this concept. |
void |
addSuperimposesOn(int index,
RefinedElement superimposesOn)
Adds a superimposition element to this concept. |
void |
addSuperimposesOn(RefinedElement superimposesOn)
Adds a superimposition element to this concept. |
void |
dispose()
Invoked when this object is to be disposed. |
Model |
getDefaultElementOf()
Gets the model of which this element is the default element, if any. |
String |
getIconUri()
Gets the icon image URI. |
List |
getInheritsFrom()
Gets the inherited elements. |
List |
getRefinements()
Returns the refinements for this stereotype. |
List |
getSuperimposers()
Gets the superimposing elements. |
List |
getSuperimposesOn()
Gets the superimposition elements. |
void |
removeInheritsFrom(RefinedElement inheritsFrom)
Removes an inherited element from this concept. |
void |
removeOwnedElement(ModelElement modelElement)
Removes a element from this namespace. |
void |
removeSuperimposer(RefinedElement superimposer)
Removes a superimposing element from this concept. |
void |
removeSuperimposesOn(RefinedElement superimposesOn)
Removes a superimposition element from this concept. |
void |
setDefaultElementOf(Model model)
Sets the model of which this element is the default element, if any. |
void |
setIconUri(String uri)
Gets the icon image URI. |
Methods inherited from class be.ac.vub.cocompose.lang.impl.core.DefaultRelationElement |
addRelationship, addRelationship, fireBackgroundColorUpdate, getBackgroundColor, getDefaultBackgroundColor, getPosition, getRelationships, getSourceRelationships, getTargetRelationships, removeRelationship, setBackgroundColor, setPosition |
Methods inherited from class be.ac.vub.cocompose.lang.impl.core.DefaultNamespace |
addOwnedElement, getDeepOwnedElement, getDeepOwnedElements, getOwnedElement, getOwnedElements, getOwnedElements, getOwnedIds, getRootNamespace, isRegistered, registerNameChange, translateIndex, translateIndex |
Methods inherited from class be.ac.vub.cocompose.lang.impl.core.DefaultModelElement |
getId, getModel, getName, getNamespace, setId, setName, setNamespace, toString |
Methods inherited from class be.ac.vub.cocompose.lang.impl.DefaultElement |
addPropertyChangeListener, firePropertyChange, fireStructureChange, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface be.ac.vub.cocompose.lang.core.RelationElement |
addRelationship, addRelationship, getBackgroundColor, getPosition, getRelationships, getSourceRelationships, getTargetRelationships, removeRelationship, setBackgroundColor, setPosition |
Methods inherited from interface be.ac.vub.cocompose.lang.core.Namespace |
addOwnedElement, getDeepOwnedElement, getDeepOwnedElements, getOwnedElement, getOwnedElements, getOwnedElements, getOwnedIds, isRegistered, registerNameChange |
Methods inherited from interface be.ac.vub.cocompose.lang.core.ModelElement |
getId, getModel, getName, getNamespace, getRootNamespace, setId, setName, setNamespace |
Methods inherited from interface be.ac.vub.cocompose.lang.Element |
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
public DefaultRefinedElement()
Method Detail |
public void accept(ModelVisitor modelVisitor) throws ModelElementException
accept
in interface VisitedElement
accept
in class DefaultRelationElement
modelVisitor
- The visitor to accept.
ModelElementException
public void addOwnedElement(int index, ModelElement modelElement) throws ModelElementException
addOwnedElement
in interface Namespace
addOwnedElement
in class DefaultNamespace
index
- - the index at which to add the element.modelElement
- - the element to add.
ModelElementException
- - if the name of the element is already used within this namespace.public void removeOwnedElement(ModelElement modelElement)
removeOwnedElement
in interface Namespace
removeOwnedElement
in class DefaultNamespace
modelElement
- - the element to remove.public List getRefinements()
getRefinements
in interface RefinedElement
public List getInheritsFrom()
getInheritsFrom
in interface RefinedElement
public void addInheritsFrom(RefinedElement inheritsFrom)
addInheritsFrom
in interface RefinedElement
inheritsFrom
- the inherited element to add.public void addInheritsFrom(int index, RefinedElement inheritsFrom)
addInheritsFrom
in interface RefinedElement
index
- the index at which to add the element.inheritsFrom
- the inherited element to add.public void removeInheritsFrom(RefinedElement inheritsFrom)
removeInheritsFrom
in interface RefinedElement
inheritsFrom
- the inherited element to remove.public List getSuperimposesOn()
getSuperimposesOn
in interface RefinedElement
public void addSuperimposesOn(RefinedElement superimposesOn)
addSuperimposesOn
in interface RefinedElement
superimposesOn
- the superimposition element to add.public void addSuperimposesOn(int index, RefinedElement superimposesOn)
addSuperimposesOn
in interface RefinedElement
index
- the index at which to add the element.superimposesOn
- the superimposition element to add.public void removeSuperimposesOn(RefinedElement superimposesOn)
removeSuperimposesOn
in interface RefinedElement
superimposesOn
- the superimposition element to remove.public List getSuperimposers()
getSuperimposers
in interface RefinedElement
public void addSuperimposer(RefinedElement superimposer)
addSuperimposer
in interface RefinedElement
superimposer
- the superimposing element to add.public void addSuperimposer(int index, RefinedElement superimposer)
addSuperimposer
in interface RefinedElement
index
- the index at which to add the element.superimposer
- the superimposing element to add.public void removeSuperimposer(RefinedElement superimposer)
removeSuperimposer
in interface RefinedElement
superimposer
- the superimposing element to remove.public String getIconUri()
getIconUri
in interface RefinedElement
public void setIconUri(String uri)
setIconUri
in interface RefinedElement
uri
- the icon URI.public Model getDefaultElementOf()
getDefaultElementOf
in interface RefinedElement
public void setDefaultElementOf(Model model)
setDefaultElementOf
in interface RefinedElement
model
- the model of which this element is the default element, if any.public void dispose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |