Interface ElementImport
-
- All Superinterfaces:
BaseElement
,java.lang.Cloneable
,java.lang.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
public interface ElementImport extends DirectedRelationship
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:
UMLPackage.getElementImport()
- Model:
- annotation="MOF package='classes.mdkernel'"
- Generated:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Profile
get_profileOfMetaclassReference()
Returns the value of the 'profile Of Metaclass Reference' reference.java.lang.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.VisibilityKind
getVisibility()
Returns the value of the 'Visibility' attribute.void
set_profileOfMetaclassReference(Profile value)
Sets the value of the 'profile Of Metaclass Reference
' reference.void
setAlias(java.lang.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.-
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, isEditable, removePropertyChangeListener, sGetID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.DirectedRelationship
getSource, getTarget, hasSource, hasTarget
-
Methods 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, setSyncElement
-
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.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setID
-
Methods inherited from interface com.dassault_systemes.modeler.foundation.model.ModelElement
canChangeElementOwner, eDynamicGet, getElementOwner, getLocalID, getObjectParent, setLocalID, sGetLocalID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, ignoringRefGetValue, ignoringRefGetValue, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
-
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValue
-
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Relationship
get_abstraction, getRelatedElement, has_abstraction, hasRelatedElement
-
-
-
-
Method Detail
-
getVisibility
@CheckForNull 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 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:
VisibilityKind
,setVisibility(VisibilityKind)
,UMLPackage.getElementImport_Visibility()
- Model:
- default="public" required="true" ordered="false"
- Generated:
-
setVisibility
void setVisibility(@CheckForNull VisibilityKind value)
Sets the value of the 'Visibility
' attribute.- Parameters:
value
- the new value of the 'Visibility' attribute.- See Also:
VisibilityKind
,getVisibility()
- Generated:
-
getAlias
@CheckForNull java.lang.String 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:
setAlias(String)
,UMLPackage.getElementImport_Alias()
- Model:
- default="" dataType="com.nomagic.uml2.ext.magicdraw.String" ordered="false"
- Generated:
-
setAlias
void setAlias(@CheckForNull java.lang.String value)
Sets the value of the 'Alias
' attribute.- Parameters:
value
- the new value of the 'Alias' attribute.- See Also:
getAlias()
- Generated:
-
getImportedElement
@CheckForNull PackageableElement 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:
setImportedElement(PackageableElement)
,UMLPackage.getElementImport_ImportedElement()
,PackageableElement.get_elementImportOfImportedElement()
- Model:
- opposite="_elementImportOfImportedElement" required="true" ordered="false"
- Generated:
-
setImportedElement
void setImportedElement(@CheckForNull PackageableElement value)
Sets the value of the 'Imported Element
' reference.- Parameters:
value
- the new value of the 'Imported Element' reference.- See Also:
getImportedElement()
- Generated:
-
get_profileOfMetaclassReference
@CheckForNull Profile 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:
set_profileOfMetaclassReference(Profile)
,UMLPackage.getElementImport__profileOfMetaclassReference()
,Profile.getMetaclassReference()
- Model:
- opposite="metaclassReference" ordered="false"
- Generated:
-
set_profileOfMetaclassReference
void set_profileOfMetaclassReference(@CheckForNull Profile value)
Sets the value of the 'profile Of Metaclass Reference
' reference.- Parameters:
value
- the new value of the 'profile Of Metaclass Reference' reference.- See Also:
get_profileOfMetaclassReference()
- Generated:
-
getImportingNamespace
@CheckForNull 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 Namespace.- Returns:
- the value of the 'Importing Namespace' container reference.
- See Also:
setImportingNamespace(Namespace)
,UMLPackage.getElementImport_ImportingNamespace()
,Namespace.getElementImport()
- Model:
- opposite="elementImport" required="true" transient="false" ordered="false"
- Generated:
-
setImportingNamespace
void setImportingNamespace(@CheckForNull 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()
- Generated:
-
-