org.eclipse.uml2.uml
Interface TemplateSignature

All Superinterfaces:
Element, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, 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 TemplateParameters for a template.

From package UML::CommonStructure.

The following features are supported:

See Also:
UMLPackage.getTemplateSignature()

Method Summary
 TemplateParameter createOwnedParameter()
          Creates a new TemplateParameter and appends it to the 'Owned Parameter' containment reference list
 TemplateParameter createOwnedParameter(org.eclipse.emf.ecore.EClass eClass)
          Creates a new TemplateParameter and appends it to the 'Owned Parameter' containment reference list
 org.eclipse.emf.common.util.EList<TemplateParameter> getOwnedParameters()
          Returns the value of the 'Owned Parameter' containment reference list.
 org.eclipse.emf.common.util.EList<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, java.util.Map<java.lang.Object,java.lang.Object> context)
          Parameters must own the ParameterableElements they parameter or those ParameterableElements must be owned by the TemplateableElement being templated.
 boolean validateUniqueParameters(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
          The names of the parameters of a TemplateSignature are unique.
 
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

getParameters

org.eclipse.emf.common.util.EList<TemplateParameter> getParameters()
Returns the value of the 'Parameter' reference list. The list contents are of type TemplateParameter. The ordered set of all formal TemplateParameters for this TemplateSignature.

From package UML::CommonStructure.

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'.

This feature subsets the following features:

The TemplateableElement that owns this TemplateSignature.

From package UML::CommonStructure.

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

org.eclipse.emf.common.util.EList<TemplateParameter> getOwnedParameters()
Returns the value of the 'Owned Parameter' containment reference list. The list contents are of type TemplateParameter. It is bidirectional and its opposite is 'Signature'.

This feature subsets the following features:

The formal parameters that are owned by this TemplateSignature.

From package UML::CommonStructure.

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 new TemplateParameter and appends it to the 'Owned Parameter' containment reference list.

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

createOwnedParameter

TemplateParameter createOwnedParameter()
Creates a new TemplateParameter 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,
                            java.util.Map<java.lang.Object,java.lang.Object> context)
Parameters must own the ParameterableElements they parameter or those ParameterableElements must be owned by the TemplateableElement being templated. template.ownedElement->includesAll(parameter.parameteredElement->asSet() - parameter.ownedParameteredElement->asSet())

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

validateUniqueParameters

boolean validateUniqueParameters(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                 java.util.Map<java.lang.Object,java.lang.Object> context)
The names of the parameters of a TemplateSignature are unique. parameter->forAll( p1, p2 | (p1 <> p2 and p1.parameteredElement.oclIsKindOf(NamedElement) and p2.parameteredElement.oclIsKindOf(NamedElement) ) implies p1.parameteredElement.oclAsType(NamedElement).name <> p2.parameteredElement.oclAsType(NamedElement).name)

Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

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