Enum Class BackendMode

java.lang.Object
java.lang.Enum<BackendMode>
io.github.jbastgen.stemma.app.config.BackendMode
All Implemented Interfaces:
Serializable, Comparable<BackendMode>, Constable

public enum BackendMode extends Enum<BackendMode>
Which Git implementation the application uses.
  • Enum Constant Details

    • BUILT_IN

      public static final BackendMode BUILT_IN
      Built-in JGit. Needs no installed git.
    • SYSTEM_GIT

      public static final BackendMode SYSTEM_GIT
      The git executable of a system installation (detected or chosen by the user).
  • Method Details

    • values

      public static BackendMode[] 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 BackendMode 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
    • key

      public String key()
      Value stored in the settings file.
    • fromKey

      public static BackendMode fromKey(String key)
      The mode of a key from the settings file; anything unknown is the built-in Git.