org.eclipse.uml2.uml
Interface LinkEndCreationData

All Superinterfaces:
Element, EModelElement, EObject, LinkEndData, Notifier

public interface LinkEndCreationData
extends LinkEndData

A representation of the model object 'Link End Creation Data'. A link end creation data is not an action. It is an element that identifies links. It identifies one end of a link to be created by a create link action.

The following features are supported:

See Also:
UMLPackage.getLinkEndCreationData()

Method Summary
 InputPin getInsertAt()
          Returns the value of the 'Insert At' reference
 boolean isReplaceAll()
          Returns the value of the 'Is Replace All' attribute.
 void setInsertAt(InputPin value)
          Sets the value of the 'Insert At' reference
 void setIsReplaceAll(boolean value)
          Sets the value of the 'Is Replace All' attribute
 boolean validateCreateLinkAction(DiagnosticChain diagnostics, Map context)
           LinkEndCreationData can only be end data for CreateLinkAction or one of its specializations.
 boolean validateSingleInputPin(DiagnosticChain diagnostics, Map context)
           Link end creation data for ordered association ends must have a single input pin for the insertion point with type UnlimitedNatural and multiplicity of 1..1, otherwise the action has no input pin for the insertion point.
 
Methods inherited from interface org.eclipse.uml2.uml.LinkEndData
createQualifier, getEnd, getQualifiers, getValue, setEnd, setValue, validateEndObjectInputPin, validateMultiplicity, validatePropertyIsAssociationEnd, validateQualifiers, validateSameType
 
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

isReplaceAll

public boolean isReplaceAll()
Returns the value of the 'Is Replace All' attribute. The default value is "false". Specifies whether the existing links emanating from the object on this end should be destroyed before creating a new link.

Returns:
the value of the 'Is Replace All' attribute.
See Also:
LinkEndCreationData.setIsReplaceAll(boolean), UMLPackage.getLinkEndCreationData_IsReplaceAll()

setIsReplaceAll

public void setIsReplaceAll(boolean value)
Sets the value of the 'Is Replace All' attribute.

Parameters:
value - the new value of the 'Is Replace All' attribute.
See Also:
LinkEndCreationData.isReplaceAll()

getInsertAt

public InputPin getInsertAt()
Returns the value of the 'Insert At' reference. Specifies where the new link should be inserted for ordered association ends, or where an existing link should be moved to. The type of the input is UnlimitedNatural, but the input cannot be zero. This pin is omitted for association ends that are not ordered.

Returns:
the value of the 'Insert At' reference.
See Also:
LinkEndCreationData.setInsertAt(InputPin), UMLPackage.getLinkEndCreationData_InsertAt()

setInsertAt

public void setInsertAt(InputPin value)
Sets the value of the 'Insert At' reference.

Parameters:
value - the new value of the 'Insert At' reference.
See Also:
LinkEndCreationData.getInsertAt()

validateCreateLinkAction

public boolean validateCreateLinkAction(DiagnosticChain diagnostics,
                                        Map context)
LinkEndCreationData can only be end data for CreateLinkAction or one of its specializations. self.LinkAction.oclIsKindOf(CreateLinkAction)


validateSingleInputPin

public boolean validateSingleInputPin(DiagnosticChain diagnostics,
                                      Map context)
Link end creation data for ordered association ends must have a single input pin for the insertion point with type UnlimitedNatural and multiplicity of 1..1, otherwise the action has no input pin for the insertion point. let insertAtPins : Collection = self.insertAt in if self.end.ordering = #unordered then insertAtPins->size() = 0 else let insertAtPin : InputPin = insertAts->asSequence()->first() in insertAtPins->size() = 1 and insertAtPin.type = UnlimitedNatural and insertAtPin.multiplicity.is(1,1)) endif


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