Package com.sodius.mdw.metamodel.uml21
Interface LinkEndCreationData
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,LinkEndData
,MDWEObject
,MDWObject
,org.eclipse.emf.common.notify.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
LinkEndCreationData can only be end data for CreateLinkAction or one of its specializations.boolean
validateSingleInputPin(org.eclipse.emf.common.util.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 com.sodius.mdw.metamodel.uml21.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 com.sodius.mdw.metamodel.uml21.LinkEndData
createQualifier, getEnd, getQualifiers, getValue, setEnd, setValue, validateEndObjectInputPin, validateMultiplicity, validatePropertyIsAssociationEnd, validateQualifiers, validateSameType
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
-
-
-
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.- 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()
-
getInsertAt
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:
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()
-
validateCreateLinkAction
boolean validateCreateLinkAction(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
LinkEndCreationData can only be end data for CreateLinkAction or one of its specializations. self.LinkAction.oclIsKindOf(CreateLinkAction)
-
validateSingleInputPin
boolean validateSingleInputPin(org.eclipse.emf.common.util.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
-
-