/******************************************************************************* * Copyright (c) 2006, 2009 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 *******************************************************************************/ package org.eclipse.ocl.expressions; import java.util.Map; import org.eclipse.emf.common.util.DiagnosticChain; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Iterator Exp</b></em>'. * <!-- end-user-doc --> * * * @see org.eclipse.ocl.expressions.ExpressionsPackage#getIteratorExp() * @model * @generated */ public interface IteratorExp<C, PM> extends LoopExp<C, PM> { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * name = 'exists' or name = 'forAll' or name = 'isUnique' * implies type.oclIsKindOf(PrimitiveType) and type.name = 'Boolean' * @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 checkBooleanType(DiagnosticChain diagnostics, Map<Object, Object> context); /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * name = 'collect' implies * if source.type.oclIsKindOf(SequenceType) then * type = expression.type.collectionType->select(oclIsTypeOf(SequenceType))->first() * else * type = expression.type.collectionType->select(oclIsTypeOf(BagType))->first() * endif * @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 checkCollectType(DiagnosticChain diagnostics, Map<Object, Object> context); /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * name = 'select' or name = 'reject' implies type = source.type * @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 checkSelectRejectType(DiagnosticChain diagnostics, Map<Object, Object> context); /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * name = 'exists' or name = 'forAll' or name = 'select' or name = 'reject' * implies body.type.name = 'Boolean' * @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 checkBooleanBodyType(DiagnosticChain diagnostics, Map<Object, Object> context); // no additional features } // IteratorExp