| /* |
| * Copyright (c) 2005, 2007 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: Pin.java,v 1.6 2007/04/25 17:47:05 khussey Exp $ |
| */ |
| package org.eclipse.uml2.uml; |
| |
| import java.util.Map; |
| |
| import org.eclipse.emf.common.util.DiagnosticChain; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>Pin</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <!-- begin-model-doc --> |
| * A pin is a typed element and multiplicity element that provides values to actions and accept result values from them. |
| * A pin is an object node for inputs and outputs to actions. |
| * <!-- end-model-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.Pin#isControl <em>Is Control</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @see org.eclipse.uml2.uml.UMLPackage#getPin() |
| * @model |
| * @generated |
| */ |
| public interface Pin |
| extends ObjectNode, MultiplicityElement { |
| |
| /** |
| * Returns the value of the '<em><b>Is Control</b></em>' attribute. |
| * The default value is <code>"false"</code>. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Tells whether the pins provide data to the actions, or just controls when it executes it. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Is Control</em>' attribute. |
| * @see #setIsControl(boolean) |
| * @see org.eclipse.uml2.uml.UMLPackage#getPin_IsControl() |
| * @model default="false" dataType="org.eclipse.uml2.uml.Boolean" required="true" ordered="false" |
| * @generated |
| */ |
| boolean isControl(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.Pin#isControl <em>Is Control</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Is Control</em>' attribute. |
| * @see #isControl() |
| * @generated |
| */ |
| void setIsControl(boolean value); |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * Control pins have a control type |
| * isControl implies isControlType |
| * @param diagnostics The chain of diagnostics to which problems are to be appended. |
| * @param context The cache of context-specific information. |
| * <!-- end-model-doc --> |
| * @model |
| * @generated |
| */ |
| boolean validateControlPins(DiagnosticChain diagnostics, |
| Map<Object, Object> context); |
| |
| } // Pin |