Class DefaultImportResolver

java.lang.Object
net.ssehub.easy.basics.modelManagement.ImportResolver<Project>
net.ssehub.easy.basics.modelManagement.DefaultImportResolver<Project>
net.ssehub.easy.varModel.management.DefaultImportResolver

class DefaultImportResolver extends net.ssehub.easy.basics.modelManagement.DefaultImportResolver<Project>
A project imports resolver. Don't store information in attributes!
Author:
Holger Eichelberger
  • Field Summary

    Fields inherited from class net.ssehub.easy.basics.modelManagement.DefaultImportResolver

    IMPORT_WITH_VERSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the resolver instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    checkImported(net.ssehub.easy.basics.modelManagement.ModelImport<Project> imp, Project model, List<net.ssehub.easy.basics.messages.IMessage> messages)
    Checks the imported interfaces for obvious import problems, such as importing projects with interfaces as a whole.
    private static boolean
    Returns whether text is empty or null.

    Methods inherited from class net.ssehub.easy.basics.modelManagement.DefaultImportResolver

    cannotResolveImport, clear, resolve, resolveImports

    Methods inherited from class net.ssehub.easy.basics.modelManagement.ImportResolver

    addDeferredLoader, getProcessingListener, isTransitiveLoadingEnabled, notifyProcessing, setProcessingListener, setTransitiveLoading

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultImportResolver

      DefaultImportResolver()
      Creates the resolver instance.
  • Method Details

    • checkImported

      protected boolean checkImported(net.ssehub.easy.basics.modelManagement.ModelImport<Project> imp, Project model, List<net.ssehub.easy.basics.messages.IMessage> messages)
      Checks the imported interfaces for obvious import problems, such as importing projects with interfaces as a whole.
      Overrides:
      checkImported in class net.ssehub.easy.basics.modelManagement.DefaultImportResolver<Project>
      Parameters:
      imp - the import to be resolved
      model - the model which may resolve the import
      messages - which occur during resolution, null or empty if none (modified as a side effect)
      Returns:
      true if the import is fine, true if problems were detected
    • isEmptyOrNull

      private static boolean isEmptyOrNull(String text)
      Returns whether text is empty or null.
      Parameters:
      text - the string to be tested
      Returns:
      true if text is empty or null, false else