public interface ElementImport extends DirectedRelationship
The following features are supported:
UMLPackage.getElementImport()
Modifier and Type | Method and Description |
---|---|
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.
|
getSources, getTargets
getRelatedElements
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
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
,
setVisibility(VisibilityKind)
,
UMLPackage.getElementImport_Visibility()
void setVisibility(VisibilityKind value)
Visibility
' attribute.
value
- the new value of the 'Visibility' attribute.VisibilityKind
,
getVisibility()
String getAlias()
isSetAlias()
,
unsetAlias()
,
setAlias(String)
,
UMLPackage.getElementImport_Alias()
void setAlias(String value)
Alias
' attribute.
value
- the new value of the 'Alias' attribute.isSetAlias()
,
unsetAlias()
,
getAlias()
void unsetAlias()
Alias
' attribute.
isSetAlias()
,
getAlias()
,
setAlias(String)
boolean isSetAlias()
Alias
' attribute is set.
unsetAlias()
,
getAlias()
,
setAlias(String)
PackageableElement getImportedElement()
setImportedElement(PackageableElement)
,
UMLPackage.getElementImport_ImportedElement()
void setImportedElement(PackageableElement value)
Imported Element
' reference.
value
- the new value of the 'Imported Element' reference.getImportedElement()
Namespace getImportingNamespace()
Element Import
'.
Specifies the Namespace that imports a PackageableElement from another Package.
setImportingNamespace(Namespace)
,
UMLPackage.getElementImport_ImportingNamespace()
,
Namespace.getElementImports()
void setImportingNamespace(Namespace value)
Importing Namespace
' container
reference.
value
- the new value of the 'Importing Namespace' container reference.getImportingNamespace()
boolean validateVisibilityPublicOrPrivate(DiagnosticChain diagnostics, Map context)
boolean validateImportedElementIsPublic(DiagnosticChain diagnostics, Map context)
String getName()