| /* |
| * 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: Slot.java,v 1.8 2006/05/26 16:34:03 khussey Exp $ |
| */ |
| package org.eclipse.uml2.uml; |
| |
| import org.eclipse.emf.common.util.EList; |
| |
| import org.eclipse.emf.ecore.EClass; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * A representation of the model object '<em><b>Slot</b></em>'. |
| * <!-- end-user-doc --> |
| * |
| * <!-- begin-model-doc --> |
| * A slot specifies that an entity modeled by an instance specification has a value or values for a specific structural feature. |
| * <!-- end-model-doc --> |
| * |
| * <p> |
| * The following features are supported: |
| * <ul> |
| * <li>{@link org.eclipse.uml2.uml.Slot#getDefiningFeature <em>Defining Feature</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.Slot#getValues <em>Value</em>}</li> |
| * <li>{@link org.eclipse.uml2.uml.Slot#getOwningInstance <em>Owning Instance</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @see org.eclipse.uml2.uml.UMLPackage#getSlot() |
| * @model |
| * @generated |
| */ |
| public interface Slot |
| extends Element { |
| |
| /** |
| * Returns the value of the '<em><b>Owning Instance</b></em>' container reference. |
| * It is bidirectional and its opposite is '{@link org.eclipse.uml2.uml.InstanceSpecification#getSlots <em>Slot</em>}'. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The instance specification that owns this slot. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Owning Instance</em>' container reference. |
| * @see #setOwningInstance(InstanceSpecification) |
| * @see org.eclipse.uml2.uml.UMLPackage#getSlot_OwningInstance() |
| * @see org.eclipse.uml2.uml.InstanceSpecification#getSlots |
| * @model opposite="slot" required="true" ordered="false" |
| * @generated |
| */ |
| InstanceSpecification getOwningInstance(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.Slot#getOwningInstance <em>Owning Instance</em>}' container reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Owning Instance</em>' container reference. |
| * @see #getOwningInstance() |
| * @generated |
| */ |
| void setOwningInstance(InstanceSpecification value); |
| |
| /** |
| * Returns the value of the '<em><b>Defining Feature</b></em>' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The structural feature that specifies the values that may be held by the slot. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Defining Feature</em>' reference. |
| * @see #setDefiningFeature(StructuralFeature) |
| * @see org.eclipse.uml2.uml.UMLPackage#getSlot_DefiningFeature() |
| * @model required="true" ordered="false" |
| * @generated |
| */ |
| StructuralFeature getDefiningFeature(); |
| |
| /** |
| * Sets the value of the '{@link org.eclipse.uml2.uml.Slot#getDefiningFeature <em>Defining Feature</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param value the new value of the '<em>Defining Feature</em>' reference. |
| * @see #getDefiningFeature() |
| * @generated |
| */ |
| void setDefiningFeature(StructuralFeature value); |
| |
| /** |
| * Returns the value of the '<em><b>Value</b></em>' containment reference list. |
| * The list contents are of type {@link org.eclipse.uml2.uml.ValueSpecification}. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * <!-- begin-model-doc --> |
| * The value or values corresponding to the defining feature for the owning instance specification. |
| * <!-- end-model-doc --> |
| * @return the value of the '<em>Value</em>' containment reference list. |
| * @see org.eclipse.uml2.uml.UMLPackage#getSlot_Value() |
| * @model type="org.eclipse.uml2.uml.ValueSpecification" containment="true" resolveProxies="true" |
| * @generated |
| */ |
| EList getValues(); |
| |
| /** |
| * Creates a new {@link org.eclipse.uml2.uml.ValueSpecification}, with the specified '<em><b>Name</b></em>', and '<em><b>Type</b></em>', and appends it to the '<em><b>Value</b></em>' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' for the new {@link org.eclipse.uml2.uml.ValueSpecification}, or <code>null</code>. |
| * @param type The '<em><b>Type</b></em>' for the new {@link org.eclipse.uml2.uml.ValueSpecification}, or <code>null</code>. |
| * @param eClass The Ecore class of the {@link org.eclipse.uml2.uml.ValueSpecification} to create. |
| * @return The new {@link org.eclipse.uml2.uml.ValueSpecification}. |
| * @see #getValues() |
| * @generated |
| */ |
| ValueSpecification createValue(String name, Type type, EClass eClass); |
| |
| /** |
| * Retrieves the first {@link org.eclipse.uml2.uml.ValueSpecification} with the specified '<em><b>Name</b></em>', and '<em><b>Type</b></em>' from the '<em><b>Value</b></em>' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.ValueSpecification} to retrieve, or <code>null</code>. |
| * @param type The '<em><b>Type</b></em>' of the {@link org.eclipse.uml2.uml.ValueSpecification} to retrieve, or <code>null</code>. |
| * @return The first {@link org.eclipse.uml2.uml.ValueSpecification} with the specified '<em><b>Name</b></em>', and '<em><b>Type</b></em>', or <code>null</code>. |
| * @see #getValues() |
| * @generated |
| */ |
| ValueSpecification getValue(String name, Type type); |
| |
| /** |
| * Retrieves the first {@link org.eclipse.uml2.uml.ValueSpecification} with the specified '<em><b>Name</b></em>', and '<em><b>Type</b></em>' from the '<em><b>Value</b></em>' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param name The '<em><b>Name</b></em>' of the {@link org.eclipse.uml2.uml.ValueSpecification} to retrieve, or <code>null</code>. |
| * @param type The '<em><b>Type</b></em>' of the {@link org.eclipse.uml2.uml.ValueSpecification} 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.ValueSpecification} to retrieve, or <code>null</code>. |
| * @param createOnDemand Whether to create a {@link org.eclipse.uml2.uml.ValueSpecification} on demand if not found. |
| * @return The first {@link org.eclipse.uml2.uml.ValueSpecification} with the specified '<em><b>Name</b></em>', and '<em><b>Type</b></em>', or <code>null</code>. |
| * @see #getValues() |
| * @generated |
| */ |
| ValueSpecification getValue(String name, Type type, boolean ignoreCase, |
| EClass eClass, boolean createOnDemand); |
| |
| } // Slot |