|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Package Import'. A package import is a relationship that allows the use of unqualified names to refer to package members from other namespaces.
The following features are supported:
UMLPackage.getPackageImport()
Method Summary | |
Package |
getImportedPackage()
Returns the value of the 'Imported Package' reference |
Namespace |
getImportingNamespace()
Returns the value of the 'Importing Namespace' container reference. |
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)
The visibility of a PackageImport is either public or private. |
Methods inherited from interface org.eclipse.uml2.uml.DirectedRelationship |
getSources, getTargets |
Methods inherited from interface org.eclipse.uml2.uml.Relationship |
getRelatedElements |
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 |
Method Detail |
public VisibilityKind getVisibility()
"public"
.
The literals are from the enumeration VisibilityKind
.
Specifies the visibility of the imported PackageableElements within the importing 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.
VisibilityKind
,
PackageImport.setVisibility(VisibilityKind)
,
UMLPackage.getPackageImport_Visibility()
public void setVisibility(VisibilityKind value)
Visibility
' attribute.
value
- the new value of the 'Visibility' attribute.VisibilityKind
,
PackageImport.getVisibility()
public Package getImportedPackage()
PackageImport.setImportedPackage(org.eclipse.uml2.uml.Package)
,
UMLPackage.getPackageImport_ImportedPackage()
public void setImportedPackage(Package value)
Imported Package
' reference.
value
- the new value of the 'Imported Package' reference.PackageImport.getImportedPackage()
public Namespace getImportingNamespace()
Package Import
'.
Specifies the Namespace that imports the members from a Package.
PackageImport.setImportingNamespace(Namespace)
,
UMLPackage.getPackageImport_ImportingNamespace()
,
Namespace.getPackageImports()
public void setImportingNamespace(Namespace value)
Importing Namespace
' container reference.
value
- the new value of the 'Importing Namespace' container reference.PackageImport.getImportingNamespace()
public boolean validatePublicOrPrivate(DiagnosticChain diagnostics, Map context)
|
Copyright 2003, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |