All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.ocl.expressions.LoopExp Maven / Gradle / Ivy

/**
 * 
 * 
 * Copyright (c) 2006, 2008 IBM Corporation, Zeligsoft Inc., 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
 *   Zeligsoft - Bug 207365
 * 
 * 
 *
 * $Id: LoopExp.java,v 1.9 2009/12/22 18:53:30 ewillink Exp $
 */
package org.eclipse.ocl.expressions;

import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;

/**
 * 
 * A representation of the model object 'Loop Exp'.
 * 
 *
 * 

* The following features are supported: *

    *
  • {@link org.eclipse.ocl.expressions.LoopExp#getBody Body}
  • *
  • {@link org.eclipse.ocl.expressions.LoopExp#getIterator Iterator}
  • *
*

* * @see org.eclipse.ocl.expressions.ExpressionsPackage#getLoopExp() * @model abstract="true" * @generated */ public interface LoopExp extends CallExp { /** * Returns the value of the 'Body' containment reference. * *

* If the meaning of the 'Body' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Body' containment reference. * @see #setBody(OCLExpression) * @see org.eclipse.ocl.expressions.ExpressionsPackage#getLoopExp_Body() * @model containment="true" * @generated */ OCLExpression getBody(); /** * Sets the value of the '{@link org.eclipse.ocl.expressions.LoopExp#getBody Body}' containment reference. * * * @param value the new value of the 'Body' containment reference. * @see #getBody() * @generated */ void setBody(OCLExpression value); /** * Returns the value of the 'Iterator' containment reference list. * The list contents are of type {@link org.eclipse.ocl.expressions.Variable}<C, PM>. * *

* If the meaning of the 'Iterator' containment reference list isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Iterator' containment reference list. * @see org.eclipse.ocl.expressions.ExpressionsPackage#getLoopExp_Iterator() * @model containment="true" * @generated */ EList> getIterator(); /** * * * * source.type.oclIsKindOf(CollectionType) * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean checkSourceCollection(DiagnosticChain diagnostics, Map context); /** * * * * self.iterator->forAll(initExpression->isEmpty()) * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean checkLoopVariableInit(DiagnosticChain diagnostics, Map context); /** * * * * self.iterator->forAll(type = source.type.oclAsType(CollectionType).elementType) * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean checkLoopVariableType(DiagnosticChain diagnostics, Map context); } // LoopExp




© 2015 - 2024 Weber Informatics LLC | Privacy Policy