| /* |
| * Copyright (c) 2005, 2006 IBM Corporation 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 |
| * |
| * $Id: ConsiderIgnoreFragment.java,v 1.4 2006/05/12 20:38:10 khussey Exp $ |
| */ |
| package org.eclipse.uml2.uml; |
| |
| import java.util.Map; |
| |
| import org.eclipse.emf.common.util.DiagnosticChain; |
| |
| import org.eclipse.emf.common.util.EList; |
| |
| import org.eclipse.emf.ecore.EClass; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>Consider Ignore Fragment</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <!-- begin-model-doc --> |
| * A consider ignore fragment is a kind of combined fragment that is used for the consider and ignore cases, which require lists of pertinent messages to be specified. |
| * <!-- end-model-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.ConsiderIgnoreFragment#getMessages <em>Message</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @see org.eclipse.uml2.uml.UMLPackage#getConsiderIgnoreFragment() |
| * @model |
| * @generated |
| */ |
| public interface ConsiderIgnoreFragment |
| extends CombinedFragment { |
| |
| /** |
| * Returns the value of the '<em><b>Message</b></em>' reference list. |
| * The list contents are of type {@link org.eclipse.uml2.uml.NamedElement}. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The set of messages that apply to this fragment |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Message</em>' reference list. |
| * @see org.eclipse.uml2.uml.UMLPackage#getConsiderIgnoreFragment_Message() |
| * @model type="org.eclipse.uml2.uml.NamedElement" ordered="false" |
| * @generated |
| */ |
| EList getMessages(); |
| |
| /** |
| * Retrieves the first {@link org.eclipse.uml2.uml.NamedElement} with the specified '<em><b>Name</b></em>' from the '<em><b>Message</b></em>' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.NamedElement} to retrieve, or <code>null</code>. |
| * @return The first {@link org.eclipse.uml2.uml.NamedElement} with the specified '<em><b>Name</b></em>', or <code>null</code>. |
| * @see #getMessages() |
| * @generated |
| */ |
| NamedElement getMessage(String name); |
| |
| /** |
| * Retrieves the first {@link org.eclipse.uml2.uml.NamedElement} with the specified '<em><b>Name</b></em>' from the '<em><b>Message</b></em>' reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.NamedElement} to retrieve, or <code>null</code>. |
| * @param ignoreCase Whether to ignore case in {@link java.lang.String} comparisons. |
| * @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.NamedElement} to retrieve, or <code>null</code>. |
| * @return The first {@link org.eclipse.uml2.uml.NamedElement} with the specified '<em><b>Name</b></em>', or <code>null</code>. |
| * @see #getMessages() |
| * @generated |
| */ |
| NamedElement getMessage(String name, boolean ignoreCase, EClass eClass); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The interaction operator of a ConsiderIgnoreFragment must be either 'consider' or 'ignore'. |
| * (interactionOperator = #consider) or (interactionOperator = #ignore) |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateConsiderOrIgnore(DiagnosticChain diagnostics, Map context); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The NamedElements must be of a type of element that identifies a message (e.g., an Operation, Reception, or a Signal). |
| * message->forAll(m | m.oclIsKindOf(Operation) or m.oclIsKindOf(Reception) or m.oclIsKindOf(Signal)) |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateType(DiagnosticChain diagnostics, Map context); |
| |
| } // ConsiderIgnoreFragment |