org.eclipse.ocl.examples.pivot
Interface TemplateableElement

All Superinterfaces:
Element, org.eclipse.emf.ecore.EObject, MonikeredElement, org.eclipse.emf.common.notify.Notifier, PivotObject, Visitable
All Known Subinterfaces:
AnyType, AssociationClass, BagType, Class, ClassifierType, CollectionType, DataType, Enumeration, InvalidType, Iteration, LambdaType, Library, MessageType, Operation, OrderedSetType, Package, PrimitiveType, SequenceType, SetType, TemplateParameterType, TupleType, Type, UnspecifiedType, VoidType
All Known Implementing Classes:
AnyTypeImpl, AssociationClassImpl, BagTypeImpl, ClassifierTypeImpl, ClassImpl, CollectionTypeImpl, DataTypeImpl, EnumerationImpl, InvalidTypeImpl, IterationImpl, LambdaTypeImpl, LibraryImpl, MessageTypeImpl, OperationImpl, OrderedSetTypeImpl, PackageImpl, PrimitiveTypeImpl, SequenceTypeImpl, SetTypeImpl, TemplateableElementImpl, TemplateParameterTypeImpl, TupleTypeImpl, TypeImpl, UnspecifiedTypeImpl, VoidTypeImpl

public interface TemplateableElement
extends MonikeredElement

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:
PivotPackage.getTemplateableElement()
Generated
Model
abstract="true"

Method Summary
 TemplateSignature createOwnedTemplateSignature()
          Creates a new TemplateSignature and sets the 'Owned Template Signature' containment reference.
 TemplateBinding createTemplateBinding()
          Creates a new TemplateBinding and appends it to the 'Template Binding' containment reference list.
 TemplateSignature getOwnedTemplateSignature()
          Returns the value of the 'Owned Template Signature' containment reference.
 org.eclipse.emf.common.util.EList<TemplateBinding> getTemplateBindings()
          Returns the value of the 'Template Binding' containment reference list.
 TemplateableElement getUnspecializedElement()
          Returns the value of the 'Unspecialized Element' reference.
 boolean isTemplate()
          The query isTemplate() returns whether this templateable element is actually a template.
 org.eclipse.emf.common.util.EList<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.
 void setUnspecializedElement(TemplateableElement value)
          Sets the value of the 'Unspecialized Element' reference.
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.MonikeredElement
getMoniker, hasMoniker, setMoniker
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Element
createOwnedComment, getETarget, getOwnedComments
 
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
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.util.Visitable
accept, eClass
 

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'. The optional bindings from this element to templates.

Returns:
the value of the 'Template Binding' containment reference list.
See Also:
PivotPackage.getTemplateableElement_TemplateBinding(), TemplateBinding.getBoundElement()
Generated
Model
opposite="boundElement" containment="true" ordered="false"

createTemplateBinding

TemplateBinding createTemplateBinding()
Creates a new TemplateBinding and appends it to the 'Template Binding' containment reference list.

Returns:
The new TemplateBinding.
See Also:
getTemplateBindings()
Generated

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), PivotPackage.getTemplateableElement_OwnedTemplateSignature(), TemplateSignature.getTemplate()
Generated
Model
opposite="template" containment="true" ordered="false"

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()
Generated

createOwnedTemplateSignature

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

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

getUnspecializedElement

TemplateableElement getUnspecializedElement()
Returns the value of the 'Unspecialized Element' reference.

If the meaning of the 'Unspecialized Element' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Unspecialized Element' reference.
See Also:
setUnspecializedElement(TemplateableElement), PivotPackage.getTemplateableElement_UnspecializedElement()
Generated
Model
resolveProxies="false" transient="true" ordered="false"

setUnspecializedElement

void setUnspecializedElement(TemplateableElement value)
Sets the value of the 'Unspecialized Element' reference.

Parameters:
value - the new value of the 'Unspecialized Element' reference.
See Also:
getUnspecializedElement()
Generated

parameterableElements

org.eclipse.emf.common.util.EList<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))

Generated
Model
ordered="false"

isTemplate

boolean isTemplate()
The query isTemplate() returns whether this templateable element is actually a template. result = ownedTemplateSignature->notEmpty()

Generated
Model
kind="operation" dataType="org.eclipse.ocl.examples.pivot.Boolean" required="true" ordered="false"