|
|||||||||||
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.DefaultRelationship
Interface for relationships between CoCompose language elements.
Constructor Summary | |
DefaultRelationship()
|
Method Summary | |
void |
accept(ModelVisitor modelVisitor)
Accepts a visitor. |
String |
getName()
Gets the name of this ModelElement. |
RelationElement |
getSourceParticipant()
Gets the first participant in this relationship. |
RelationElement |
getTargetParticipant()
Gets the second participant in this relationship. |
void |
setSourceParticipant(RelationElement sourceParticipant)
Sets the first participant in this relationship. |
void |
setTargetParticipant(RelationElement targetParticipant)
Sets the second participant in this relationship. |
Methods inherited from class be.ac.vub.cocompose.lang.impl.core.DefaultModelElement |
getId, getModel, 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.ModelElement |
getId, getModel, getNamespace, setId, setName, setNamespace |
Methods inherited from interface be.ac.vub.cocompose.lang.Element |
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
public DefaultRelationship()
Method Detail |
public void accept(ModelVisitor modelVisitor) throws ModelElementException
accept
in interface VisitedElement
accept
in class DefaultModelElement
modelVisitor
- The visitor to accept.
ModelElementException
public RelationElement getSourceParticipant()
getSourceParticipant
in interface Relationship
public void setSourceParticipant(RelationElement sourceParticipant)
setSourceParticipant
in interface Relationship
sourceParticipant
- - the source participant.public RelationElement getTargetParticipant()
getTargetParticipant
in interface Relationship
public void setTargetParticipant(RelationElement targetParticipant)
setTargetParticipant
in interface Relationship
targetParticipant
- - the target participant.public String getName()
ModelElement
getName
in interface ModelElement
getName
in class DefaultModelElement
ModelElement.getName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |