blob: d6c1f73b92010e86364a9a9c7c14962d4d338ace [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2011 SAP AG 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:
* SAP AG - initial API and implementation
******************************************************************************
* $Id: ObjectCount.java,v 1.2 2011/03/05 21:51:23 auhl Exp $
*/
package dataaccess.expressions;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Object Count</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* Computes the Number 1 for single objects, and the number of objects in a multi-valued object otherwise.
*
* Type inference in getType() can be done once TypeDefinition is a value type that can be constructed in OCL.
* <!-- end-model-doc -->
*
*
* @see dataaccess.expressions.ExpressionsPackage#getObjectCount()
* @model annotation="http://www.eclipse.org/emf/2002/Ecore/OCL TypeIsNumber='self.getType().oclIsKindOf(data::classes::ClassTypeDefinition) and\r\n self.getType().oclAsType(data::classes::ClassTypeDefinition).clazz.name = \'Number\'' MultiplicityIsOne='self.getType().upperMultiplicity = 1 and\r\n self.getType().lowerMultiplicity = 1'"
* annotation="http://www.eclipse.org/emf/2002/Ecore constraints='TypeIsNumber MultiplicityIsOne'"
* @generated
*/
public interface ObjectCount extends ObjectBasedExpression {
} // ObjectCount