Enum Class Multivalued

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

public enum Multivalued extends Enum<Multivalued>
Handling of multi-values.
  • Enum Constant Details

    • STRING

      public static final Multivalued STRING
      List transformed to space-separated string. E.g. [ x, y ] becomes "x y".
    • LIST

      public static final Multivalued LIST
      Always a list.
    • ORIGINAL

      public static final Multivalued ORIGINAL
      Unwrap single element list. E.g. [ x ] becomes x, [ x, y ] remains.
    • ERROR

      public static final Multivalued ERROR
      Fail if multi-valued.
  • Method Details

    • values

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