Interface ElementImport

    • Method Detail

      • getVisibility

        VisibilityKind getVisibility()
        Returns the value of the 'Visibility' attribute. The default value is "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.
        Returns:
        the value of the 'Visibility' attribute.
        See Also:
        VisibilityKind, setVisibility(VisibilityKind), UMLPackage.getElementImport_Visibility()
      • 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()
      • 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