rs.sol.soloist.server.uml.concepts.reflection
Interface IAssociation

All Superinterfaces:
IClassifier, rs.sol.soloist.server.uml.concepts.IElement, IMElement, INamedElement, INamespace, IPackageableElement, IRelationship, IType
All Known Subinterfaces:
IAssociationClass

public interface IAssociation
extends IRelationship, IClassifier

An association in the UML model.


Method Summary
 void createLink(IClassInstance ci1, IClassInstance ci2)
          Simply invokes createLink (aei1,aei2,-1, -1).
 void createLink(IClassInstance ci1, IClassInstance ci2, int at1, int at2)
          Creates a link of this Association between the two given Class Instances.
 void destroyLink(IClassInstance ci1, IClassInstance ci2)
          Simply invokes destroyLink(aei1,aei2,-1, -1).
 void destroyLink(IClassInstance ci1, IClassInstance ci2, int at1, int at2)
          Destroys a link of this Association between the two given Class Instances.
 IAssociationEndInstance getAssociationEndInstance(IClassifierInstance ci, IProperty ae)
          Returns the Association End Instance of the given Classifier Instance that corresponds to this Association and is an instance of the given Property that is an end of this Association.
 java.util.List<IProperty> getMemberEnds()
          Returns the member Properties at all ends.
 java.util.List<IProperty> getNavigableOwnedEnds()
          Returns the Properties that are navigable owned ends.
 java.util.List<IProperty> getOwnedEnds()
          Returns the Properties that are owned ends.
 boolean isDerived()
          Is this Association derived?
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.reflection.IRelationship
getRelatedElements
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.reflection.IClassifier
createInstance, getAllAttributes, getAllFeatures, getAllParents, getAllProperties, getAttributes, getDirectChildren, getDirectParents, getFeatures, getFirstCommonGeneralizer, getJavaClassName, getOwnedAttribute, getOwnedAttributes, getOwnedFeatures, getOwnedFeatures, getOwnedProperties, getOwnedProperty, getProperties, getProperty, isAbstract, isClass, isDataType
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.reflection.INamespace
getMembers, getMembers, getMembers
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.reflection.IType
conformsTo, getPackage
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.reflection.IPackageableElement
getOwningPackage
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.reflection.INamedElement
getFQName, getNamespace, getUQName, getVisibility
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.reflection.IMElement
getOwnedElements, getOwner, getStereotype, getStereotypeAsText, getTaggedValue
 
Methods inherited from interface rs.sol.soloist.server.uml.concepts.IElement
accept, accept, isKindOf, isModelElement, isRTElement
 

Method Detail

isDerived

boolean isDerived()
                  throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Is this Association derived?

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

getMemberEnds

java.util.List<IProperty> getMemberEnds()
                                        throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Returns the member Properties at all ends. Subsets members.

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

getOwnedEnds

java.util.List<IProperty> getOwnedEnds()
                                       throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Returns the Properties that are owned ends. Subsets members, subsets features, subsets memberEnds.

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

getNavigableOwnedEnds

java.util.List<IProperty> getNavigableOwnedEnds()
                                                throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Returns the Properties that are navigable owned ends. Subsets ownedEnds.

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

getAssociationEndInstance

IAssociationEndInstance getAssociationEndInstance(IClassifierInstance ci,
                                                  IProperty ae)
                                                  throws rs.sol.soloist.server.uml.exceptions.RequestFailedException
Returns the Association End Instance of the given Classifier Instance that corresponds to this Association and is an instance of the given Property that is an end of this Association.
Returns null if there is no such Assocaition End Instance in the given Classifier Instance.

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException

createLink

void createLink(IClassInstance ci1,
                IClassInstance ci2,
                int at1,
                int at2)
                throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                       rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Creates a link of this Association between the two given Class Instances.
Position -1 indicates adding to the tail.
Finds the Association End Instances aei1 and aei2 that correspond to this Association in the given Class Instances ci1 and ci2 by calling getAssociationEndInstance().
To execute the action calls Actions::Action.createLink(aei1,aei2,at1,at2).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

destroyLink

void destroyLink(IClassInstance ci1,
                 IClassInstance ci2,
                 int at1,
                 int at2)
                 throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                        rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Destroys a link of this Association between the two given Class Instances.
Position -1 indicates missing index (irrelevant, remove from any).
Finds the Association End Instances aei1 and aei2 that correspond to this Association in the given Class Instances ci1 and ci2 by calling getAssociationEndInstance().
To execute the action calls Actions::Action.destroyLink(aei1,aei2,at1,at2).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

createLink

void createLink(IClassInstance ci1,
                IClassInstance ci2)
                throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                       rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Simply invokes createLink (aei1,aei2,-1, -1).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException

destroyLink

void destroyLink(IClassInstance ci1,
                 IClassInstance ci2)
                 throws rs.sol.soloist.server.uml.exceptions.RequestFailedException,
                        rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException
Simply invokes destroyLink(aei1,aei2,-1, -1).

Throws:
rs.sol.soloist.server.uml.exceptions.RequestFailedException
rs.sol.soloist.server.uml.exceptions.ActionExecutionFailedException