Interface IArtifactScope


public interface IArtifactScope
Common interface for all artifact scopes.
  • Method Details

    • getPackageName

      String getPackageName()
      This method returns the package name of the current artifact scope. If the package is empty or a language does not support packages, the method implementation returns an empty String.
      Returns:
    • setPackageName

      void setPackageName(String packageName)
      This method can be used to set the package name of the current artifact scope.
      Parameters:
      packageName -
    • getFullName

      String getFullName()
      This method returns the full name of the current artifact scope. The full name of an artifact scope is the name of the artifact, preceded by the package, if it is not empty.
      Returns:
    • calculateQualifiedNames

      @Deprecated default Set<String> calculateQualifiedNames(String name, String packageName, List<ImportStatement> imports)
      Deprecated.
      This method will be removed soon. Instead, symbol table creators should qualify names pointing to symbols of foreign models with the respective import statements in the model.
      Calculates possible qualified names for the simpleName. For this, it considers the (possible) packageName and the imports (i.e., import statements).
      Parameters:
      name - the simple name of the symbol
      packageName - the possible package name
      imports - the import statements
      Returns:
      a set of possible qualified names for the simpleName