| /* |
| * Copyright (c) 2005 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: ReclassifyObjectAction.java,v 1.1 2005/11/14 22:25:56 khussey Exp $ |
| */ |
| package org.eclipse.uml2.uml; |
| |
| import java.util.List; |
| import java.util.Map; |
| |
| import org.eclipse.emf.common.util.DiagnosticChain; |
| |
| import org.eclipse.emf.ecore.EClass; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>Reclassify Object Action</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <!-- begin-model-doc --> |
| * ReclassifyObjectAction adds given classifier to an object and removes given classifiers from that object. Multiple classifiers may be added and removed at a time. |
| * <!-- end-model-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.ReclassifyObjectAction#isReplaceAll <em>Is Replace All</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.ReclassifyObjectAction#getOldClassifiers <em>Old Classifier</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.ReclassifyObjectAction#getNewClassifiers <em>New Classifier</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.ReclassifyObjectAction#getObject <em>Object</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @see org.eclipse.uml2.uml.UMLPackage#getReclassifyObjectAction() |
| * @model |
| * @generated |
| */ |
| public interface ReclassifyObjectAction |
| extends Action { |
| |
| /** |
| * Returns the value of the '<em><b>Is Replace All</b></em>' attribute. |
| * The default value is <code>"false"</code>. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Specifies whether existing classifiers should be removed before adding the new classifiers. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Is Replace All</em>' attribute. |
| * @see #setIsReplaceAll(boolean) |
| * @see org.eclipse.uml2.uml.UMLPackage#getReclassifyObjectAction_IsReplaceAll() |
| * @model default="false" required="true" ordered="false" |
| * @generated |
| */ |
| boolean isReplaceAll(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.ReclassifyObjectAction#isReplaceAll <em>Is Replace All</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Is Replace All</em>' attribute. |
| * @see #isReplaceAll() |
| * @generated |
| */ |
| void setIsReplaceAll(boolean value); |
| |
| /** |
| * Returns the value of the '<em><b>Old Classifier</b></em>' reference list. |
| * The list contents are of type {@link org.eclipse.uml2.uml.Classifier}. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * A set of classifiers to be removed from the classifiers of the object. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Old Classifier</em>' reference list. |
| * @see org.eclipse.uml2.uml.UMLPackage#getReclassifyObjectAction_OldClassifier() |
| * @model type="org.eclipse.uml2.uml.Classifier" ordered="false" |
| * @generated |
| */ |
| List getOldClassifiers(); |
| |
| /** |
| * Retrieves the {@link org.eclipse.uml2.uml.Classifier} with the specified '<em><b>Name</b></em>' from the '<em><b>Old Classifier</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.Classifier} to retrieve. |
| * @return The {@link org.eclipse.uml2.uml.Classifier} with the specified '<em><b>Name</b></em>', or <code>null</code>. |
| * @see #getOldClassifiers() |
| * @generated |
| */ |
| Classifier getOldClassifier(String name); |
| |
| /** |
| * Returns the value of the '<em><b>New Classifier</b></em>' reference list. |
| * The list contents are of type {@link org.eclipse.uml2.uml.Classifier}. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * A set of classifiers to be added to the classifiers of the object. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>New Classifier</em>' reference list. |
| * @see org.eclipse.uml2.uml.UMLPackage#getReclassifyObjectAction_NewClassifier() |
| * @model type="org.eclipse.uml2.uml.Classifier" ordered="false" |
| * @generated |
| */ |
| List getNewClassifiers(); |
| |
| /** |
| * Retrieves the {@link org.eclipse.uml2.uml.Classifier} with the specified '<em><b>Name</b></em>' from the '<em><b>New Classifier</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.Classifier} to retrieve. |
| * @return The {@link org.eclipse.uml2.uml.Classifier} with the specified '<em><b>Name</b></em>', or <code>null</code>. |
| * @see #getNewClassifiers() |
| * @generated |
| */ |
| Classifier getNewClassifier(String name); |
| |
| /** |
| * Returns the value of the '<em><b>Object</b></em>' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Holds the object to be reclassified. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Object</em>' containment reference. |
| * @see #setObject(InputPin) |
| * @see org.eclipse.uml2.uml.UMLPackage#getReclassifyObjectAction_Object() |
| * @model containment="true" resolveProxies="false" required="true" ordered="false" |
| * @generated |
| */ |
| InputPin getObject(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.ReclassifyObjectAction#getObject <em>Object</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Object</em>' containment reference. |
| * @see #getObject() |
| * @generated |
| */ |
| void setObject(InputPin value); |
| |
| /** |
| * Creates a {@link org.eclipse.uml2.uml.InputPin} and sets the '<em><b>Object</b></em>' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.InputPin} to create. |
| * @return The new {@link org.eclipse.uml2.uml.InputPin}. |
| * @see #getObject() |
| * @generated |
| */ |
| InputPin createObject(EClass eClass); |
| |
| /** |
| * Creates a {@link org.eclipse.uml2.uml.InputPin} and sets the '<em><b>Object</b></em>' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @return The new {@link org.eclipse.uml2.uml.InputPin}. |
| * @see #getObject() |
| * @generated |
| */ |
| InputPin createObject(); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * None of the new classifiers may be abstract. |
| * not self.newClassifier->exists(isAbstract = true) |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateClassifierNotAbstract(DiagnosticChain diagnostics, |
| Map context); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The multiplicity of the input pin is 1..1. |
| * self.argument.multiplicity.is(1,1) |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateMultiplicity(DiagnosticChain diagnostics, Map context); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The input pin has no type. |
| * self.argument.type->size() = 0 |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateInputPin(DiagnosticChain diagnostics, Map context); |
| |
| } // ReclassifyObjectAction |