Interface ElementImport
- All Superinterfaces:
BaseElement,Cloneable,Comparable,DirectedRelationship,Element,org.eclipse.emf.ecore.EObject,MDObject,com.dassault_systemes.modeler.foundation.model.ModelElement,ModelObject,org.eclipse.emf.common.notify.Notifier,javax.jmi.reflect.RefBaseObject,javax.jmi.reflect.RefFeatured,javax.jmi.reflect.RefObject,Relationship
A representation of the model object 'Element Import'.
An ElementImport identifies a NamedElement in a Namespace other than the one that owns that NamedElement and allows the NamedElement to be referenced using an unqualified name in the Namespace owning the ElementImport.
The following features are supported:
- See Also:
- Model:
- annotation="MOF package='classes.mdkernel'"
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'profile Of Metaclass Reference' reference.getAlias()Returns the value of the 'Alias' attribute.Returns the value of the 'Imported Element' reference.Returns the value of the 'Importing Namespace' container reference.Returns the value of the 'Visibility' attribute.voidSets the value of the 'profile Of Metaclass Reference' reference.voidSets the value of the 'Alias' attribute.voidSets 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.Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, isEditable, removePropertyChangeListener, sGetIDMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.DirectedRelationship
getSource, getTarget, hasSource, hasTargetMethods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementTaggedValue, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotype, getOwnedComment, getOwnedElement, getOwner, getSyncElement, getTaggedValue, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasAppliedStereotype, hasElementTaggedValue, hasOwnedComment, hasOwnedElement, hasTaggedValue, setOwner, setSyncElementMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setIDMethods inherited from interface com.dassault_systemes.modeler.foundation.model.ModelElement
canChangeElementOwner, eDynamicGet, getElementOwner, getLocalID, getObjectParent, setLocalID, sGetLocalIDMethods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, ignoringRefGetValue, ignoringRefGetValue, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationTextMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliverMethods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraintsMethods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValueMethods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostCompositeMethods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Relationship
get_abstraction, getRelatedElement, has_abstraction, hasRelatedElement
-
Method Details
-
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 importingNamespace, i.e., whether the importedElement will in turn be visible to other Namespaces. If the ElementImport is public, the importedElement will be visible outside the importingNamespace while, if the ElementImport is private, it will not.- Returns:
- the value of the 'Visibility' attribute.
- See Also:
- Model:
- default="public" required="true" ordered="false"
- Generated:
-
setVisibility
Sets the value of the 'Visibility' attribute.- Parameters:
value- the new value of the 'Visibility' attribute.- See Also:
- Generated:
-
getAlias
Returns the value of the 'Alias' attribute. The default value is"". Specifies the name that should be added to the importing Namespace in lieu of the name of the imported PackagableElement. The alias must not clash with any other member in the importing Namespace. By default, no alias is used.- Returns:
- the value of the 'Alias' attribute.
- See Also:
- Model:
- default="" dataType="com.nomagic.uml2.ext.magicdraw.String" ordered="false"
- Generated:
-
setAlias
Sets the value of the 'Alias' attribute.- Parameters:
value- the new value of the 'Alias' attribute.- See Also:
- Generated:
-
getImportedElement
Returns the value of the 'Imported Element' reference. It is bidirectional and its opposite is 'element Import Of Imported Element'. Specifies the PackageableElement whose name is to be added to a Namespace.- Returns:
- the value of the 'Imported Element' reference.
- See Also:
- Model:
- opposite="_elementImportOfImportedElement" required="true" ordered="false"
- Generated:
-
setImportedElement
Sets the value of the 'Imported Element' reference.- Parameters:
value- the new value of the 'Imported Element' reference.- See Also:
- Generated:
-
get_profileOfMetaclassReference
Returns the value of the 'profile Of Metaclass Reference' reference. It is bidirectional and its opposite is 'Metaclass Reference'.If the meaning of the 'profile Of Metaclass Reference' reference isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'profile Of Metaclass Reference' reference.
- See Also:
- Model:
- opposite="metaclassReference" ordered="false"
- Generated:
-
set_profileOfMetaclassReference
Sets the value of the 'profile Of Metaclass Reference' reference.- Parameters:
value- the new value of the 'profile Of Metaclass Reference' reference.- See Also:
- Generated:
-
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 Namespace.- Returns:
- the value of the 'Importing Namespace' container reference.
- See Also:
- Model:
- opposite="elementImport" required="true" transient="false" ordered="false"
- Generated:
-
setImportingNamespace
Sets the value of the 'Importing Namespace' container reference.- Parameters:
value- the new value of the 'Importing Namespace' container reference.- See Also:
- Generated:
-