Class DefaultImportResolver


  • class DefaultImportResolver
    extends DefaultImportResolver<Project>
    A project imports resolver. Don't store information in attributes!
    Author:
    Holger Eichelberger
    • Constructor Detail

      • DefaultImportResolver

        DefaultImportResolver()
        Creates the resolver instance.
    • Method Detail

      • checkImported

        protected boolean checkImported​(ModelImport<Project> imp,
                                        Project model,
                                        java.util.List<IMessage> messages)
        Checks the imported interfaces for obvious import problems, such as importing projects with interfaces as a whole.
        Overrides:
        checkImported in class 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​(java.lang.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