blob: efa26c18ec03ef08c1462b6569c53ff449e2634b [file] [log] [blame]
/*
* 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: Pin.java,v 1.5 2006/12/14 15:49:27 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
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateControlPins(DiagnosticChain diagnostics,
Map<Object, Object> context);
} // Pin