blob: c008721fc8f962c88f91b86c426713f1f03058e9 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011, 2019 Willink Transformations and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* E.D.Willink - initial API and implementation
*******************************************************************************/
package org.eclipse.qvtd.pivot.qvttemplate;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.ocl.pivot.CollectionType;
import org.eclipse.ocl.pivot.OCLExpression;
import org.eclipse.ocl.pivot.Variable;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Collection Template Exp</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.qvtd.pivot.qvttemplate.CollectionTemplateExp#getMember <em>Member</em>}</li>
* <li>{@link org.eclipse.qvtd.pivot.qvttemplate.CollectionTemplateExp#getReferredCollectionType <em>Referred Collection Type</em>}</li>
* <li>{@link org.eclipse.qvtd.pivot.qvttemplate.CollectionTemplateExp#getRest <em>Rest</em>}</li>
* </ul>
*
* @see org.eclipse.qvtd.pivot.qvttemplate.QVTtemplatePackage#getCollectionTemplateExp()
* @model
* @generated
*/
public interface CollectionTemplateExp extends TemplateExp {
/**
* Returns the value of the '<em><b>Member</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.ocl.pivot.OCLExpression}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Member</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Member</em>' containment reference list.
* @see org.eclipse.qvtd.pivot.qvttemplate.QVTtemplatePackage#getCollectionTemplateExp_Member()
* @model containment="true" ordered="false"
* annotation="http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName body='listContainer'"
* @generated
*/
EList<OCLExpression> getMember();
/**
* Returns the value of the '<em><b>Referred Collection Type</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Referred Collection Type</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Referred Collection Type</em>' reference.
* @see #setReferredCollectionType(CollectionType)
* @see org.eclipse.qvtd.pivot.qvttemplate.QVTtemplatePackage#getCollectionTemplateExp_ReferredCollectionType()
* @model required="true"
* @generated
*/
CollectionType getReferredCollectionType();
/**
* Sets the value of the '{@link org.eclipse.qvtd.pivot.qvttemplate.CollectionTemplateExp#getReferredCollectionType <em>Referred Collection Type</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Referred Collection Type</em>' reference.
* @see #getReferredCollectionType()
* @generated
*/
void setReferredCollectionType(CollectionType value);
/**
* Returns the value of the '<em><b>Rest</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Rest</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Rest</em>' reference.
* @see #setRest(Variable)
* @see org.eclipse.qvtd.pivot.qvttemplate.QVTtemplatePackage#getCollectionTemplateExp_Rest()
* @model annotation="http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName body='matchingExp'"
* @generated
*/
Variable getRest();
/**
* Sets the value of the '{@link org.eclipse.qvtd.pivot.qvttemplate.CollectionTemplateExp#getRest <em>Rest</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Rest</em>' reference.
* @see #getRest()
* @generated
*/
void setRest(Variable value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='MemberTypeisCollectionElementType'"
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n\tmember-&gt;forAll(type?.conformsTo(referredCollectionType.elementType))\n\n'"
* @generated
*/
boolean validateMemberTypeisCollectionElementType(DiagnosticChain diagnostics, Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='RestTypeisCollectionType'"
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n\trest &lt;&gt; null implies\n\t\trest.type = referredCollectionType\n\n'"
* @generated
*/
boolean validateRestTypeisCollectionType(DiagnosticChain diagnostics, Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model annotation="http://www.eclipse.org/uml2/2.0.0/UML originalName='TypeisCollectionType'"
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n\ttype = referredCollectionType\n\n'"
* @generated
*/
boolean validateTypeisCollectionType(DiagnosticChain diagnostics, Map<Object, Object> context);
} // CollectionTemplateExp