/******************************************************************************* * Copyright (c) 2013, 2014 CEA LIST 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: * E.D.Willink(CEA LIST) - Initial API and implementation *******************************************************************************/ package org.eclipse.ocl.examples.codegen.cgmodel; import java.util.List; import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.Nullable; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>CG Operation</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link org.eclipse.ocl.examples.codegen.cgmodel.CGOperation#getPreconditions <em>Preconditions</em>}</li> * <li>{@link org.eclipse.ocl.examples.codegen.cgmodel.CGOperation#getPostconditions <em>Postconditions</em>}</li> * <li>{@link org.eclipse.ocl.examples.codegen.cgmodel.CGOperation#getContainingClass <em>Containing Class</em>}</li> * </ul> * * @see org.eclipse.ocl.examples.codegen.cgmodel.CGModelPackage#getCGOperation() * @generated */ public interface CGOperation extends CGCallable { /** * Returns the value of the '<em><b>Preconditions</b></em>' containment reference list. * The list contents are of type {@link org.eclipse.ocl.examples.codegen.cgmodel.CGConstraint}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * The precondition constraints of this operation. * <!-- end-model-doc --> * @return the value of the '<em>Preconditions</em>' containment reference list. * @see org.eclipse.ocl.examples.codegen.cgmodel.CGModelPackage#getCGOperation_Preconditions() * @generated */ @NonNull List<CGConstraint> getPreconditions(); /** * Returns the value of the '<em><b>Postconditions</b></em>' containment reference list. * The list contents are of type {@link org.eclipse.ocl.examples.codegen.cgmodel.CGConstraint}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * The postcondition constraints of this operation. * <!-- end-model-doc --> * @return the value of the '<em>Postconditions</em>' containment reference list. * @see org.eclipse.ocl.examples.codegen.cgmodel.CGModelPackage#getCGOperation_Postconditions() * @generated */ @NonNull List<CGConstraint> getPostconditions(); /** * Returns the value of the '<em><b>Containing Class</b></em>' container reference. * It is bidirectional and its opposite is '{@link org.eclipse.ocl.examples.codegen.cgmodel.CGClass#getOperations <em>Operations</em>}'. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Containing Class</em>' container reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Containing Class</em>' container reference. * @see #setContainingClass(CGClass) * @see org.eclipse.ocl.examples.codegen.cgmodel.CGModelPackage#getCGOperation_ContainingClass() * @see org.eclipse.ocl.examples.codegen.cgmodel.CGClass#getOperations * @generated */ @Nullable CGClass getContainingClass(); /** * Sets the value of the '{@link org.eclipse.ocl.examples.codegen.cgmodel.CGOperation#getContainingClass <em>Containing Class</em>}' container reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Containing Class</em>' container reference. * @see #getContainingClass() * @generated */ void setContainingClass(CGClass value); } // CGOperation