org.eclipse.uml2.uml
Interface TemplateableElement

All Superinterfaces:
Element, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, 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, FunctionBehavior, InformationItem, Interaction, Interface, Model, Node, OpaqueBehavior, Operation, Package, PrimitiveType, Profile, ProtocolStateMachine, Signal, StateMachine, Stereotype, StringExpression, StructuredClassifier, UseCase

public interface TemplateableElement
extends Element

A representation of the model object 'Templateable Element'. A TemplateableElement is an Element that can optionally be defined as a template and bound to other templates.

From package UML::CommonStructure.

The following features are supported:

See Also:
UMLPackage.getTemplateableElement()

Method Summary
 TemplateSignature createOwnedTemplateSignature()
          Creates a new TemplateSignature and sets the 'Owned Template Signature' containment reference
 TemplateSignature createOwnedTemplateSignature(org.eclipse.emf.ecore.EClass eClass)
          Creates a new TemplateSignature and sets the 'Owned Template Signature' containment reference
 TemplateBinding createTemplateBinding(TemplateSignature signature)
          Creates a new TemplateBinding, 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 first TemplateBinding with the specified 'Signature' from the 'Template Binding' containment reference list
 TemplateBinding getTemplateBinding(TemplateSignature signature, boolean createOnDemand)
          Retrieves the first TemplateBinding with the specified 'Signature' from the 'Template Binding' containment reference list
 org.eclipse.emf.common.util.EList<TemplateBinding> getTemplateBindings()
          Returns the value of the 'Template Binding' containment reference list.
 boolean isTemplate()
          The query isTemplate() returns whether this TemplateableElement is actually a template.
 org.eclipse.emf.common.util.EList<ParameterableElement> parameterableElements()
          The query parameterableElements() returns the set of ParameterableElements that may be used as the parameteredElements for a TemplateParameter of this TemplateableElement.
 void setOwnedTemplateSignature(TemplateSignature value)
          Sets the value of the 'Owned Template Signature' containment reference
 
Methods inherited from interface org.eclipse.uml2.uml.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 org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getTemplateBindings

org.eclipse.emf.common.util.EList<TemplateBinding> getTemplateBindings()
Returns the value of the 'Template Binding' containment reference list. The list contents are of type TemplateBinding. It is bidirectional and its opposite is 'Bound Element'.

This feature subsets the following features:

The optional TemplateBindings from this TemplateableElement to one or more templates.

From package UML::CommonStructure.

Returns:
the value of the 'Template Binding' containment reference list.
See Also:
UMLPackage.getTemplateableElement_TemplateBinding(), TemplateBinding.getBoundElement()

createTemplateBinding

TemplateBinding createTemplateBinding(TemplateSignature signature)
Creates a new TemplateBinding, with the specified 'Signature', and appends it to the 'Template Binding' containment reference list.

Parameters:
signature - The 'Signature' for the new TemplateBinding, or null.
Returns:
The new TemplateBinding.
See Also:
getTemplateBindings()

getTemplateBinding

TemplateBinding getTemplateBinding(TemplateSignature signature)
Retrieves the first TemplateBinding with the specified 'Signature' from the 'Template Binding' containment reference list.

Parameters:
signature - The 'Signature' of the TemplateBinding to retrieve, or null.
Returns:
The first TemplateBinding with the specified 'Signature', or null.
See Also:
getTemplateBindings()

getTemplateBinding

TemplateBinding getTemplateBinding(TemplateSignature signature,
                                   boolean createOnDemand)
Retrieves the first TemplateBinding with the specified 'Signature' from the 'Template Binding' containment reference list.

Parameters:
signature - The 'Signature' of the TemplateBinding to retrieve, or null.
createOnDemand - Whether to create a TemplateBinding on demand if not found.
Returns:
The first TemplateBinding with the specified 'Signature', or null.
See Also:
getTemplateBindings()

getOwnedTemplateSignature

TemplateSignature getOwnedTemplateSignature()
Returns the value of the 'Owned Template Signature' containment reference. It is bidirectional and its opposite is 'Template'.

This feature subsets the following features:

The optional TemplateSignature specifying the formal TemplateParameters for this TemplateableElement. If a TemplateableElement has a TemplateSignature, then it is a template.

From package UML::CommonStructure.

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 new TemplateSignature and sets the 'Owned Template Signature' containment reference.

Parameters:
eClass - The Ecore class of the TemplateSignature to create.
Returns:
The new TemplateSignature.
See Also:
getOwnedTemplateSignature()

createOwnedTemplateSignature

TemplateSignature createOwnedTemplateSignature()
Creates a new TemplateSignature and sets the 'Owned Template Signature' containment reference.

Returns:
The new TemplateSignature.
See Also:
getOwnedTemplateSignature()

parameterableElements

org.eclipse.emf.common.util.EList<ParameterableElement> parameterableElements()
The query parameterableElements() returns the set of ParameterableElements that may be used as the parameteredElements for a TemplateParameter of this TemplateableElement. By default, this set includes all the ownedElements. Subclasses may override this operation if they choose to restrict the set of ParameterableElements. result = (self.allOwnedElements()->select(oclIsKindOf(ParameterableElement)).oclAsType(ParameterableElement)->asSet())

From package UML::CommonStructure.


isTemplate

boolean isTemplate()
The query isTemplate() returns whether this TemplateableElement is actually a template. result = (ownedTemplateSignature <> null)

From package UML::CommonStructure.


Copyright 2003, 2014 IBM Corporation, CEA, and others.
All Rights Reserved.