org.eclipse.uml2.uml
Interface LinkEndData

All Superinterfaces:
Element, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
LinkEndCreationData, LinkEndDestructionData

public interface LinkEndData
extends Element

A representation of the model object 'Link End Data'. LinkEndData is an Element that identifies on end of a link to be read or written by a LinkAction. As a link (that is not a link object) cannot be passed as a runtime value to or from an Action, it is instead identified by its end objects and qualifier values, if any. A LinkEndData instance provides these values for a single Association end.

From package UML::Actions.

The following features are supported:

See Also:
UMLPackage.getLinkEndData()

Method Summary
 org.eclipse.emf.common.util.EList<InputPin> allPins()
          Returns all the InputPins referenced by this LinkEndData.
 QualifierValue createQualifier()
          Creates a new QualifierValue and appends it to the 'Qualifier' containment reference list
 Property getEnd()
          Returns the value of the 'End' reference
 org.eclipse.emf.common.util.EList<QualifierValue> 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(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          The value InputPin is not also the qualifier value InputPin.
 boolean validateMultiplicity(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          The multiplicity of the value InputPin must be 1..1.
 boolean validatePropertyIsAssociationEnd(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          The Property must be an Association memberEnd.
 boolean validateQualifiers(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          The qualifiers must be qualifiers of the Association end.
 boolean validateSameType(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          The type of the value InputPin conforms to 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, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getValue

InputPin getValue()
Returns the value of the 'Value' reference. The InputPin that provides the specified value for the given end. This InputPin is omitted if the LinkEndData specifies the "open" end for a ReadLinkAction.

From package UML::Actions.

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

setValue

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

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

getEnd

Property getEnd()
Returns the value of the 'End' reference. The Association end for which this LinkEndData specifies values.

From package UML::Actions.

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

setEnd

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

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

getQualifiers

org.eclipse.emf.common.util.EList<QualifierValue> getQualifiers()
Returns the value of the 'Qualifier' containment reference list. The list contents are of type QualifierValue.

This feature subsets the following features:

A set of QualifierValues used to provide values for the qualifiers of the end.

From package UML::Actions.

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

createQualifier

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

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

validatePropertyIsAssociationEnd

boolean validatePropertyIsAssociationEnd(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                         java.util.Map<java.lang.Object,java.lang.Object> context)
The Property must be an Association memberEnd. end.association <> null

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateSameType

boolean validateSameType(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                         java.util.Map<java.lang.Object,java.lang.Object> context)
The type of the value InputPin conforms to the type of the Association end. value<>null implies value.type.conformsTo(end.type)

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateMultiplicity

boolean validateMultiplicity(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                             java.util.Map<java.lang.Object,java.lang.Object> context)
The multiplicity of the value InputPin must be 1..1. value<>null implies value.is(1,1)

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateQualifiers

boolean validateQualifiers(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                           java.util.Map<java.lang.Object,java.lang.Object> context)
The qualifiers must be qualifiers of the Association end. end.qualifier->includesAll(qualifier.qualifier)

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

allPins

org.eclipse.emf.common.util.EList<InputPin> allPins()
Returns all the InputPins referenced by this LinkEndData. By default this includes the value and qualifier InputPins, but subclasses may override the operation to add other InputPins. result = (value->asBag()->union(qualifier.value))

From package UML::Actions.


validateEndObjectInputPin

boolean validateEndObjectInputPin(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                  java.util.Map<java.lang.Object,java.lang.Object> context)
The value InputPin is not also the qualifier value InputPin. value->excludesAll(qualifier.value)

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

Copyright 2003, 2014 IBM Corporation, CEA, and others.
All Rights Reserved.