Enum Class EnvProps.ClientCapability

java.lang.Object
java.lang.Enum<EnvProps.ClientCapability>
com.iizix.prop.EnvProps.ClientCapability
All Implemented Interfaces:
Serializable, Comparable<EnvProps.ClientCapability>, Constable
Enclosing class:
EnvProps

public static enum EnvProps.ClientCapability extends Enum<EnvProps.ClientCapability>
Capabilities of a Client.
  • Enum Constant Details

  • Field Details

    • textID

      public final String textID
      Locale text ID: "devcap." + {@link #name()}.
    • description

      public final String description
      The English description.
  • Method Details

    • values

      public static EnvProps.ClientCapability[] 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 EnvProps.ClientCapability 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
    • getEnglishDescription

      public final String getEnglishDescription()
      Gets the English description.
      Returns:
      The English description.
    • getLocalizedDescription

      public final String getLocalizedDescription()
      Gets the localized description.
      Returns:
      The localized description, if any, otherwise the English description.
    • isSupported

      public final boolean isSupported(EnvProps env)
      Returns if supported.
      Parameters:
      env - The environment instance.
      Returns:
      The supported flag. In case of exception, these are logged as warnings and false is returned.