|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Element Import'. An element import is defined as a directed relationship between an importing namespace and a packageable element. The name of the packageable element or its alias is to be added to the namespace of the importing namespace. It is also possible to control whether the imported element can be further imported.
The following features are supported:
UML2Package.getElementImport()
Field Summary | |
static String |
copyright
|
Method Summary | |
String |
getAlias()
Returns the value of the 'Alias' attribute. |
PackageableElement |
getImportedElement()
Returns the value of the 'Imported Element' reference |
Namespace |
getImportingNamespace()
Returns the value of the 'Importing Namespace' container reference. |
String |
getName()
A query based on the following OCL expression:
if self.alias->notEmpty() then
self.alias
else
self.importedElement.name
endif
|
Element |
getOwner()
|
EList |
getSources()
|
EList |
getTargets()
|
VisibilityKind |
getVisibility()
Returns the value of the 'Visibility' attribute. |
void |
setAlias(String value)
Sets the value of the ' Alias ' attribute |
void |
setImportedElement(PackageableElement value)
Sets the value of the ' Imported Element ' 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 |
validateImportedElementIsPublic(DiagnosticChain diagnostics,
Map context)
An invariant constraint based on the following OCL expression:
self.importedElement.visibility.notEmpty() implies self.importedElement.visibility = #public
|
boolean |
validateVisibilityPublicOrPrivate(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 PackageableElement within the importing Package. The default visibility is the same as that of the imported element. If the imported element does not have a visibility, it is possible to add visibility to the element import.
VisibilityKind
,
setVisibility(VisibilityKind)
,
UML2Package.getElementImport_Visibility()
public void setVisibility(VisibilityKind value)
Visibility
' attribute.
value
- the new value of the 'Visibility' attribute.VisibilityKind
,
getVisibility()
public String getAlias()
""
.
If the meaning of the 'Alias' attribute isn't clear, there really should be more of a description here...
Specifies the name that should be added to the namespace of the importing Pack-age in lieu of the name of the imported PackagableElement. The aliased name must not clash with any other member name in the importing Package. By default, no alias is used.
setAlias(String)
,
UML2Package.getElementImport_Alias()
public void setAlias(String value)
Alias
' attribute.
value
- the new value of the 'Alias' attribute.getAlias()
public PackageableElement getImportedElement()
If the meaning of the 'Imported Element' reference isn't clear, there really should be more of a description here...
Specifies the PackageableElement whose name is to be added to a Namespace. Subsets DirectedRelationship::target.
setImportedElement(PackageableElement)
,
UML2Package.getElementImport_ImportedElement()
public void setImportedElement(PackageableElement value)
Imported Element
' reference.
value
- the new value of the 'Imported Element' reference.getImportedElement()
public Namespace getImportingNamespace()
Element 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 a PackageableElement from another Package. Subsets DirectedRelationship::source and Element::owner.
setImportingNamespace(Namespace)
,
UML2Package.getElementImport_ImportingNamespace()
,
Namespace.getElementImports()
public void setImportingNamespace(Namespace value)
Importing Namespace
' container reference.
value
- the new value of the 'Importing Namespace' container reference.getImportingNamespace()
public boolean validateVisibilityPublicOrPrivate(DiagnosticChain diagnostics, Map context)
self.visibility = #public or self.visibility = #private
public boolean validateImportedElementIsPublic(DiagnosticChain diagnostics, Map context)
self.importedElement.visibility.notEmpty() implies self.importedElement.visibility = #public
public String getName()
if self.alias->notEmpty() then
self.alias
else
self.importedElement.name
endif
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 |