org.eclipse.uml2.uml
Interface LinkEndDestructionData

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

public interface LinkEndDestructionData
extends LinkEndData

A representation of the model object 'Link End Destruction Data'. LinkEndDestructionData is LinkEndData used to provide values for one end of a link to be destroyed by a DestroyLinkAction.

From package UML::Actions.

The following features are supported:

See Also:
UMLPackage.getLinkEndDestructionData()

Method Summary
 InputPin getDestroyAt()
          Returns the value of the 'Destroy At' reference
 boolean isDestroyDuplicates()
          Returns the value of the 'Is Destroy Duplicates' attribute.
 void setDestroyAt(InputPin value)
          Sets the value of the 'Destroy At' reference
 void setIsDestroyDuplicates(boolean value)
          Sets the value of the 'Is Destroy Duplicates' attribute
 boolean validateDestroyAtPin(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          LinkEndDestructionData for ordered, nonunique Association ends must have a single destroyAt InputPin if isDestroyDuplicates is false, which must be of type UnlimitedNatural and have a multiplicity of 1..1.
 
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

isDestroyDuplicates

boolean isDestroyDuplicates()
Returns the value of the 'Is Destroy Duplicates' attribute. The default value is "false". Specifies whether to destroy duplicates of the value in nonunique Association ends.

From package UML::Actions.

Returns:
the value of the 'Is Destroy Duplicates' attribute.
See Also:
setIsDestroyDuplicates(boolean), UMLPackage.getLinkEndDestructionData_IsDestroyDuplicates()

setIsDestroyDuplicates

void setIsDestroyDuplicates(boolean value)
Sets the value of the 'Is Destroy Duplicates' attribute.

Parameters:
value - the new value of the 'Is Destroy Duplicates' attribute.
See Also:
isDestroyDuplicates()

validateDestroyAtPin

boolean validateDestroyAtPin(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                             java.util.Map<java.lang.Object,java.lang.Object> context)
LinkEndDestructionData for ordered, nonunique Association ends must have a single destroyAt InputPin if isDestroyDuplicates is false, which must be of type UnlimitedNatural and have a multiplicity of 1..1. Otherwise, the action has no destroyAt input pin. if not end.isOrdered or end.isUnique or isDestroyDuplicates then destroyAt = null else destroyAt <> null and destroyAt->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.

getDestroyAt

InputPin getDestroyAt()
Returns the value of the 'Destroy At' reference. The InputPin that provides the position of an existing link to be destroyed in an ordered, nonunique Association end. The type of the destroyAt InputPin is UnlimitedNatural, but the value cannot be zero or unlimited.

From package UML::Actions.

Returns:
the value of the 'Destroy At' reference.
See Also:
setDestroyAt(InputPin), UMLPackage.getLinkEndDestructionData_DestroyAt()

setDestroyAt

void setDestroyAt(InputPin value)
Sets the value of the 'Destroy At' reference.

Parameters:
value - the new value of the 'Destroy At' reference.
See Also:
getDestroyAt()

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