Package com.sodius.mdw.metamodel.uml21
Interface TemplateSignature
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
RedefinableTemplateSignature
public interface TemplateSignature extends Element
A representation of the model object 'Template Signature'. A template signature bundles the set of formal template parameters for a templated element.The following features are supported:
- See Also:
UMLPackage.getTemplateSignature()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TemplateParameter
createOwnedParameter()
Creates a newTemplateParameter
and appends it to the 'Owned Parameter' containment reference list.TemplateParameter
createOwnedParameter(org.eclipse.emf.ecore.EClass eClass)
Creates a newTemplateParameter
and appends it to the 'Owned Parameter' containment reference list.MDWEList<TemplateParameter>
getOwnedParameters()
Returns the value of the 'Owned Parameter' containment reference list.MDWEList<TemplateParameter>
getParameters()
Returns the value of the 'Parameter' reference list.TemplateableElement
getTemplate()
Returns the value of the 'Template' container reference.void
setTemplate(TemplateableElement value)
Sets the value of the 'Template
' container reference.boolean
validateOwnElements(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Parameters must own the elements they parameter or those elements must be owned by the element being templated.-
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
-
getParameters
MDWEList<TemplateParameter> getParameters()
Returns the value of the 'Parameter' reference list. The list contents are of typeTemplateParameter
. The ordered set of all formal template parameters for this template signature.- Returns:
- the value of the 'Parameter' reference list.
- See Also:
UMLPackage.getTemplateSignature_Parameter()
-
getTemplate
TemplateableElement getTemplate()
Returns the value of the 'Template' container reference. It is bidirectional and its opposite is 'Owned Template Signature
'. The element that owns this template signature.- Returns:
- the value of the 'Template' container reference.
- See Also:
setTemplate(TemplateableElement)
,UMLPackage.getTemplateSignature_Template()
,TemplateableElement.getOwnedTemplateSignature()
-
setTemplate
void setTemplate(TemplateableElement value)
Sets the value of the 'Template
' container reference.- Parameters:
value
- the new value of the 'Template' container reference.- See Also:
getTemplate()
-
getOwnedParameters
MDWEList<TemplateParameter> getOwnedParameters()
Returns the value of the 'Owned Parameter' containment reference list. The list contents are of typeTemplateParameter
. It is bidirectional and its opposite is 'Signature
'. The formal template parameters that are owned by this template signature.- Returns:
- the value of the 'Owned Parameter' containment reference list.
- See Also:
UMLPackage.getTemplateSignature_OwnedParameter()
,TemplateParameter.getSignature()
-
createOwnedParameter
TemplateParameter createOwnedParameter(org.eclipse.emf.ecore.EClass eClass)
Creates a newTemplateParameter
and appends it to the 'Owned Parameter' containment reference list.- Parameters:
eClass
- The Ecore class of theTemplateParameter
to create.- Returns:
- The new
TemplateParameter
. - See Also:
getOwnedParameters()
-
createOwnedParameter
TemplateParameter createOwnedParameter()
Creates a newTemplateParameter
and appends it to the 'Owned Parameter' containment reference list.- Returns:
- The new
TemplateParameter
. - See Also:
getOwnedParameters()
-
validateOwnElements
boolean validateOwnElements(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
Parameters must own the elements they parameter or those elements must be owned by the element being templated. templatedElement.ownedElement->includesAll(parameter.parameteredElement - parameter.ownedParameteredElement)
-
-