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

org.eclipse.ocl.expressions.IteratorExp 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: IteratorExp.java,v 1.6 2009/12/22 18:53:30 ewillink Exp $
 */
package org.eclipse.ocl.expressions;

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

/**
 * 
 * A representation of the model object 'Iterator Exp'.
 * 
 *
 *
 * @see org.eclipse.ocl.expressions.ExpressionsPackage#getIteratorExp()
 * @model
 * @generated
 */
public interface IteratorExp
		extends LoopExp {

	/**
	 * 
	 * 
	 * 
	 * 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.
	 * 
	 * @model
	 * @generated
	 */
	boolean checkBooleanType(DiagnosticChain diagnostics,
			Map context);

	/**
	 * 
	 * 
	 * 
	 * 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.
	 * 
	 * @model
	 * @generated
	 */
	boolean checkCollectType(DiagnosticChain diagnostics,
			Map context);

	/**
	 * 
	 * 
	 * 
	 * 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.
	 * 
	 * @model
	 * @generated
	 */
	boolean checkSelectRejectType(DiagnosticChain diagnostics,
			Map context);

	/**
	 * 
	 * 
	 * 
	 * 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.
	 * 
	 * @model
	 * @generated
	 */
	boolean checkBooleanBodyType(DiagnosticChain diagnostics,
			Map context);
	// no additional features
} // IteratorExp




© 2015 - 2024 Weber Informatics LLC | Privacy Policy