|
|||||||||||
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
be.ac.vub.cocompose.lang.impl.core.DefaultRole
The Solution Role language element.
Constructor Summary | |
DefaultRole()
Creates a DefaultRole. |
Method Summary | |
void |
accept(ModelVisitor modelVisitor)
Accepts a visitor. |
void |
addPart(Concept concept)
Adds a concept to the role part. |
void |
addPart(int index,
Concept concept)
Adds a concept to the role part. |
Multiplicity |
getMultiplicity()
Returns the multiplicity constraint for this solution role. |
List |
getParts()
Returns the concepts that belong to this role part. |
void |
removePart(Concept concept)
Removes a concept from the role part. |
void |
setMultiplicity(Multiplicity multiplicity)
Sets the multiplicity constraint for this solution role. |
Methods inherited from class be.ac.vub.cocompose.lang.impl.core.DefaultRefinedElement |
addInheritsFrom, addInheritsFrom, addOwnedElement, addSuperimposesOn, addSuperimposesOn, getIconUri, getInheritsFrom, getRefinements, getSuperimposesOn, removeInheritsFrom, removeOwnedElement, removeSuperimposesOn, setIconUri |
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, getDeepOwnedElements, getOwnedElement, getOwnedElementId, getOwnedElements, getOwnedElements, 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.RefinedElement |
addInheritsFrom, addInheritsFrom, addSuperimposesOn, addSuperimposesOn, getIconUri, getInheritsFrom, getRefinements, getSuperimposesOn, removeInheritsFrom, removeSuperimposesOn, setIconUri |
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, addOwnedElement, getDeepOwnedElements, getOwnedElement, getOwnedElementId, getOwnedElements, getOwnedElements, isRegistered, registerNameChange, removeOwnedElement |
Methods inherited from interface be.ac.vub.cocompose.lang.core.ModelElement |
getId, getModel, getName, getNamespace, setId, setName, setNamespace |
Methods inherited from interface be.ac.vub.cocompose.lang.Element |
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
public DefaultRole()
Method Detail |
public void accept(ModelVisitor modelVisitor) throws ModelElementException
accept
in interface VisitedElement
accept
in class DefaultRefinedElement
modelVisitor
- The visitor to accept.
ModelElementException
public void addPart(Concept concept)
addPart
in interface Role
concept
- - the concept to add.public void addPart(int index, Concept concept)
addPart
in interface Role
index
- the index at which to add the element.concept
- - the concept to add.public void removePart(Concept concept)
removePart
in interface Role
concept
- - the concept to remove.public List getParts()
getParts
in interface Role
public Multiplicity getMultiplicity()
getMultiplicity
in interface Role
public void setMultiplicity(Multiplicity multiplicity)
setMultiplicity
in interface Role
multiplicity
- the multiplicity constraint.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |