Package com.sodius.mdw.metamodel.uml21
Interface ElementImport
-
- All Superinterfaces:
Comparable<Object>,DirectedRelationship,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,org.eclipse.emf.common.notify.Notifier,Relationship
public interface ElementImport extends DirectedRelationship
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:
- See Also:
UMLPackage.getElementImport()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAlias()Returns the value of the 'Alias' attribute.PackageableElementgetImportedElement()Returns the value of the 'Imported Element' reference.NamespacegetImportingNamespace()Returns the value of the 'Importing Namespace' container reference.StringgetName()The query getName() returns the name under which the imported PackageableElement will be known in the importing namespace.VisibilityKindgetVisibility()Returns the value of the 'Visibility' attribute.booleanisSetAlias()Returns whether the value of the 'Alias' attribute is set.voidsetAlias(String value)Sets the value of the 'Alias' attribute.voidsetImportedElement(PackageableElement value)Sets the value of the 'Imported Element' reference.voidsetImportingNamespace(Namespace value)Sets the value of the 'Importing Namespace' container reference.voidsetVisibility(VisibilityKind value)Sets the value of the 'Visibility' attribute.voidunsetAlias()Unsets the value of the 'Alias' attribute.booleanvalidateImportedElementIsPublic(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)An importedElement has either public visibility or no visibility at all.booleanvalidateVisibilityPublicOrPrivate(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The visibility of an ElementImport is either public or private.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.DirectedRelationship
getSources, getTargets
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
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
-
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, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
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
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Relationship
getRelatedElements
-
-
-
-
Method Detail
-
getVisibility
VisibilityKind getVisibility()
Returns the value of the 'Visibility' attribute. The default value is"public". The literals are from the enumerationVisibilityKind. 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.- Returns:
- the value of the 'Visibility' attribute.
- See Also:
VisibilityKind,setVisibility(VisibilityKind),UMLPackage.getElementImport_Visibility()
-
setVisibility
void setVisibility(VisibilityKind value)
Sets the value of the 'Visibility' attribute.- Parameters:
value- the new value of the 'Visibility' attribute.- See Also:
VisibilityKind,getVisibility()
-
getAlias
String getAlias()
Returns the value of the 'Alias' attribute. Specifies the name that should be added to the namespace of the importing package in lieu of the name of the imported packagable element. The aliased name must not clash with any other member name in the importing package. By default, no alias is used.- Returns:
- the value of the 'Alias' attribute.
- See Also:
isSetAlias(),unsetAlias(),setAlias(String),UMLPackage.getElementImport_Alias()
-
setAlias
void setAlias(String value)
Sets the value of the 'Alias' attribute.- Parameters:
value- the new value of the 'Alias' attribute.- See Also:
isSetAlias(),unsetAlias(),getAlias()
-
unsetAlias
void unsetAlias()
Unsets the value of the 'Alias' attribute.- See Also:
isSetAlias(),getAlias(),setAlias(String)
-
isSetAlias
boolean isSetAlias()
Returns whether the value of the 'Alias' attribute is set.- Returns:
- whether the value of the 'Alias' attribute is set.
- See Also:
unsetAlias(),getAlias(),setAlias(String)
-
getImportedElement
PackageableElement getImportedElement()
Returns the value of the 'Imported Element' reference. Specifies the PackageableElement whose name is to be added to a Namespace.- Returns:
- the value of the 'Imported Element' reference.
- See Also:
setImportedElement(PackageableElement),UMLPackage.getElementImport_ImportedElement()
-
setImportedElement
void setImportedElement(PackageableElement value)
Sets the value of the 'Imported Element' reference.- Parameters:
value- the new value of the 'Imported Element' reference.- See Also:
getImportedElement()
-
getImportingNamespace
Namespace getImportingNamespace()
Returns the value of the 'Importing Namespace' container reference. It is bidirectional and its opposite is 'Element Import'. Specifies the Namespace that imports a PackageableElement from another Package.- Returns:
- the value of the 'Importing Namespace' container reference.
- See Also:
setImportingNamespace(Namespace),UMLPackage.getElementImport_ImportingNamespace(),Namespace.getElementImports()
-
setImportingNamespace
void setImportingNamespace(Namespace value)
Sets the value of the 'Importing Namespace' container reference.- Parameters:
value- the new value of the 'Importing Namespace' container reference.- See Also:
getImportingNamespace()
-
validateVisibilityPublicOrPrivate
boolean validateVisibilityPublicOrPrivate(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)The visibility of an ElementImport is either public or private. self.visibility = #public or self.visibility = #private
-
validateImportedElementIsPublic
boolean validateImportedElementIsPublic(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)An importedElement has either public visibility or no visibility at all. self.importedElement.visibility.notEmpty() implies self.importedElement.visibility = #public
-
getName
String getName()
The query getName() returns the name under which the imported PackageableElement will be known in the importing namespace. result = if self.alias->notEmpty() then self.alias else self.importedElement.name endif
-
-