|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.model.uml.behavioralelements.collaborations.CollaborationsHelper
Helper class for UML BehavioralElements::Collaborations Package. Current implementation is a placeholder.
Field Summary | |
private static CollaborationsHelper |
SINGLETON
Singleton instance. |
Constructor Summary | |
private |
CollaborationsHelper()
Don't allow instantiation. |
Method Summary | |
void |
addBase(java.lang.Object arole,
java.lang.Object abase)
Adds a base to the given classifierrole. |
java.util.Collection |
allAvailableContents(java.lang.Object arole)
Returns all available contents for a given classifierrole as defined in section 2.10.3.3 of the UML 1.3 spec. |
java.util.Collection |
allAvailableFeatures(java.lang.Object arole)
Returns all available features for a given classifierrole as defined in section 2.10.3.3 of the UML 1.3 spec. |
java.util.Collection |
getAllClassifierRoles()
Returns all classifierroles found in the projectbrowser model |
java.util.Collection |
getAllClassifierRoles(ru.novosoft.uml.foundation.core.MNamespace ns)
Returns all classifierroles found in this namespace and in its children. |
java.util.Collection |
getAllPossibleActivators(java.lang.Object ames)
Returns all possible activators for some message mes. |
java.util.Collection |
getAllPossibleAssociationRoles(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
Returns all associations the bases of the classifierrole has, thereby forming the set of associationroles the classifierrole can use. |
java.util.Collection |
getAllPossibleBases(ru.novosoft.uml.behavior.collaborations.MAssociationRole role)
Returns all possible bases for some associationrole taking into account the wellformednessrules as defined in section 2.10.3 of the UML 1.3 spec. |
java.util.Collection |
getAllPossibleBases(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
Returns all possible bases for some classifierrole taking into account the wellformednessrules as defined in section 2.10.3 of the UML 1.3 spec. |
java.util.Collection |
getAllPossibleBases(java.lang.Object role)
|
java.util.Collection |
getAllPossiblePredecessors(java.lang.Object amessage)
Returns all possible predecessors for some message, taking into account the wellformednessrules as defined in section 2.10 of the UML spec. |
java.lang.Object |
getAssocationRole(java.lang.Object afrom,
java.lang.Object ato)
Returns the first found associationrole between two classifierroles. |
java.util.Collection |
getClassifierRoles(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
Returns all classifierroles associated via associationroles to some classifierrole role. |
static CollaborationsHelper |
getHelper()
Singleton instance access method. |
boolean |
hasAsActivator(ru.novosoft.uml.behavior.collaborations.MMessage message,
ru.novosoft.uml.behavior.collaborations.MMessage activator)
Returns true if the given message has the message activator somewhere as it's activator. |
boolean |
isAddingCollaborationAllowed(java.lang.Object context)
Returns true if a collaboration may be added to the given context. |
void |
setActivator(java.lang.Object ames,
java.lang.Object anactivator)
Sets the activator of some given message mes. |
void |
setBase(java.lang.Object arole,
java.lang.Object abase)
Sets the base of some associationrole, including the attached assocationendroles. |
void |
setBases(java.lang.Object role,
java.util.Collection bases)
Sets the bases of the given classifierrole to the given collection bases. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static CollaborationsHelper SINGLETON
Constructor Detail |
private CollaborationsHelper()
Method Detail |
public static CollaborationsHelper getHelper()
public java.util.Collection getAllClassifierRoles()
public java.util.Collection getAllClassifierRoles(ru.novosoft.uml.foundation.core.MNamespace ns)
public java.util.Collection getAllPossibleAssociationRoles(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
role
-
public java.util.Collection getClassifierRoles(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
role
-
public java.lang.Object getAssocationRole(java.lang.Object afrom, java.lang.Object ato)
afrom
- ato
-
public java.util.Collection getAllPossibleActivators(java.lang.Object ames)
ames
-
public boolean hasAsActivator(ru.novosoft.uml.behavior.collaborations.MMessage message, ru.novosoft.uml.behavior.collaborations.MMessage activator)
message
- activator
-
public void setActivator(java.lang.Object ames, java.lang.Object anactivator)
ames
- anactivator
- public java.util.Collection getAllPossiblePredecessors(java.lang.Object amessage)
amessage
-
public void addBase(java.lang.Object arole, java.lang.Object abase)
arole
- abase
- public void setBases(java.lang.Object role, java.util.Collection bases)
role
- bases
- public java.util.Collection allAvailableFeatures(java.lang.Object arole)
arole
-
public java.util.Collection allAvailableContents(java.lang.Object arole)
arole
-
public java.util.Collection getAllPossibleBases(java.lang.Object role)
public java.util.Collection getAllPossibleBases(ru.novosoft.uml.behavior.collaborations.MAssociationRole role)
role
-
public java.util.Collection getAllPossibleBases(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
role
-
public void setBase(java.lang.Object arole, java.lang.Object abase)
arole
- abase
- public boolean isAddingCollaborationAllowed(java.lang.Object context)
context
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |