|
|||||||||||
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 identifies an element in another package, and allows the element to be referenced using its name without a qualifier.
The following features are supported:
UMLPackage.getElementImport()
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()
The query getName() returns the name under which the imported PackageableElement will be known in the importing namespace. |
VisibilityKind |
getVisibility()
Returns the value of the 'Visibility' attribute. |
boolean |
isSetAlias()
Returns whether the value of the ' Alias ' attribute is set |
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 |
void |
unsetAlias()
Unsets the value of the ' Alias ' attribute |
boolean |
validateImportedElementIsPublic(DiagnosticChain diagnostics,
Map context)
An importedElement has either public visibility or no visibility at all. |
boolean |
validateVisibilityPublicOrPrivate(DiagnosticChain diagnostics,
Map context)
The visibility of an ElementImport 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 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
,
ElementImport.setVisibility(VisibilityKind)
,
UMLPackage.getElementImport_Visibility()
public void setVisibility(VisibilityKind value)
Visibility
' attribute.
value
- the new value of the 'Visibility' attribute.VisibilityKind
,
ElementImport.getVisibility()
public String getAlias()
ElementImport.isSetAlias()
,
ElementImport.unsetAlias()
,
ElementImport.setAlias(String)
,
UMLPackage.getElementImport_Alias()
public void setAlias(String value)
Alias
' attribute.
value
- the new value of the 'Alias' attribute.ElementImport.isSetAlias()
,
ElementImport.unsetAlias()
,
ElementImport.getAlias()
public void unsetAlias()
Alias
' attribute.
ElementImport.isSetAlias()
,
ElementImport.getAlias()
,
ElementImport.setAlias(String)
public boolean isSetAlias()
Alias
' attribute is set.
ElementImport.unsetAlias()
,
ElementImport.getAlias()
,
ElementImport.setAlias(String)
public PackageableElement getImportedElement()
ElementImport.setImportedElement(PackageableElement)
,
UMLPackage.getElementImport_ImportedElement()
public void setImportedElement(PackageableElement value)
Imported Element
' reference.
value
- the new value of the 'Imported Element' reference.ElementImport.getImportedElement()
public Namespace getImportingNamespace()
Element Import
'.
Specifies the Namespace that imports a PackageableElement from another Package.
ElementImport.setImportingNamespace(Namespace)
,
UMLPackage.getElementImport_ImportingNamespace()
,
Namespace.getElementImports()
public void setImportingNamespace(Namespace value)
Importing Namespace
' container reference.
value
- the new value of the 'Importing Namespace' container reference.ElementImport.getImportingNamespace()
public boolean validateVisibilityPublicOrPrivate(DiagnosticChain diagnostics, Map context)
public boolean validateImportedElementIsPublic(DiagnosticChain diagnostics, Map context)
public String getName()
|
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 |