org.eclipse.uml2.uml
Interface LinkEndCreationData

All Superinterfaces:
Element, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, LinkEndData, org.eclipse.emf.common.notify.Notifier

public interface LinkEndCreationData
extends LinkEndData

A representation of the model object 'Link End Creation Data'. LinkEndCreationData is LinkEndData used to provide values for one end of a link to be created by a CreateLinkAction.

From package UML::Actions.

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 validateInsertAtPin(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          LinkEndCreationData for ordered Association ends must have a single insertAt InputPin for the insertion point with type UnlimitedNatural and multiplicity of 1..1, if isReplaceAll=false, and must have no InputPin for the insertion point when the association ends are unordered.
 
Methods inherited from interface org.eclipse.uml2.uml.LinkEndData
allPins, 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, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

isReplaceAll

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.

From package UML::Actions.

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

setIsReplaceAll

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:
isReplaceAll()

validateInsertAtPin

boolean validateInsertAtPin(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                            java.util.Map<java.lang.Object,java.lang.Object> context)
LinkEndCreationData for ordered Association ends must have a single insertAt InputPin for the insertion point with type UnlimitedNatural and multiplicity of 1..1, if isReplaceAll=false, and must have no InputPin for the insertion point when the association ends are unordered. if not end.isOrdered then insertAt = null else not isReplaceAll=false implies insertAt <> null and insertAt->forAll(type=UnlimitedNatural and is(1,1)) endif

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

getInsertAt

InputPin getInsertAt()
Returns the value of the 'Insert At' reference. For ordered Association ends, the InputPin that provides the position where the new link should be inserted or where an existing link should be moved to. The type of the insertAt InputPin is UnlimitedNatural, but the input cannot be zero. It is omitted for Association ends that are not ordered.

From package UML::Actions.

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

setInsertAt

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

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

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