uci.uml.Foundation.Core
Class Association

java.lang.Object
  |
  +--uci.uml.Foundation.Core.ElementImpl
        |
        +--uci.uml.Foundation.Core.ModelElementImpl
              |
              +--uci.uml.Foundation.Core.NamespaceImpl
                    |
                    +--uci.uml.Foundation.Core.GeneralizableElementImpl
                          |
                          +--uci.uml.Foundation.Core.Association
Direct Known Subclasses:
AssociationRole

public class Association
extends GeneralizableElementImpl
implements IAssociation

By default, Associations are in the same Namespace as their source Classifier

See Also:
Serialized Form

Field Summary
 Vector _connection
           
 Vector _link
           
 
Fields inherited from class uci.uml.Foundation.Core.GeneralizableElementImpl
_generalization, _isAbstract, _isLeaf, _isRoot, _specialization
 
Fields inherited from class uci.uml.Foundation.Core.NamespaceImpl
_ownedElement
 
Fields inherited from class uci.uml.Foundation.Core.ModelElementImpl
_behavior, _collaboration, _constraint, _elementOwnership, _elementReference, _provision, _requirement, _stereotype, _taggedValue, _template, _templateParameter, MAX_STEREOTYPE
 
Fields inherited from class uci.uml.Foundation.Core.ElementImpl
_characteristic, _classification, _highlight, _name, _propertyListeners, _staticListener, _taggedValue, _vetoListeners, elementID
 
Constructor Summary
Association()
           
Association(Classifier srcC, Classifier dstC)
           
Association(Name name)
           
Association(Name name, Name srcN, Classifier srcC, Multiplicity srcM, AggregationKind srcA, Name dstN, Classifier dstC, Multiplicity dstM, AggregationKind dstA)
           
Association(String nameStr)
           
Association(String nameStr, AssociationEnd from, AssociationEnd to)
           
 
Method Summary
 void addConnection(AssociationEnd x)
           
 void addLink(Link x)
           
 String dbgString()
           
 Vector getConnection()
           
 Vector getLink()
           
 boolean hasAggregateEnd()
           
 boolean hasCompositeEnd()
           
 Object prepareForTrash()
           
 void recoverFromTrash(Object momento)
           
 void removeConnection(AssociationEnd x)
           
 void removeLink(Link x)
           
 void setConnection(Vector x)
           
 void setLink(Vector x)
           
 
Methods inherited from class uci.uml.Foundation.Core.GeneralizableElementImpl
addGeneralization, addSpecialization, alsoTrash, getGeneralization, getIsAbstract, getIsLeaf, getIsRoot, getSpecialization, removeGeneralization, removeSpecialization, setGeneralization, setIsAbstract, setIsLeaf, setIsRoot, setSpecialization
 
Methods inherited from class uci.uml.Foundation.Core.NamespaceImpl
addOwnedElement, addPrivateOwnedElement, addProtectedOwnedElement, addPublicOwnedElement, addUnspecOwnedElement, contains, contains, containsPublic, elementOwnershipFor, findElementNamed, getModelElements, getOwnedElement, removeOwnedElement, setOwnedElement
 
Methods inherited from class uci.uml.Foundation.Core.ModelElementImpl
addBehavior, addConstraint, addElementReference, addProvision, addRequirement, addStereotype, addTemplateParameter, containsStereotype, dbgStereotypes, dbgTaggedValues, getBehavior, getConstraint, getElementOwnership, getElementReference, getNamespace, getProvision, getRequirement, getStereotype, getTemplate, getTemplateParameter, getVisibility, isLegalXMI, isNotLegalXMI, removeBehavior, removeConstraint, removeElementReference, removeProvision, removeRequirement, removeStereotype, removeTemplateParameter, setBehavior, setConstraint, setElementOwnership, setElementReference, setNamespace, setProvision, setRequirement, setStereotype, setTemplate, setTemplateParameter, setVisibility
 
Methods inherited from class uci.uml.Foundation.Core.ElementImpl
addCharacteristic, addPropertyChangeListener, addTaggedValue, addVetoableChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChangeNoCritique, firePropertyChangeNoCritique, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChangeNoCompare, getCharacteristic, getClassification, getElementCount, getHighlight, getId, getName, getNamedProperty, getOCLTypeStr, getTaggedValue, getVetoListeners, newElementID, removeCharacteristic, removePropertyChangeListener, removeTaggedValue, removeVetoableChangeListener, setCharacteristic, setClassification, setElementCount, setHighlight, setId, setName, setName, setStaticChangeListener, setTaggedValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_connection

public Vector _connection

_link

public Vector _link
Constructor Detail

Association

public Association()

Association

public Association(Name name)

Association

public Association(String nameStr)

Association

public Association(String nameStr,
                   AssociationEnd from,
                   AssociationEnd to)

Association

public Association(Name name,
                   Name srcN,
                   Classifier srcC,
                   Multiplicity srcM,
                   AggregationKind srcA,
                   Name dstN,
                   Classifier dstC,
                   Multiplicity dstM,
                   AggregationKind dstA)

Association

public Association(Classifier srcC,
                   Classifier dstC)
Method Detail

getConnection

public Vector getConnection()
Specified by:
getConnection in interface IAssociation

setConnection

public void setConnection(Vector x)
                   throws PropertyVetoException
Specified by:
setConnection in interface IAssociation

addConnection

public void addConnection(AssociationEnd x)
                   throws PropertyVetoException
Specified by:
addConnection in interface IAssociation

removeConnection

public void removeConnection(AssociationEnd x)
                      throws PropertyVetoException
Specified by:
removeConnection in interface IAssociation

getLink

public Vector getLink()
Specified by:
getLink in interface IAssociation

setLink

public void setLink(Vector x)
             throws PropertyVetoException
Specified by:
setLink in interface IAssociation

addLink

public void addLink(Link x)
             throws PropertyVetoException
Specified by:
addLink in interface IAssociation

removeLink

public void removeLink(Link x)
                throws PropertyVetoException
Specified by:
removeLink in interface IAssociation

hasCompositeEnd

public boolean hasCompositeEnd()
Specified by:
hasCompositeEnd in interface IAssociation

hasAggregateEnd

public boolean hasAggregateEnd()
Specified by:
hasAggregateEnd in interface IAssociation

prepareForTrash

public Object prepareForTrash()
                       throws PropertyVetoException
Overrides:
prepareForTrash in class NamespaceImpl

recoverFromTrash

public void recoverFromTrash(Object momento)
                      throws PropertyVetoException
Overrides:
recoverFromTrash in class NamespaceImpl

dbgString

public String dbgString()
Overrides:
dbgString in class ElementImpl