blob: d9339b8d2396612ae2ad367a23c13de4a0df2b51 [file] [log] [blame]
/*
* Copyright (c) 2003, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
*
* $Id: PackageImport.java,v 1.4 2004/06/03 02:59:17 khussey Exp $
*/
package org.eclipse.uml2;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Package Import</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A package import is defined as a directed relationship that identifies a package whose members are to be imported by a namespace.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.uml2.PackageImport#getVisibility <em>Visibility</em>}</li>
* <li>{@link org.eclipse.uml2.PackageImport#getImportedPackage <em>Imported Package</em>}</li>
* <li>{@link org.eclipse.uml2.PackageImport#getImportingNamespace <em>Importing Namespace</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.uml2.UML2Package#getPackageImport()
* @model
* @generated
*/
public interface PackageImport extends DirectedRelationship{
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
String copyright = "Copyright (c) 2003, 2004 IBM Corporation and others."; //$NON-NLS-1$
/**
* Returns the value of the '<em><b>Visibility</b></em>' attribute.
* The literals are from the enumeration {@link org.eclipse.uml2.VisibilityKind}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Visibility</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Visibility</em>' attribute.
* @see org.eclipse.uml2.VisibilityKind
* @see #setVisibility(VisibilityKind)
* @see org.eclipse.uml2.UML2Package#getPackageImport_Visibility()
* @model
* @generated
*/
VisibilityKind getVisibility();
/**
* Sets the value of the '{@link org.eclipse.uml2.PackageImport#getVisibility <em>Visibility</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Visibility</em>' attribute.
* @see org.eclipse.uml2.VisibilityKind
* @see #getVisibility()
* @generated
*/
void setVisibility(VisibilityKind value);
/**
* Returns the value of the '<em><b>Imported Package</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Imported Package</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Imported Package</em>' reference.
* @see #setImportedPackage(org.eclipse.uml2.Package)
* @see org.eclipse.uml2.UML2Package#getPackageImport_ImportedPackage()
* @model required="true" volatile="true"
* @generated
*/
org.eclipse.uml2.Package getImportedPackage();
/**
* Sets the value of the '{@link org.eclipse.uml2.PackageImport#getImportedPackage <em>Imported Package</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Imported Package</em>' reference.
* @see #getImportedPackage()
* @generated
*/
void setImportedPackage(org.eclipse.uml2.Package value);
/**
* Returns the value of the '<em><b>Importing Namespace</b></em>' container reference.
* It is bidirectional and its opposite is '{@link org.eclipse.uml2.Namespace#getPackageImports <em>Package Import</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Importing Namespace</em>' container reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Importing Namespace</em>' container reference.
* @see #setImportingNamespace(Namespace)
* @see org.eclipse.uml2.UML2Package#getPackageImport_ImportingNamespace()
* @see org.eclipse.uml2.Namespace#getPackageImports
* @model opposite="packageImport" required="true" volatile="true"
* @generated
*/
Namespace getImportingNamespace();
/**
* Sets the value of the '{@link org.eclipse.uml2.PackageImport#getImportingNamespace <em>Importing Namespace</em>}' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Importing Namespace</em>' container reference.
* @see #getImportingNamespace()
* @generated
*/
void setImportingNamespace(Namespace value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* An invariant constraint based on the following OCL expression:
* <code>
* self.visibility = #public or self.visibility = #private
* </code>
* <!-- end-model-doc -->
* @model dataType="org.eclipse.uml2.Boolean"
* @generated
*/
boolean validatePublicOrPrivate(DiagnosticChain diagnostics, Map context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model parameters=""
* @generated
*/
EList getTargets();
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model parameters=""
* @generated
*/
EList getSources();
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model parameters=""
* @generated
*/
Element getOwner();
} // PackageImport