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

org.eclipse.ocl.expressions.CollectionLiteralExp 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: CollectionLiteralExp.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 'Collection Literal Exp'.
 * 
 *
 * 

* The following features are supported: *

    *
  • {@link org.eclipse.ocl.expressions.CollectionLiteralExp#getKind Kind}
  • *
  • {@link org.eclipse.ocl.expressions.CollectionLiteralExp#getPart Part}
  • *
  • {@link org.eclipse.ocl.expressions.CollectionLiteralExp#isSimpleRange Simple Range}
  • *
*

* * @see org.eclipse.ocl.expressions.ExpressionsPackage#getCollectionLiteralExp() * @model * @generated */ public interface CollectionLiteralExp extends LiteralExp { /** * Returns the value of the 'Kind' attribute. * The literals are from the enumeration {@link org.eclipse.ocl.expressions.CollectionKind}. * *

* If the meaning of the 'Collection Kind' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Kind' attribute. * @see org.eclipse.ocl.expressions.CollectionKind * @see #setKind(CollectionKind) * @see org.eclipse.ocl.expressions.ExpressionsPackage#getCollectionLiteralExp_Kind() * @model * @generated */ CollectionKind getKind(); /** * Sets the value of the '{@link org.eclipse.ocl.expressions.CollectionLiteralExp#getKind Kind}' attribute. * * * @param value the new value of the 'Kind' attribute. * @see org.eclipse.ocl.expressions.CollectionKind * @see #getKind() * @generated */ void setKind(CollectionKind value); /** * Returns the value of the 'Part' containment reference list. * The list contents are of type {@link org.eclipse.ocl.expressions.CollectionLiteralPart}<C>. * *

* 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#getCollectionLiteralExp_Part() * @model containment="true" * @generated */ EList> getPart(); /** * Returns the value of the 'Simple Range' attribute. * *

* If the meaning of the 'Simple Range' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Simple Range' attribute. * @see org.eclipse.ocl.expressions.ExpressionsPackage#getCollectionLiteralExp_SimpleRange() * @model transient="true" changeable="false" volatile="true" * @generated */ boolean isSimpleRange(); /** * * * * kind <> CollectionKind::Collection * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean checkNoCollectionInstances(DiagnosticChain diagnostics, Map context); /** * * * * kind = CollectionKind::Set implies type.oclIsKindOf(SetType) * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean checkSetKind(DiagnosticChain diagnostics, Map context); /** * * * * kind = CollectionKind::Sequence implies type.oclIsKindOf(SequenceType) * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean checkSequenceKind(DiagnosticChain diagnostics, Map context); /** * * * * kind = CollectionKind::Bag implies type.oclIsKindOf(BagType) * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * * @model * @generated */ boolean checkBagKind(DiagnosticChain diagnostics, Map context); /** * * * * type.oclAsType(CollectionType).elementType = part->iterate(p; c : Classifier = OclVoid | c.commonSuperType(p.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 checkElementType(DiagnosticChain diagnostics, Map context); } // CollectionLiteralExp




© 2015 - 2024 Weber Informatics LLC | Privacy Policy