Package com.sodius.mdw.metamodel.uml21
Interface TemplateableElement
-
- 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:
Activity
,Actor
,Artifact
,Association
,AssociationClass
,Behavior
,BehavioredClassifier
,Class
,Classifier
,Collaboration
,CommunicationPath
,Component
,DataType
,DeploymentSpecification
,Device
,EncapsulatedClassifier
,Enumeration
,ExecutionEnvironment
,Extension
,ExtensionEnd
,FunctionBehavior
,InformationItem
,Interaction
,Interface
,Model
,Node
,OpaqueBehavior
,Operation
,Package
,Port
,PrimitiveType
,Profile
,Property
,ProtocolStateMachine
,Signal
,StateMachine
,Stereotype
,StringExpression
,StructuredClassifier
,UseCase
public interface TemplateableElement extends Element
A representation of the model object 'Templateable Element'. A templateable element is an element that can optionally be defined as a template and bound to other templates.The following features are supported:
- See Also:
UMLPackage.getTemplateableElement()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TemplateSignature
createOwnedTemplateSignature()
Creates a newTemplateSignature
and sets the 'Owned Template Signature' containment reference.TemplateSignature
createOwnedTemplateSignature(org.eclipse.emf.ecore.EClass eClass)
Creates a newTemplateSignature
and sets the 'Owned Template Signature' containment reference.TemplateBinding
createTemplateBinding(TemplateSignature signature)
Creates a newTemplateBinding
, with the specified 'Signature', and appends it to the ' Template Binding' containment reference list.TemplateSignature
getOwnedTemplateSignature()
Returns the value of the 'Owned Template Signature' containment reference.TemplateBinding
getTemplateBinding(TemplateSignature signature)
Retrieves the firstTemplateBinding
with the specified 'Signature' from the ' Template Binding' containment reference list.TemplateBinding
getTemplateBinding(TemplateSignature signature, boolean createOnDemand)
Retrieves the firstTemplateBinding
with the specified 'Signature' from the ' Template Binding' containment reference list.MDWEList<TemplateBinding>
getTemplateBindings()
Returns the value of the 'Template Binding' containment reference list.boolean
isTemplate()
The query isTemplate() returns whether this templateable element is actually a template.MDWEList<ParameterableElement>
parameterableElements()
The query parameterableElements() returns the set of elements that may be used as the parametered elements for a template parameter of this templateable element.void
setOwnedTemplateSignature(TemplateSignature value)
Sets the value of the 'Owned Template Signature
' containment reference.-
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
-
getTemplateBindings
MDWEList<TemplateBinding> getTemplateBindings()
Returns the value of the 'Template Binding' containment reference list. The list contents are of typeTemplateBinding
. It is bidirectional and its opposite is 'Bound Element
'. The optional bindings from this element to templates.- Returns:
- the value of the 'Template Binding' containment reference list.
- See Also:
UMLPackage.getTemplateableElement_TemplateBinding()
,TemplateBinding.getBoundElement()
-
createTemplateBinding
TemplateBinding createTemplateBinding(TemplateSignature signature)
Creates a newTemplateBinding
, with the specified 'Signature', and appends it to the ' Template Binding' containment reference list.- Parameters:
signature
- The 'Signature' for the newTemplateBinding
, ornull
.- Returns:
- The new
TemplateBinding
. - See Also:
getTemplateBindings()
-
getTemplateBinding
TemplateBinding getTemplateBinding(TemplateSignature signature)
Retrieves the firstTemplateBinding
with the specified 'Signature' from the ' Template Binding' containment reference list.- Parameters:
signature
- The 'Signature' of theTemplateBinding
to retrieve, ornull
.- Returns:
- The first
TemplateBinding
with the specified 'Signature', ornull
. - See Also:
getTemplateBindings()
-
getTemplateBinding
TemplateBinding getTemplateBinding(TemplateSignature signature, boolean createOnDemand)
Retrieves the firstTemplateBinding
with the specified 'Signature' from the ' Template Binding' containment reference list.- Parameters:
signature
- The 'Signature' of theTemplateBinding
to retrieve, ornull
.createOnDemand
- Whether to create aTemplateBinding
on demand if not found.- Returns:
- The first
TemplateBinding
with the specified 'Signature', ornull
. - See Also:
getTemplateBindings()
-
getOwnedTemplateSignature
TemplateSignature getOwnedTemplateSignature()
Returns the value of the 'Owned Template Signature' containment reference. It is bidirectional and its opposite is 'Template
'. The optional template signature specifying the formal template parameters.- Returns:
- the value of the 'Owned Template Signature' containment reference.
- See Also:
setOwnedTemplateSignature(TemplateSignature)
,UMLPackage.getTemplateableElement_OwnedTemplateSignature()
,TemplateSignature.getTemplate()
-
setOwnedTemplateSignature
void setOwnedTemplateSignature(TemplateSignature value)
Sets the value of the 'Owned Template Signature
' containment reference.- Parameters:
value
- the new value of the 'Owned Template Signature' containment reference.- See Also:
getOwnedTemplateSignature()
-
createOwnedTemplateSignature
TemplateSignature createOwnedTemplateSignature(org.eclipse.emf.ecore.EClass eClass)
Creates a newTemplateSignature
and sets the 'Owned Template Signature' containment reference.- Parameters:
eClass
- The Ecore class of theTemplateSignature
to create.- Returns:
- The new
TemplateSignature
. - See Also:
getOwnedTemplateSignature()
-
createOwnedTemplateSignature
TemplateSignature createOwnedTemplateSignature()
Creates a newTemplateSignature
and sets the 'Owned Template Signature' containment reference.- Returns:
- The new
TemplateSignature
. - See Also:
getOwnedTemplateSignature()
-
parameterableElements
MDWEList<ParameterableElement> parameterableElements()
The query parameterableElements() returns the set of elements that may be used as the parametered elements for a template parameter of this templateable element. By default, this set includes all the owned elements. Subclasses may override this operation if they choose to restrict the set of parameterable elements. result = allOwnedElements->select(oclIsKindOf(ParameterableElement))
-
isTemplate
boolean isTemplate()
The query isTemplate() returns whether this templateable element is actually a template. result = ownedTemplateSignature->notEmpty()
-
-