Package com.sun.identity.sm
Enum Class AttributeSchema.Type
- All Implemented Interfaces:
Serializable
,Comparable<AttributeSchema.Type>
,java.lang.constant.Constable
- Enclosing class:
- AttributeSchema
The class
Type
defines the types of schema attributes and
provides static constants for these types. This could also be viewed as a
higher level structured data types like Set, List, etc. The primitive
data types are defined by Syntax
. Currently defined
schema attribute types are SINGLE
, LIST
,
SINGLE_CHOICE
, MULTIPLE_CHOICE
,
SIGNATURE
and VALIDATOR
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheLIST
attribute type specifies that the attribute can have multiple values, i.e., multi-valued attribute.TheMULTIPLE_CHOICE
attribute type specifies that the attribute can have multiple values defined by thegetChoiceValues
method ofAttributeSchema
.TheSIGNATURE
attribute type specifies that the attribute is a signing attribute.TheSINGLE
attribute type specifies that the attribute can have only a single value.TheSINGLE_CHOICE
attribute type specifies that the attribute can have value defined by thegetChoiceValues
method ofAttributeSchema
.TheVALIDATOR
attribute type specifies that the attribute defines a attribute validator plugin. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
The method returns the string representation of the schema attribute type.static AttributeSchema.Type
Returns the enum constant of this class with the specified name.static AttributeSchema.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SINGLE
TheSINGLE
attribute type specifies that the attribute can have only a single value. -
LIST
TheLIST
attribute type specifies that the attribute can have multiple values, i.e., multi-valued attribute. -
SINGLE_CHOICE
TheSINGLE_CHOICE
attribute type specifies that the attribute can have value defined by thegetChoiceValues
method ofAttributeSchema
. -
MULTIPLE_CHOICE
TheMULTIPLE_CHOICE
attribute type specifies that the attribute can have multiple values defined by thegetChoiceValues
method ofAttributeSchema
. -
SIGNATURE
TheSIGNATURE
attribute type specifies that the attribute is a signing attribute. -
VALIDATOR
TheVALIDATOR
attribute type specifies that the attribute defines a attribute validator plugin.
-
-
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
-
toString
The method returns the string representation of the schema attribute type.- Overrides:
toString
in classEnum<AttributeSchema.Type>
- Returns:
- String string representation of schema attribute type
-