/******************************************************************************* * Copyright (c) 2013, 2015 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; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>CG Guard Exp</b></em>'. * <!-- end-user-doc --> * * <!-- begin-model-doc --> * A CGGuardExp checks that its source is non-null and throws an invalid value exception if null. * <!-- end-model-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link org.eclipse.ocl.examples.codegen.cgmodel.CGGuardExp#getMessage <em>Message</em>}</li> * <li>{@link org.eclipse.ocl.examples.codegen.cgmodel.CGGuardExp#isSafe <em>Safe</em>}</li> * </ul> * * @see org.eclipse.ocl.examples.codegen.cgmodel.CGModelPackage#getCGGuardExp() * @generated */ public interface CGGuardExp extends CGCallExp { /** * Returns the value of the '<em><b>Message</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * A message to explain the guard failures. * <!-- end-model-doc --> * @return the value of the '<em>Message</em>' attribute. * @see #setMessage(String) * @see org.eclipse.ocl.examples.codegen.cgmodel.CGModelPackage#getCGGuardExp_Message() * @generated */ String getMessage(); /** * Sets the value of the '{@link org.eclipse.ocl.examples.codegen.cgmodel.CGGuardExp#getMessage <em>Message</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Message</em>' attribute. * @see #getMessage() * @generated */ void setMessage(String value); /** * Returns the value of the '<em><b>Safe</b></em>' attribute. * The default value is <code>"false"</code>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * the boolean value * <!-- end-model-doc --> * @return the value of the '<em>Safe</em>' attribute. * @see #setSafe(boolean) * @see org.eclipse.ocl.examples.codegen.cgmodel.CGModelPackage#getCGGuardExp_Safe() * @generated */ boolean isSafe(); /** * Sets the value of the '{@link org.eclipse.ocl.examples.codegen.cgmodel.CGGuardExp#isSafe <em>Safe</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Safe</em>' attribute. * @see #isSafe() * @generated */ void setSafe(boolean value); } // CGGuardExp