Enum Class FeatureEnum

java.lang.Object
java.lang.Enum<FeatureEnum>
swiss.trustbroker.federation.xmlconfig.FeatureEnum
All Implemented Interfaces:
Serializable, Comparable<FeatureEnum>, Constable

public enum FeatureEnum extends Enum<FeatureEnum>
Configuration enabling toggle.
The enum values are lower case in the XSD to allow using the usual boolean true/false values. Potentially breaking changes:
  • Since 1.7.0 the values are accepted just in lower case (with 1.6.0 in any case, before only lower case).
  • Enum Constant Details

    • TRUE

      public static final FeatureEnum TRUE
      Enabled
    • FALSE

      public static final FeatureEnum FALSE
      Disabled. XTB will load and validate the configuration, but not use it.
    • INVALID

      public static final FeatureEnum INVALID
      Configuration invalid or not yet ready for enabling. XTB will not load the config.
  • Method Details

    • values

      public static FeatureEnum[] 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 FeatureEnum 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