Enum Class DDF.DDFType

java.lang.Object
java.lang.Enum<DDF.DDFType>
net.shibboleth.sp.ddf.DDF.DDFType
All Implemented Interfaces:
Serializable, Comparable<DDF.DDFType>, Constable
Enclosing class:
DDF

public static enum DDF.DDFType extends Enum<DDF.DDFType>
Type enum.
  • Enum Constant Details

    • DDF_NULL

      public static final DDF.DDFType DDF_NULL
      A null node.
    • DDF_EMPTY

      public static final DDF.DDFType DDF_EMPTY
      An empty node with no value.
    • DDF_STRING

      public static final DDF.DDFType DDF_STRING
      A string value.
    • DDF_INT

      public static final DDF.DDFType DDF_INT
      An integral value of no more than 32-bits.
    • DDF_FLOAT

      public static final DDF.DDFType DDF_FLOAT
      A floating point value.
    • DDF_STRUCT

      public static final DDF.DDFType DDF_STRUCT
      A structure with named children.
    • DDF_LIST

      public static final DDF.DDFType DDF_LIST
      An ordered list.
    • DDF_STRING_UNSAFE

      public static final DDF.DDFType DDF_STRING_UNSAFE
      A string that cannot be assumed to be UTF-8 (see above docs).
    • DDF_LONG

      public static final DDF.DDFType DDF_LONG
      An integral value of no more than 64-bits.
  • Field Details

    • value

      private final int value
      Type value.
  • Constructor Details

    • DDFType

      private DDFType(int val)
      Constructor.
      Parameters:
      val - value of the type enum
  • Method Details

    • values

      public static DDF.DDFType[] 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 DDF.DDFType 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
    • getValue

      public int getValue()
      Get the type value.
      Returns:
      type value
    • valueOf

      public static DDF.DDFType valueOf(int val) throws IllegalArgumentException
      Convert an integer into the corresponding enum value.
      Parameters:
      val - input type
      Returns:
      enum constant
      Throws:
      IllegalArgumentException - if the type is out of range