diff options
Diffstat (limited to 'plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/ActivityParameterNode.java')
-rw-r--r-- | plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/ActivityParameterNode.java | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/ActivityParameterNode.java b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/ActivityParameterNode.java new file mode 100644 index 00000000..47a31e3f --- /dev/null +++ b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/ActivityParameterNode.java @@ -0,0 +1,131 @@ +/* + * 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: ActivityParameterNode.java,v 1.1 2005/11/14 22:26:02 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>Activity Parameter Node</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * Activity parameter nodes are object nodes at the beginning and end of flows that provide a means to accept inputs to an activity and provide outputs from the activity, through the activity parameters. + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.uml2.uml.ActivityParameterNode#getParameter <em>Parameter</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.uml2.uml.UMLPackage#getActivityParameterNode() + * @model + * @generated + */ +public interface ActivityParameterNode + extends ObjectNode { + + /** + * Returns the value of the '<em><b>Parameter</b></em>' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * The parameter the object node will be accepting or providing values for. + * <!-- end-model-doc --> + * @return the value of the '<em>Parameter</em>' reference. + * @see #setParameter(Parameter) + * @see org.eclipse.uml2.uml.UMLPackage#getActivityParameterNode_Parameter() + * @model required="true" ordered="false" + * @generated + */ + Parameter getParameter(); + + /** + * Sets the value of the '{@link org.eclipse.uml2.uml.ActivityParameterNode#getParameter <em>Parameter</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Parameter</em>' reference. + * @see #getParameter() + * @generated + */ + void setParameter(Parameter value); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Activity parameter nodes must have parameters from the containing activity. + * true + * <!-- end-model-doc --> + * @model + * @generated + */ + boolean validateParameter(DiagnosticChain diagnostics, Map context); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * The type of an activity parameter node is the same as the type of its parameter. + * true + * <!-- end-model-doc --> + * @model + * @generated + */ + boolean validateSameType(DiagnosticChain diagnostics, Map context); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * An activity parameter node may have all incoming edges or all outgoing edges, but it must not have both incoming and outgoing edges. + * true + * <!-- end-model-doc --> + * @model + * @generated + */ + boolean validateNoEdges(DiagnosticChain diagnostics, Map context); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Activity parameter object nodes with no incoming edges and one or more outgoing edges must have a parameter with in or inout direction. + * + * + * true + * <!-- end-model-doc --> + * @model + * @generated + */ + boolean validateNoIncomingEdges(DiagnosticChain diagnostics, Map context); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Activity parameter object nodes with no outgoing edges and one or more incoming edges must have a parameter with out, inout, or return direction. + * + * + * true + * <!-- end-model-doc --> + * @model + * @generated + */ + boolean validateNoOutgoingEdges(DiagnosticChain diagnostics, Map context); + +} // ActivityParameterNode |