|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
VRelationship is an visual model element representing an relationship between other two model elements in the architecture.
Note that altought it is syntactically possible, you should NOT use another relationships as source or target of a relationship
Method Summary | |
void |
addVRelationshipAsSubrelationship(VRelationship inRel)
Add the given VRelationship as a subrelationship for this VRelationship. |
VModelElement |
getDestination()
Returns the destination of the relationship |
boolean |
getIsRepresentedBySomeoneElse()
Tells whether this relationship is represented by some other relationship or not. |
VModelElement |
getSource()
Returns the source of the relationship |
java.util.LinkedList |
getSubrelationships()
Returns the list of subrelationships if this VRelationship is a composite relationship. |
boolean |
isCompositeRelationship()
Tells whether this VRelationship is a composite relationship representing one or more other relationships. |
boolean |
leavesVPackage(VPackage inPackage)
Tells whether this relationship leaves the given VPackage .
|
void |
removeSubrelationship(VRelationship inRelationshipToRemove)
Removes the given relationship from this relationship's list of subrelationships. |
void |
setDestination(VModelElement inElement)
Sets the destination end of the relationship Arrow end is targeted towards the destination |
void |
setIsRepresentedBySomeoneElse(boolean inValue)
Sets whether this relationship is represented by some other relationship or not. |
void |
setLabelVisible(boolean inLabelVisible)
Set whether relationships draw their labels or not. |
void |
setSource(VModelElement inElement)
sets the source end of the relationship |
Methods inherited from interface venice.VModelElement |
addRelationship, addToCompositeRelationshipList, debugDump, getCompositeRelationships, getId, getName, getRelationshipConnectPoint, getRelationships, getType, getVisible, getVParent, intersectWithLine, setName, setType, setVisible |
Method Detail |
public VModelElement getDestination()
public VModelElement getSource()
public void setDestination(VModelElement inElement)
public void setSource(VModelElement inElement)
public boolean leavesVPackage(VPackage inPackage)
VPackage
.
If inPackage is null, this function returns true.inPackage
- the package to check for leaving, can be nullpublic boolean isCompositeRelationship()
public java.util.LinkedList getSubrelationships()
public void addVRelationshipAsSubrelationship(VRelationship inRel)
inRel
- the relationship to add as subrelationshippublic void setIsRepresentedBySomeoneElse(boolean inValue)
inValue
- whether this relationship is represented by some other
relationship or notpublic boolean getIsRepresentedBySomeoneElse()
public void removeSubrelationship(VRelationship inRelationshipToRemove)
inRelationshipToRemove
- the relationship to remove from
subrelationshipspublic void setLabelVisible(boolean inLabelVisible)
inLabelVisible
- whether to draw label or not
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |