UML.Semantic.Foundation.Core
Class AssociationEnd

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.AssociationEnd
All Implemented Interfaces:
Element, ElementAtt, LinkAtt
Direct Known Subclasses:
AssociationEndRole

public class AssociationEnd
extends ModelElement

An association end is an endpoint of an association, which connects the association to a classifier. Each association end is part of one association; the association-ends of each association are ordered.

In the metamodel an AssociationEnd is part of an Association and specifies the connection of an Association to a Classifier. It has a name and defines a set of properties of the connection. e.g., which Classifier the Instances must conform to, their multiplicity, and if they may be reached from another Instance via this connection.


Constructor Summary
AssociationEnd()
          Constructor.
 
Method Summary
 void add(Attribute elem)
          Adds a qualifier to this association end.
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 java.lang.String getAggregation()
          Gets the current association end aggregation kind.
 Association getAssociation()
          Gets the identifier of the Association which holds this AssociationEnd.
 java.lang.String getChangeable()
          Gets the current association end changeable kind.
 void getInfo()
          Gets info on AssociationEnd.
 boolean getIsNavigable()
          Gets the value of the isNavigable attribute.
 boolean getIsOrdered()
          Gets the value of the isOrdered attribute.
 java.lang.String getMultiplicity()
          Gets this association end multiplicity string.
 java.util.Vector getQualifier()
          Gets the set of qualifiers of this association end.
 java.lang.String getTargetScope()
          Gets the current association end targetScope kind.
 Classifier getType()
          Gets the type of this association end.
 void setAggregation(java.lang.String mode)
          Sets the association end aggregation attribute to the given kind.
 void setAssociation(java.lang.String association)
          Sets the identifier of the Association holding this AssociationEnd.
 void setChangeable(java.lang.String mode)
          Sets the association end changeable attribute to the given kind.
 void setIsNavigable(boolean isNavigable)
          Sets the value of the isNavigable attribute to the given true or false value.
 void setIsOrdered(java.lang.String mode)
          Sets the value of the isOrdered attribute to the given true or false value.
 void setMultiplicity(java.lang.String mode)
          Sets this association end multiplicity.
 void setTargetScope(java.lang.String mode)
          Sets the association end targetScope attribute to the given kind.
 void setType(java.lang.String type)
          Sets this association end type identifier.
 
Methods inherited from class UML.Semantic.Foundation.Core.ModelElement
add, add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, getIsOwned, getLabel, getLocator, getName, getNamespace, getNamespaceId, getStereotype, getTemplate, getTemplateParameterList, getTitle, getUuid, getUuidref, getVisibility, getVisibilitySymbol, getWarnings, setElementType, setErrors, setHref, setId, setIdref, setIndex, setIsOwned, setLabel, setName, setNamespace, setTemplate, setTitle, setUuid, setUuidref, setVisibility, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationEnd

public AssociationEnd()
Constructor.

Method Detail

setIsNavigable

public void setIsNavigable(boolean isNavigable)
Sets the value of the isNavigable attribute to the given true or false value.


getIsNavigable

public boolean getIsNavigable()
Gets the value of the isNavigable attribute.

Returns:
A true or false value.

setIsOrdered

public void setIsOrdered(java.lang.String mode)
Sets the value of the isOrdered attribute to the given true or false value.


getIsOrdered

public boolean getIsOrdered()
Gets the value of the isOrdered attribute.

Returns:
A true or false value.

setAggregation

public void setAggregation(java.lang.String mode)
Sets the association end aggregation attribute to the given kind.


getAggregation

public java.lang.String getAggregation()
Gets the current association end aggregation kind.

Returns:
The current association end aggregation kind.

setChangeable

public void setChangeable(java.lang.String mode)
Sets the association end changeable attribute to the given kind.


getChangeable

public java.lang.String getChangeable()
Gets the current association end changeable kind.

Returns:
The current association end changeable kind.

setTargetScope

public void setTargetScope(java.lang.String mode)
Sets the association end targetScope attribute to the given kind.


getTargetScope

public java.lang.String getTargetScope()
Gets the current association end targetScope kind.

Returns:
The current association end targetScope kind.

setMultiplicity

public void setMultiplicity(java.lang.String mode)
Sets this association end multiplicity.


getMultiplicity

public java.lang.String getMultiplicity()
Gets this association end multiplicity string.


setType

public void setType(java.lang.String type)
Sets this association end type identifier.


getType

public Classifier getType()
Gets the type of this association end.

Returns:
A Classifier object.

setAssociation

public void setAssociation(java.lang.String association)
Sets the identifier of the Association holding this AssociationEnd.

See Also:
Association

getAssociation

public Association getAssociation()
Gets the identifier of the Association which holds this AssociationEnd.

Returns:
An identifier string.
See Also:
Association

add

public void add(Attribute elem)
Adds a qualifier to this association end.


getQualifier

public java.util.Vector getQualifier()
Gets the set of qualifiers of this association end.

Returns:
A Vector of Qualifier identifiers.

check

public boolean check()
Checks if well-formedness rules are respected in this model element.

Overrides:
check in class ModelElement
Returns:
True if check was successful, false otherwise.

getInfo

public void getInfo()
Gets info on AssociationEnd.

Overrides:
getInfo in class ModelElement