Package com.sodius.mdw.metamodel.uml21
Interface TemplateBinding
-
- All Superinterfaces:
Comparable<Object>
,DirectedRelationship
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,org.eclipse.emf.common.notify.Notifier
,Relationship
public interface TemplateBinding extends DirectedRelationship
A representation of the model object 'Template Binding'. A template binding represents a relationship between a templateable element and a template. A template binding specifies the substitutions of actual parameters for the formal parameters of the template.The following features are supported:
- See Also:
UMLPackage.getTemplateBinding()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TemplateParameterSubstitution
createParameterSubstitution()
Creates a newTemplateParameterSubstitution
and appends it to the ' Parameter Substitution' containment reference list.TemplateableElement
getBoundElement()
Returns the value of the 'Bound Element' container reference.MDWEList<TemplateParameterSubstitution>
getParameterSubstitutions()
Returns the value of the 'Parameter Substitution' containment reference list.TemplateSignature
getSignature()
Returns the value of the 'Signature' reference.void
setBoundElement(TemplateableElement value)
Sets the value of the 'Bound Element
' container reference.void
setSignature(TemplateSignature value)
Sets the value of the 'Signature
' reference.boolean
validateOneParameterSubstitution(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
A binding contains at most one parameter substitution for each formal template parameter of the target template signature.boolean
validateParameterSubstitutionFormal(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Each parameter substitution must refer to a formal template parameter of the target template signature.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.DirectedRelationship
getSources, getTargets
-
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.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
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Relationship
getRelatedElements
-
-
-
-
Method Detail
-
getSignature
TemplateSignature getSignature()
Returns the value of the 'Signature' reference. The template signature for the template that is the target of the binding.- Returns:
- the value of the 'Signature' reference.
- See Also:
setSignature(TemplateSignature)
,UMLPackage.getTemplateBinding_Signature()
-
setSignature
void setSignature(TemplateSignature value)
Sets the value of the 'Signature
' reference.- Parameters:
value
- the new value of the 'Signature' reference.- See Also:
getSignature()
-
getParameterSubstitutions
MDWEList<TemplateParameterSubstitution> getParameterSubstitutions()
Returns the value of the 'Parameter Substitution' containment reference list. The list contents are of typeTemplateParameterSubstitution
. It is bidirectional and its opposite is 'Template Binding
'. The parameter substitutions owned by this template binding.- Returns:
- the value of the 'Parameter Substitution' containment reference list.
- See Also:
UMLPackage.getTemplateBinding_ParameterSubstitution()
,TemplateParameterSubstitution.getTemplateBinding()
-
createParameterSubstitution
TemplateParameterSubstitution createParameterSubstitution()
Creates a newTemplateParameterSubstitution
and appends it to the ' Parameter Substitution' containment reference list.- Returns:
- The new
TemplateParameterSubstitution
. - See Also:
getParameterSubstitutions()
-
getBoundElement
TemplateableElement getBoundElement()
Returns the value of the 'Bound Element' container reference. It is bidirectional and its opposite is 'Template Binding
'. The element that is bound by this binding.- Returns:
- the value of the 'Bound Element' container reference.
- See Also:
setBoundElement(TemplateableElement)
,UMLPackage.getTemplateBinding_BoundElement()
,TemplateableElement.getTemplateBindings()
-
setBoundElement
void setBoundElement(TemplateableElement value)
Sets the value of the 'Bound Element
' container reference.- Parameters:
value
- the new value of the 'Bound Element' container reference.- See Also:
getBoundElement()
-
validateParameterSubstitutionFormal
boolean validateParameterSubstitutionFormal(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Each parameter substitution must refer to a formal template parameter of the target template signature. parameterSubstitution->forAll(b | template.parameter->includes(b.formal))
-
validateOneParameterSubstitution
boolean validateOneParameterSubstitution(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
A binding contains at most one parameter substitution for each formal template parameter of the target template signature. template.parameter->forAll(p | parameterSubstitution->select(b | b.formal = p)->size() <= 1)
-
-