|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.basic.BasicIncrement
de.uni_paderborn.fujaba.asg.ASGElement
de.uni_paderborn.fujaba.uml.UMLIncrement
de.uni_paderborn.fujaba.uml.UMLDiagramItem
de.uni_paderborn.fujaba.uml.UMLConnection
de.uni_paderborn.fujaba.uml.UMLAssoc
------------- 0..n stereotype 0..1 UMLAssoc | getText() |----------------------------- UMLStereotype ------------- uMLAssoc uMLStereotype
Nested Class Summary |
Nested classes inherited from class de.uni_paderborn.fujaba.asg.ASGElement |
ASGElement.SortByNameComparator |
Field Summary | |
static int |
LEFTRIGHT
direction = {LeftRight, RightLeft} |
static int |
RIGHTLEFT
direction = {LeftRight, RightLeft} |
Fields inherited from class de.uni_paderborn.fujaba.basic.BasicIncrement |
dontUseAccessMethodsInThisClass |
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FAssoc |
DIRECTION_PROPERTY, LEFT_ROLE_PROPERTY, RIGHT_ROLE_PROPERTY, STEREOTYPE_PROPERTY |
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FDiagramItem |
REV_ADDITIONAL_ITEMS_PROPERTY, REV_ITEMS_PROPERTY, VIEW_DEFINITIONS_PROPERTY |
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FIncrement |
ASSERT_IN_UNIT_TEST_PROPERTY, COMMENT_PROPERTY, CONSTRAINTS_PROPERTY, STEREOTYPES_PROPERTY |
Fields inherited from interface de.uni_paderborn.fujaba.metamodel.FElement |
ANNOTATIONS_PROPERTY, DIAGRAMS_PROPERTY, ELEMENT_REFERENCES_PROPERTY, GENERATED_PROPERTY, NAME_PROPERTY, TEXT_PROPERTY |
Constructor Summary | |
UMLAssoc()
Constructor for class UMLAssoc |
|
UMLAssoc(java.lang.String name,
int direction,
UMLConstraint constraint,
UMLRole leftRole,
UMLRole rightRole)
Constructor for class UMLAssoc |
|
UMLAssoc(java.lang.String name,
UMLClass leftClass,
java.lang.String leftRoleName,
java.lang.String leftCard,
UMLClass rightClass,
java.lang.String rightRoleName,
java.lang.String rightCard)
Constructor for class UMLAssoc |
Method Summary | |
void |
addToInstances(UMLLink elem)
Access method for an one to n association. |
java.util.Enumeration |
elementsOfInstances()
No comment provided by developer, please add a comment to improve documentation. |
static boolean |
existsRef(UMLClass theClass,
java.lang.String theRoleName)
No comment provided by developer, please add a comment to improve documentation. |
static UMLAssoc[] |
getAssocForItems(UMLClass firstClass,
java.lang.String firstRoleName,
UMLClass secondClass,
java.lang.String secondRoleName)
Boolean static method to check wether two classes are connected via the passed association. |
int |
getDirection()
Get the direction attribute of the UMLAssoc object |
FRole |
getFLeftRole()
Get the fLeftRole attribute of the UMLAssoc object |
FRole |
getFRightRole()
Get the fRightRole attribute of the UMLAssoc object |
UMLRole |
getLeftRole()
Get the leftRole attribute of the UMLAssoc object |
java.lang.String |
getName()
Get the name attribute of the UMLAssoc object |
FElement |
getParentElement()
Query the logical parent of this element (e.g. package of a class, diagram of an object). |
UMLRole |
getPartnerRole(UMLRole role)
Get the partnerRole attribute of the UMLAssoc object |
static UMLAssoc |
getRef(UMLClass theClass,
java.lang.String theRoleName)
Get the ref attribute of the UMLAssoc class |
UMLRole |
getRightRole()
Get the rightRole attribute of the UMLAssoc object |
java.lang.String |
getSortedComparator()
Deprecated. Use UMLRole.getSortedComparator() instead |
UMLDiagramItem |
getSourceConnector()
Get the sourceConnector attribute of the UMLAssoc object |
UMLStereotype |
getStereotype()
Deprecated. use stereotypes/UMLStereotype instead |
java.lang.String |
getStereotypeName()
Deprecated. use stereotypes/UMLStereotype instead |
UMLDiagramItem |
getTargetConnector()
Get the targetConnector attribute of the UMLAssoc object |
java.lang.String |
getText()
Get the text attribute of the UMLAssoc object |
boolean |
hasInInstances(UMLLink elem)
No comment provided by developer, please add a comment to improve documentation. |
boolean |
isAlreadyRemoved()
Get the alreadyRemoved attribute of the UMLAssoc object |
boolean |
isRealReference()
Checks whether this is a unidirectional assoc. |
boolean |
isRolesTransient()
|
boolean |
isVirtualPath()
|
java.util.Iterator |
iteratorOfInstances()
No comment provided by developer, please add a comment to improve documentation. |
void |
removeAttrs()
No comment provided by developer, please add a comment to improve documentation. |
void |
removeFromInstances(UMLLink elem)
No comment provided by developer, please add a comment to improve documentation. |
void |
removeLeftRole()
No comment provided by developer, please add a comment to improve documentation. |
void |
removeRightRole()
No comment provided by developer, please add a comment to improve documentation. |
void |
removeYou()
Isolates the object so the garbage collector can remove it. |
void |
setDirection(int direction)
Sets the direction attribute of the UMLAssoc object |
boolean |
setLeftRole(FRole leftRole)
Sets the leftRole attribute of the UMLAssoc object |
void |
setName(java.lang.String name)
Sets the name attribute of the UMLAssoc object |
boolean |
setRightRole(FRole rightRole)
Sets the rightRole attribute of the UMLAssoc object |
void |
setRolesTransient(boolean rolesTransient)
|
void |
setSortedComparator(java.lang.String comparator)
Deprecated. Use UMLRole.setSortedComparator(java.lang.String)
instead |
boolean |
setSourceConnector(FDiagramItem incr)
Sets the sourceConnector attribute of the UMLAssoc object |
void |
setStereotype(FStereotype obj)
Deprecated. use stereotypes/UMLStereotype instead |
boolean |
setTargetConnector(FDiagramItem incr)
Sets the targetConnector attribute of the UMLAssoc object |
java.lang.String |
toString()
No comment provided by developer, please add a comment to improve documentation. |
Methods inherited from class de.uni_paderborn.fujaba.uml.UMLConnection |
getFPartner, getFSourceConnector, getFTargetConnector, getPartner, setPartner |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FConnection |
getFPartner, getFSourceConnector, getFTargetConnector, setPartner |
Methods inherited from interface de.uni_paderborn.fujaba.metamodel.FIncrement |
addToConstraints, addToStereotypes, entriesOfStereotypes, getFComment, getFromFStereotypes, hasInConstraints, hasInStereotypes, hasKeyInStereotypes, isAssertInUnitTest, iteratorOfConstraints, iteratorOfStereotypes, keysOfStereotypes, removeAllFromConstraints, removeAllFromStereotypes, removeFromConstraints, removeFromStereotypes, removeKeyFromStereotypes, setAssertInUnitTest, setComment, sizeOfStereotypes |
Methods inherited from interface java.lang.Comparable |
compareTo |
Methods inherited from interface de.uni_paderborn.fujaba.basic.UniqueIdentifier |
getID |
Methods inherited from interface de.uni_paderborn.fujaba.fsa.unparse.LogicUnparseInterface |
getFSAInterface, getUnparseModuleName |
Methods inherited from interface de.upb.tools.pcs.PropertyChangeInterface |
getPropertyChangeSupport |
Methods inherited from interface de.upb.tools.pcs.PropertyChangeClient |
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface de.tu_bs.coobra.ObjectChangeAware |
acknowledgeChange, getCoObRAId, getRepository, setCoObRAId, setRepository |
Methods inherited from interface de.uni_kassel.prop.InspectionAware |
isInspectableField, proposeFieldValues |
Field Detail |
public static final transient int LEFTRIGHT
public static final transient int RIGHTLEFT
Constructor Detail |
public UMLAssoc()
public UMLAssoc(java.lang.String name, UMLClass leftClass, java.lang.String leftRoleName, java.lang.String leftCard, UMLClass rightClass, java.lang.String rightRoleName, java.lang.String rightCard)
name
- No description providedleftClass
- No description providedleftRoleName
- No description providedleftCard
- No description providedrightClass
- No description providedrightRoleName
- No description providedrightCard
- No description providedpublic UMLAssoc(java.lang.String name, int direction, UMLConstraint constraint, UMLRole leftRole, UMLRole rightRole)
name
- No description provideddirection
- No description providedconstraint
- No description providedleftRole
- No description providedrightRole
- No description providedMethod Detail |
public static UMLAssoc[] getAssocForItems(UMLClass firstClass, java.lang.String firstRoleName, UMLClass secondClass, java.lang.String secondRoleName)
firstClass
- No description providedfirstRoleName
- No description providedsecondClass
- No description providedsecondRoleName
- No description provided
public static boolean existsRef(UMLClass theClass, java.lang.String theRoleName)
theClass
- No description providedtheRoleName
- No description provided
public static UMLAssoc getRef(UMLClass theClass, java.lang.String theRoleName)
theClass
- No description providedtheRoleName
- No description provided
public boolean isRealReference()
public java.lang.String getName()
getName
in interface FElement
getName
in class ASGElement
public void setName(java.lang.String name)
setName
in interface FElement
setName
in class ASGElement
name
- The new name valuepublic int getDirection()
getDirection
in interface FAssoc
public void setDirection(int direction)
setDirection
in interface FAssoc
direction
- The new direction valuepublic java.lang.String getSortedComparator()
UMLRole.getSortedComparator()
instead
getDirection()
to retrieve the comparator from them.
public void setSortedComparator(java.lang.String comparator)
UMLRole.setSortedComparator(java.lang.String)
instead
comparator
- The new sortedComparator valuepublic UMLRole getLeftRole()
public FRole getFLeftRole()
getFLeftRole
in interface FAssoc
public boolean setLeftRole(FRole leftRole)
setLeftRole
in interface FAssoc
leftRole
- The new leftRole value
public final void removeLeftRole()
removeLeftRole
in interface FAssoc
public boolean setSourceConnector(FDiagramItem incr)
setSourceConnector
in interface FConnection
incr
- The new sourceConnector value
public UMLDiagramItem getSourceConnector()
getSourceConnector
in class UMLConnection
public UMLRole getRightRole()
public FRole getFRightRole()
getFRightRole
in interface FAssoc
public boolean setRightRole(FRole rightRole)
setRightRole
in interface FAssoc
rightRole
- The new rightRole value
public final void removeRightRole()
removeRightRole
in interface FAssoc
public boolean setTargetConnector(FDiagramItem incr)
setTargetConnector
in interface FConnection
incr
- The new targetConnector value
public UMLDiagramItem getTargetConnector()
getTargetConnector
in class UMLConnection
public UMLRole getPartnerRole(UMLRole role)
role
- No description provided
public boolean hasInInstances(UMLLink elem)
elem
- No description provided
public java.util.Enumeration elementsOfInstances()
public java.util.Iterator iteratorOfInstances()
public void addToInstances(UMLLink elem)
elem
- The object added.public void removeFromInstances(UMLLink elem)
elem
- No description providedpublic boolean isAlreadyRemoved()
isAlreadyRemoved
in interface FAssoc
public boolean isVirtualPath()
isVirtualPath
in interface FAssoc
public void removeYou()
removeYou
in interface FElement
removeYou
in class UMLDiagramItem
public FElement getParentElement()
getParentElement
in interface FElement
getParentElement
in class UMLDiagramItem
public void removeAttrs()
removeAttrs
in interface FAssoc
public java.lang.String getText()
getText
in interface FElement
getText
in class ASGElement
public java.lang.String toString()
UMLDiagramItem
toString
in class UMLDiagramItem
public void setStereotype(FStereotype obj)
obj
- The new stereotype valuepublic UMLStereotype getStereotype()
public java.lang.String getStereotypeName()
public boolean isRolesTransient()
isRolesTransient
in interface FAssoc
public void setRolesTransient(boolean rolesTransient)
rolesTransient
- true if attributes for roles should be flagged transient
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |