Class ModpackDirectoryValidator

  • All Implemented Interfaces:

    
    public final class ModpackDirectoryValidator
    
                        

    Validator for the modpack-directory-concern of a server pack configuration: existence, type and the absence of the overrides-directory which marks uninstalled modpack-exports. Extracted from ConfigurationHandler (refactor Phase 1c); ConfigurationHandler remains the facade through which consumers access these checks.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final ConfigCheck checkModpackDir(String modpackDir, ConfigCheck configCheck, Boolean printLog) Check the passed directory for existence and whether it is a directory, rather than a file.
      • Methods inherited from class java.lang.Object

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

      • ModpackDirectoryValidator

        ModpackDirectoryValidator()
    • Method Detail

      • checkModpackDir

         final ConfigCheck checkModpackDir(String modpackDir, ConfigCheck configCheck, Boolean printLog)

        Check the passed directory for existence and whether it is a directory, rather than a file.

        Parameters:
        modpackDir - The modpack directory.
        configCheck - Collection of encountered errors, if any, for convenient result-checks.
        Returns:

        true if the directory exists.