org.eclipse.uml2
Interface PackageImport

All Superinterfaces:
DirectedRelationship, Element, EModelElement, EObject, Notifier, Relationship
All Known Subinterfaces:
ProfileApplication

public interface PackageImport
extends DirectedRelationship

A representation of the model object 'Package Import'. A package import is defined as a directed relationship that identifies a package whose members are to be imported by a namespace.

The following features are supported:

See Also:
UML2Package.getPackageImport()

Field Summary
static String copyright
           
 
Method Summary
 Package getImportedPackage()
          Returns the value of the 'Imported Package' reference
 Namespace getImportingNamespace()
          Returns the value of the 'Importing Namespace' container reference.
 Element getOwner()
           
 EList getSources()
           
 EList getTargets()
           
 VisibilityKind getVisibility()
          Returns the value of the 'Visibility' attribute.
 void setImportedPackage(Package value)
          Sets the value of the 'Imported Package' reference
 void setImportingNamespace(Namespace value)
          Sets the value of the 'Importing Namespace' container reference
 void setVisibility(VisibilityKind value)
          Sets the value of the 'Visibility' attribute
 boolean validatePublicOrPrivate(DiagnosticChain diagnostics, Map context)
           An invariant constraint based on the following OCL expression: self.visibility = #public or self.visibility = #private
 
Methods inherited from interface org.eclipse.uml2.DirectedRelationship
getRelatedElements
 
Methods inherited from interface org.eclipse.uml2.Element
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, validateHasOwner, validateNotOwnSelf
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

getVisibility

public VisibilityKind getVisibility()
Returns the value of the 'Visibility' attribute. The literals are from the enumeration VisibilityKind.

If the meaning of the 'Visibility' attribute isn't clear, there really should be more of a description here...

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.

Returns:
the value of the 'Visibility' attribute.
See Also:
VisibilityKind, setVisibility(VisibilityKind), UML2Package.getPackageImport_Visibility()

setVisibility

public void setVisibility(VisibilityKind value)
Sets the value of the 'Visibility' attribute.

Parameters:
value - the new value of the 'Visibility' attribute.
See Also:
VisibilityKind, getVisibility()

getImportedPackage

public Package getImportedPackage()
Returns the value of the 'Imported Package' reference.

If the meaning of the 'Imported Package' reference isn't clear, there really should be more of a description here...

Specifies the Package whose members are imported into a Namespace. Subsets DirectedRelationship::target.

Returns:
the value of the 'Imported Package' reference.
See Also:
setImportedPackage(org.eclipse.uml2.Package), UML2Package.getPackageImport_ImportedPackage()

setImportedPackage

public void setImportedPackage(Package value)
Sets the value of the 'Imported Package' reference.

Parameters:
value - the new value of the 'Imported Package' reference.
See Also:
getImportedPackage()

getImportingNamespace

public Namespace getImportingNamespace()
Returns the value of the 'Importing Namespace' container reference. It is bidirectional and its opposite is 'Package Import'.

If the meaning of the 'Importing Namespace' container reference isn't clear, there really should be more of a description here...

Specifies the Namespace that imports the members from a Package. Subsets DirectedRelationship::source and Element::owner.

Returns:
the value of the 'Importing Namespace' container reference.
See Also:
setImportingNamespace(Namespace), UML2Package.getPackageImport_ImportingNamespace(), Namespace.getPackageImports()

setImportingNamespace

public void setImportingNamespace(Namespace value)
Sets the value of the 'Importing Namespace' container reference.

Parameters:
value - the new value of the 'Importing Namespace' container reference.
See Also:
getImportingNamespace()

validatePublicOrPrivate

public boolean validatePublicOrPrivate(DiagnosticChain diagnostics,
                                       Map context)
An invariant constraint based on the following OCL expression: self.visibility = #public or self.visibility = #private


getTargets

public EList getTargets()

Specified by:
getTargets in interface DirectedRelationship
Returns:
the value of the 'Target' reference list.
See Also:
UML2Package.getDirectedRelationship_Target()

getSources

public EList getSources()

Specified by:
getSources in interface DirectedRelationship
Returns:
the value of the 'Source' reference list.
See Also:
UML2Package.getDirectedRelationship_Source()

getOwner

public Element getOwner()

Specified by:
getOwner in interface Element
Returns:
the value of the 'Owner' reference.
See Also:
UML2Package.getElement_Owner(), Element.getOwnedElements()

Copyright 2003, 2004 IBM Corporation and others.
All Rights Reserved.