Package com.sodius.mdw.metamodel.uml21
Interface TemplateParameterSubstitution
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,org.eclipse.emf.common.notify.Notifier
public interface TemplateParameterSubstitution extends Element
A representation of the model object 'Template Parameter Substitution'. A template parameter substitution relates the actual parameter(s) to a formal template parameter as part of a template binding.The following features are supported:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ParameterableElement
createOwnedActual(org.eclipse.emf.ecore.EClass eClass)
Creates a newParameterableElement
and appends it to the 'Owned Actual' containment reference list.MDWEList<ParameterableElement>
getActuals()
Returns the value of the 'Actual' reference list.TemplateParameter
getFormal()
Returns the value of the 'Formal' reference.MDWEList<ParameterableElement>
getOwnedActuals()
Returns the value of the 'Owned Actual' containment reference list.TemplateBinding
getTemplateBinding()
Returns the value of the 'Template Binding' container reference.void
setFormal(TemplateParameter value)
Sets the value of the 'Formal
' reference.void
setTemplateBinding(TemplateBinding value)
Sets the value of the 'Template Binding
' container reference.boolean
validateMustBeCompatible(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The actual parameter must be compatible with the formal template parameter, e.g.-
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
-
-
-
-
Method Detail
-
getFormal
TemplateParameter getFormal()
Returns the value of the 'Formal' reference. The formal template parameter that is associated with this substitution.- Returns:
- the value of the 'Formal' reference.
- See Also:
setFormal(TemplateParameter)
,UMLPackage.getTemplateParameterSubstitution_Formal()
-
setFormal
void setFormal(TemplateParameter value)
Sets the value of the 'Formal
' reference.- Parameters:
value
- the new value of the 'Formal' reference.- See Also:
getFormal()
-
getActuals
MDWEList<ParameterableElement> getActuals()
Returns the value of the 'Actual' reference list. The list contents are of typeParameterableElement
. The elements that are the actual parameters for this substitution.- Returns:
- the value of the 'Actual' reference list.
- See Also:
UMLPackage.getTemplateParameterSubstitution_Actual()
-
getOwnedActuals
MDWEList<ParameterableElement> getOwnedActuals()
Returns the value of the 'Owned Actual' containment reference list. The list contents are of typeParameterableElement
. The actual parameters that are owned by this substitution.- Returns:
- the value of the 'Owned Actual' containment reference list.
- See Also:
UMLPackage.getTemplateParameterSubstitution_OwnedActual()
-
createOwnedActual
ParameterableElement createOwnedActual(org.eclipse.emf.ecore.EClass eClass)
Creates a newParameterableElement
and appends it to the 'Owned Actual' containment reference list.- Parameters:
eClass
- The Ecore class of theParameterableElement
to create.- Returns:
- The new
ParameterableElement
. - See Also:
getOwnedActuals()
-
getTemplateBinding
TemplateBinding getTemplateBinding()
Returns the value of the 'Template Binding' container reference. It is bidirectional and its opposite is 'Parameter Substitution
'. The optional bindings from this element to templates.- Returns:
- the value of the 'Template Binding' container reference.
- See Also:
setTemplateBinding(TemplateBinding)
,UMLPackage.getTemplateParameterSubstitution_TemplateBinding()
,TemplateBinding.getParameterSubstitutions()
-
setTemplateBinding
void setTemplateBinding(TemplateBinding value)
Sets the value of the 'Template Binding
' container reference.- Parameters:
value
- the new value of the 'Template Binding' container reference.- See Also:
getTemplateBinding()
-
validateMustBeCompatible
boolean validateMustBeCompatible(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The actual parameter must be compatible with the formal template parameter, e.g. the actual parameter for a class template parameter must be a class. actual->forAll(a | a.isCompatibleWith(formal.parameteredElement))
-
-