Package net.shibboleth.sp.ddf
Enum Class DDF.DDFType
- All Implemented Interfaces:
Serializable,Comparable<DDF.DDFType>,Constable
- Enclosing class:
- DDF
Type enum.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn empty node with no value.A floating point value.An integral value of no more than 32-bits.An ordered list.An integral value of no more than 64-bits.A null node.A string value.A string that cannot be assumed to be UTF-8 (see above docs).A structure with named children. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Get the type value.static DDF.DDFTypevalueOf(int val) Convert an integer into the corresponding enum value.static DDF.DDFTypeReturns the enum constant of this class with the specified name.static DDF.DDFType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DDF_NULL
A null node. -
DDF_EMPTY
An empty node with no value. -
DDF_STRING
A string value. -
DDF_INT
An integral value of no more than 32-bits. -
DDF_FLOAT
A floating point value. -
DDF_STRUCT
A structure with named children. -
DDF_LIST
An ordered list. -
DDF_STRING_UNSAFE
A string that cannot be assumed to be UTF-8 (see above docs). -
DDF_LONG
An integral value of no more than 64-bits.
-
-
Field Details
-
value
private final int valueType value.
-
-
Constructor Details
-
DDFType
private DDFType(int val) Constructor.- Parameters:
val- value of the type enum
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue()Get the type value.- Returns:
- type value
-
valueOf
Convert an integer into the corresponding enum value.- Parameters:
val- input type- Returns:
- enum constant
- Throws:
IllegalArgumentException- if the type is out of range
-