| /** |
| * Copyright (c) 2008, 2021 Obeo. |
| * |
| * 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: |
| * Obeo - initial API and implementation |
| */ |
| package org.eclipse.acceleo; |
| |
| import org.eclipse.emf.common.util.EList; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>Template</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.acceleo.Template#getParameters <em>Parameters</em>}</li> |
| * <li>{@link org.eclipse.acceleo.Template#getGuard <em>Guard</em>}</li> |
| * <li>{@link org.eclipse.acceleo.Template#getPost <em>Post</em>}</li> |
| * <li>{@link org.eclipse.acceleo.Template#isMain <em>Main</em>}</li> |
| * <li>{@link org.eclipse.acceleo.Template#getVisibility <em>Visibility</em>}</li> |
| * <li>{@link org.eclipse.acceleo.Template#getBody <em>Body</em>}</li> |
| * </ul> |
| * |
| * @see org.eclipse.acceleo.AcceleoPackage#getTemplate() |
| * @model |
| * @generated |
| */ |
| public interface Template extends ModuleElement, DocumentedElement, NamedElement { |
| /** |
| * Returns the value of the '<em><b>Parameters</b></em>' containment reference list. |
| * The list contents are of type {@link org.eclipse.acceleo.Variable}. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Parameters</em>' containment reference list isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Parameters</em>' containment reference list. |
| * @see org.eclipse.acceleo.AcceleoPackage#getTemplate_Parameters() |
| * @model containment="true" required="true" |
| * @generated |
| */ |
| EList<Variable> getParameters(); |
| |
| /** |
| * Returns the value of the '<em><b>Guard</b></em>' containment reference. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Guard</em>' containment reference isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Guard</em>' containment reference. |
| * @see #setGuard(Expression) |
| * @see org.eclipse.acceleo.AcceleoPackage#getTemplate_Guard() |
| * @model containment="true" |
| * @generated |
| */ |
| Expression getGuard(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.acceleo.Template#getGuard <em>Guard</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Guard</em>' containment reference. |
| * @see #getGuard() |
| * @generated |
| */ |
| void setGuard(Expression value); |
| |
| /** |
| * Returns the value of the '<em><b>Post</b></em>' containment reference. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Post</em>' containment reference isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Post</em>' containment reference. |
| * @see #setPost(Expression) |
| * @see org.eclipse.acceleo.AcceleoPackage#getTemplate_Post() |
| * @model containment="true" |
| * @generated |
| */ |
| Expression getPost(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.acceleo.Template#getPost <em>Post</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Post</em>' containment reference. |
| * @see #getPost() |
| * @generated |
| */ |
| void setPost(Expression value); |
| |
| /** |
| * Returns the value of the '<em><b>Main</b></em>' attribute. |
| * The default value is <code>"false"</code>. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Main</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Main</em>' attribute. |
| * @see #setMain(boolean) |
| * @see org.eclipse.acceleo.AcceleoPackage#getTemplate_Main() |
| * @model default="false" |
| * @generated |
| */ |
| boolean isMain(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.acceleo.Template#isMain <em>Main</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Main</em>' attribute. |
| * @see #isMain() |
| * @generated |
| */ |
| void setMain(boolean value); |
| |
| /** |
| * Returns the value of the '<em><b>Visibility</b></em>' attribute. |
| * The literals are from the enumeration {@link org.eclipse.acceleo.VisibilityKind}. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Visibility</em>' attribute isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Visibility</em>' attribute. |
| * @see org.eclipse.acceleo.VisibilityKind |
| * @see #setVisibility(VisibilityKind) |
| * @see org.eclipse.acceleo.AcceleoPackage#getTemplate_Visibility() |
| * @model required="true" |
| * @generated |
| */ |
| VisibilityKind getVisibility(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.acceleo.Template#getVisibility <em>Visibility</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Visibility</em>' attribute. |
| * @see org.eclipse.acceleo.VisibilityKind |
| * @see #getVisibility() |
| * @generated |
| */ |
| void setVisibility(VisibilityKind value); |
| |
| /** |
| * Returns the value of the '<em><b>Body</b></em>' containment reference. |
| * <!-- begin-user-doc --> |
| * <p> |
| * If the meaning of the '<em>Body</em>' containment reference isn't clear, |
| * there really should be more of a description here... |
| * </p> |
| * <!-- end-user-doc --> |
| * @return the value of the '<em>Body</em>' containment reference. |
| * @see #setBody(Block) |
| * @see org.eclipse.acceleo.AcceleoPackage#getTemplate_Body() |
| * @model containment="true" required="true" |
| * @generated |
| */ |
| Block getBody(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.acceleo.Template#getBody <em>Body</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Body</em>' containment reference. |
| * @see #getBody() |
| * @generated |
| */ |
| void setBody(Block value); |
| |
| } // Template |