blob: 1ca9ab1099b6e9d3496a3ece198af4a2f93f630e [file] [log] [blame]
/*
* Copyright (c) 2003, 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: PackageImport.java,v 1.9 2005/06/02 15:02:47 khussey Exp $
*/
package org.eclipse.uml2;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
/**
* <!-- 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) 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 -->
* <!-- begin-model-doc -->
* Specifies the visibility of the imported PackageableElements within the import-ing Namespace, i.e., whether imported elements will in turn be visible to other packages that use that importingPackage as an importedPackage. If the PackageImport is public, the imported elements will be visible outside the package, while if it is private they will not. By default, the value of visibility is public.
* <!-- end-model-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 -->
* <!-- begin-model-doc -->
* Specifies the Package whose members are imported into a Namespace. Subsets DirectedRelationship::target.
* <!-- end-model-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"
* @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 -->
* <!-- begin-model-doc -->
* Specifies the Namespace that imports the members from a Package. Subsets DirectedRelationship::source and Element::owner.
* <!-- end-model-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"
* @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);
} // PackageImport