Enum Class PluginInstallUtils.EntryState

java.lang.Object
java.lang.Enum<PluginInstallUtils.EntryState>
com.ultikits.ultitools.utils.PluginInstallUtils.EntryState
All Implemented Interfaces:
Serializable, Comparable<PluginInstallUtils.EntryState>, java.lang.constant.Constable
Enclosing class:
PluginInstallUtils

private static enum PluginInstallUtils.EntryState extends Enum<PluginInstallUtils.EntryState>
What one entry of the modules folder is, relative to the module being uninstalled. Every entry is exactly one of these, and each is decided by a positive test on the archive -- with one exception, stated where it is taken: an entry the module loader itself would never load, judged by the same .jar test PluginManager#init applies to this folder, is state B without being opened.
  • Enum Constant Details

    • THIS_MODULES

      public static final PluginInstallUtils.EntryState THIS_MODULES
      It is a loaded instance's own code-source JAR, or the archive opened and its plugin.yml declares this module.
    • NOT_THIS_MODULES

      public static final PluginInstallUtils.EntryState NOT_THIS_MODULES
      The archive opened and its plugin.yml declares another module, or the entry is one the module loader would never load at all.
    • UNDETERMINED

      public static final PluginInstallUtils.EntryState UNDETERMINED
      Nothing about it identifies a module: the archive would not open, the entry could not be read, the plugin.yml is not valid YAML, it carries no plugin.yml, or that file declares no name:. Unknown is not "no".
  • Constructor Details

    • EntryState

      private EntryState()
  • Method Details

    • values

      public static PluginInstallUtils.EntryState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PluginInstallUtils.EntryState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null