|
|||||||||||
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 defined as a directed relationship that identifies a package whose members are to be imported by a namespace.
The following features are supported:
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 |
public static final String copyright
Method Detail |
public VisibilityKind getVisibility()
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.
VisibilityKind
,
setVisibility(VisibilityKind)
,
UML2Package.getPackageImport_Visibility()
public void setVisibility(VisibilityKind value)
Visibility
' attribute.
value
- the new value of the 'Visibility' attribute.VisibilityKind
,
getVisibility()
public Package getImportedPackage()
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.
setImportedPackage(org.eclipse.uml2.Package)
,
UML2Package.getPackageImport_ImportedPackage()
public void setImportedPackage(Package value)
Imported Package
' reference.
value
- the new value of the 'Imported Package' reference.getImportedPackage()
public Namespace getImportingNamespace()
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.
setImportingNamespace(Namespace)
,
UML2Package.getPackageImport_ImportingNamespace()
,
Namespace.getPackageImports()
public void setImportingNamespace(Namespace value)
Importing Namespace
' container reference.
value
- the new value of the 'Importing Namespace' container reference.getImportingNamespace()
public boolean validatePublicOrPrivate(DiagnosticChain diagnostics, Map context)
self.visibility = #public or self.visibility = #private
public EList getTargets()
getTargets
in interface DirectedRelationship
UML2Package.getDirectedRelationship_Target()
public EList getSources()
getSources
in interface DirectedRelationship
UML2Package.getDirectedRelationship_Source()
public Element getOwner()
getOwner
in interface Element
UML2Package.getElement_Owner()
,
Element.getOwnedElements()
|
Copyright 2003, 2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |