| /* |
| * Copyright (c) 2005, 2011 IBM Corporation, CEA, and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM - initial API and implementation |
| * Kenn Hussey (CEA) - 327039, 351774 |
| * |
| */ |
| package org.eclipse.uml2.uml; |
| |
| import java.util.Map; |
| |
| import org.eclipse.emf.common.util.DiagnosticChain; |
| |
| import org.eclipse.emf.common.util.EList; |
| |
| import org.eclipse.emf.ecore.EClass; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>Template Signature</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <!-- begin-model-doc --> |
| * A template signature bundles the set of formal template parameters for a templated element. |
| * <!-- end-model-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.TemplateSignature#getOwnedParameters <em>Owned Parameter</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.TemplateSignature#getParameters <em>Parameter</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.TemplateSignature#getTemplate <em>Template</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @see org.eclipse.uml2.uml.UMLPackage#getTemplateSignature() |
| * @model |
| * @generated |
| */ |
| public interface TemplateSignature |
| extends Element { |
| |
| /** |
| * Returns the value of the '<em><b>Parameter</b></em>' reference list. |
| * The list contents are of type {@link org.eclipse.uml2.uml.TemplateParameter}. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The ordered set of all formal template parameters for this template signature. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Parameter</em>' reference list. |
| * @see org.eclipse.uml2.uml.UMLPackage#getTemplateSignature_Parameter() |
| * @model required="true" |
| * @generated |
| */ |
| EList<TemplateParameter> getParameters(); |
| |
| /** |
| * Returns the value of the '<em><b>Template</b></em>' container reference. |
| * It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.TemplateableElement#getOwnedTemplateSignature <em>Owned Template Signature</em>}'. |
| * <p> |
| * This feature subsets the following features: |
| * <ul> |
| * <li>'{@link org.eclipse.uml2.uml.Element#getOwner() <em>Owner</em>}'</li> |
| * </ul> |
| * </p> |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The element that owns this template signature. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Template</em>' container reference. |
| * @see #setTemplate(TemplateableElement) |
| * @see org.eclipse.uml2.uml.UMLPackage#getTemplateSignature_Template() |
| * @see org.eclipse.uml2.uml.TemplateableElement#getOwnedTemplateSignature |
| * @model opposite="ownedTemplateSignature" required="true" transient="false" ordered="false" |
| * @generated |
| */ |
| TemplateableElement getTemplate(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.TemplateSignature#getTemplate <em>Template</em>}' container reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Template</em>' container reference. |
| * @see #getTemplate() |
| * @generated |
| */ |
| void setTemplate(TemplateableElement value); |
| |
| /** |
| * Returns the value of the '<em><b>Owned Parameter</b></em>' containment reference list. |
| * The list contents are of type {@link org.eclipse.uml2.uml.TemplateParameter}. |
| * It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.TemplateParameter#getSignature <em>Signature</em>}'. |
| * <p> |
| * This feature subsets the following features: |
| * <ul> |
| * <li>'{@link org.eclipse.uml2.uml.TemplateSignature#getParameters() <em>Parameter</em>}'</li> |
| * <li>'{@link org.eclipse.uml2.uml.Element#getOwnedElements() <em>Owned Element</em>}'</li> |
| * </ul> |
| * </p> |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The formal template parameters that are owned by this template signature. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Owned Parameter</em>' containment reference list. |
| * @see org.eclipse.uml2.uml.UMLPackage#getTemplateSignature_OwnedParameter() |
| * @see org.eclipse.uml2.uml.TemplateParameter#getSignature |
| * @model opposite="signature" containment="true" resolveProxies="true" |
| * @generated |
| */ |
| EList<TemplateParameter> getOwnedParameters(); |
| |
| /** |
| * Creates a new {@link org.eclipse.uml2.uml.TemplateParameter} and appends it to the '<em><b>Owned Parameter</b></em>' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.TemplateParameter} to create. |
| * @return The new {@link org.eclipse.uml2.uml.TemplateParameter}. |
| * @see #getOwnedParameters() |
| * @generated |
| */ |
| TemplateParameter createOwnedParameter(EClass eClass); |
| |
| /** |
| * Creates a new {@link org.eclipse.uml2.uml.TemplateParameter} and appends it to the '<em><b>Owned Parameter</b></em>' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @return The new {@link org.eclipse.uml2.uml.TemplateParameter}. |
| * @see #getOwnedParameters() |
| * @generated |
| */ |
| TemplateParameter createOwnedParameter(); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * 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) |
| * @param diagnostics The chain of diagnostics to which problems are to be appended. |
| * @param context The cache of context-specific information. |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateOwnElements(DiagnosticChain diagnostics, |
| Map<Object, Object> context); |
| |
| } // TemplateSignature |