org.eclipse.ocl.expressions.TupleLiteralExp 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: TupleLiteralExp.java,v 1.8 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 'Tuple Literal Exp'.
*
*
*
* The following features are supported:
*
* - {@link org.eclipse.ocl.expressions.TupleLiteralExp#getPart Part}
*
*
*
* @see org.eclipse.ocl.expressions.ExpressionsPackage#getTupleLiteralExp()
* @model
* @generated
*/
public interface TupleLiteralExp
extends LiteralExp {
/**
* Returns the value of the 'Part' containment reference list.
* The list contents are of type {@link org.eclipse.ocl.expressions.TupleLiteralPart}<C, P>.
*
*
* If the meaning of the 'Part' containment reference list isn't clear,
* there really should be more of a description here...
*
*
* @return the value of the 'Part' containment reference list.
* @see org.eclipse.ocl.expressions.ExpressionsPackage#getTupleLiteralExp_Part()
* @model containment="true"
* @generated
*/
EList> getPart();
/**
*
*
*
* type.oclIsKindOf (TupleType)
* and
* part->forAll (tlep |
* type.oclAsType (TupleType).allProperties()->exists (tp | tlep.attribute = tp))
* and
* part->size() = type.oclAsType (TupleType).allProperties()->size()
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
*
* @model
* @generated
*/
boolean checkTupleType(DiagnosticChain diagnostics,
Map