org.eclipse.uml2.uml
Interface LinkEndData

All Superinterfaces:
Element, EModelElement, EObject, Notifier
All Known Subinterfaces:
LinkEndCreationData, LinkEndDestructionData

public interface LinkEndData
extends Element

A representation of the model object 'Link End Data'. A link end data is not an action. It is an element that identifies links. It identifies one end of a link to be read or written by the children of a link action. A link cannot be passed as a runtime value to or from an action. Instead, a link is identified by its end objects and qualifier values, if any. This requires more than one piece of data, namely, the statically-specified end in the user model, the object on the end, and the qualifier values for that end, if any. These pieces are brought together around a link end data. Each association end is identified separately with an instance of the LinkEndData class.

The following features are supported:

See Also:
UMLPackage.getLinkEndData()

Method Summary
 QualifierValue createQualifier()
          Creates a new QualifierValue and appends it to the 'Qualifier' containment reference list
 Property getEnd()
          Returns the value of the 'End' reference
 EList getQualifiers()
          Returns the value of the 'Qualifier' containment reference list.
 InputPin getValue()
          Returns the value of the 'Value' reference
 void setEnd(Property value)
          Sets the value of the 'End' reference
 void setValue(InputPin value)
          Sets the value of the 'Value' reference
 boolean validateEndObjectInputPin(DiagnosticChain diagnostics, Map context)
           The end object input pin is not also a qualifier value input pin.
 boolean validateMultiplicity(DiagnosticChain diagnostics, Map context)
           The multiplicity of the end object input pin must be 1..1.
 boolean validatePropertyIsAssociationEnd(DiagnosticChain diagnostics, Map context)
           The property must be an association end.
 boolean validateQualifiers(DiagnosticChain diagnostics, Map context)
           The qualifiers include all and only the qualifiers of the association end.
 boolean validateSameType(DiagnosticChain diagnostics, Map context)
           The type of the end object input pin is the same as the type of the association end.
 
Methods inherited from interface org.eclipse.uml2.uml.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getValue

public InputPin getValue()
Returns the value of the 'Value' reference. Input pin that provides the specified object for the given end. This pin is omitted if the link-end data specifies an 'open' end for reading.

Returns:
the value of the 'Value' reference.
See Also:
LinkEndData.setValue(InputPin), UMLPackage.getLinkEndData_Value()

setValue

public void setValue(InputPin value)
Sets the value of the 'Value' reference.

Parameters:
value - the new value of the 'Value' reference.
See Also:
LinkEndData.getValue()

getEnd

public Property getEnd()
Returns the value of the 'End' reference. Association end for which this link-end data specifies values.

Returns:
the value of the 'End' reference.
See Also:
LinkEndData.setEnd(Property), UMLPackage.getLinkEndData_End()

setEnd

public void setEnd(Property value)
Sets the value of the 'End' reference.

Parameters:
value - the new value of the 'End' reference.
See Also:
LinkEndData.getEnd()

getQualifiers

public EList getQualifiers()
Returns the value of the 'Qualifier' containment reference list. The list contents are of type QualifierValue. List of qualifier values

Returns:
the value of the 'Qualifier' containment reference list.
See Also:
UMLPackage.getLinkEndData_Qualifier()

createQualifier

public QualifierValue createQualifier()
Creates a new QualifierValue and appends it to the 'Qualifier' containment reference list.

Returns:
The new QualifierValue.
See Also:
LinkEndData.getQualifiers()

validatePropertyIsAssociationEnd

public boolean validatePropertyIsAssociationEnd(DiagnosticChain diagnostics,
                                                Map context)
The property must be an association end. self.end.association->size() = 1


validateSameType

public boolean validateSameType(DiagnosticChain diagnostics,
                                Map context)
The type of the end object input pin is the same as the type of the association end. self.value.type = self.end.type


validateMultiplicity

public boolean validateMultiplicity(DiagnosticChain diagnostics,
                                    Map context)
The multiplicity of the end object input pin must be 1..1. self.value.multiplicity.is(1,1)


validateQualifiers

public boolean validateQualifiers(DiagnosticChain diagnostics,
                                  Map context)
The qualifiers include all and only the qualifiers of the association end. self.qualifier->collect(qualifier) = self.end.qualifier


validateEndObjectInputPin

public boolean validateEndObjectInputPin(DiagnosticChain diagnostics,
                                         Map context)
The end object input pin is not also a qualifier value input pin. self.value->excludesAll(self.qualifier.value)


Copyright 2003, 2006 IBM Corporation and others.
All Rights Reserved.