Package com.sun.identity.sm
Enum AttributeSchema.Type
- java.lang.Object
-
- java.lang.Enum<AttributeSchema.Type>
-
- com.sun.identity.sm.AttributeSchema.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<AttributeSchema.Type>
- Enclosing class:
- AttributeSchema
public static enum AttributeSchema.Type extends Enum<AttributeSchema.Type>
The classType
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 bySyntax
. Currently defined schema attribute types areSINGLE
,LIST
,SINGLE_CHOICE
,MULTIPLE_CHOICE
,SIGNATURE
andVALIDATOR
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LIST
TheLIST
attribute type specifies that the attribute can have multiple values, i.e., multi-valued attribute.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.SINGLE
TheSINGLE
attribute type specifies that the attribute can have only a single value.SINGLE_CHOICE
TheSINGLE_CHOICE
attribute type specifies that the attribute can have value defined by thegetChoiceValues
method ofAttributeSchema
.VALIDATOR
TheVALIDATOR
attribute type specifies that the attribute defines a attribute validator plugin.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
The method returns the string representation of the schema attribute type.static AttributeSchema.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static AttributeSchema.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE
public static final AttributeSchema.Type SINGLE
TheSINGLE
attribute type specifies that the attribute can have only a single value.
-
LIST
public static final AttributeSchema.Type LIST
TheLIST
attribute type specifies that the attribute can have multiple values, i.e., multi-valued attribute.
-
SINGLE_CHOICE
public static final AttributeSchema.Type SINGLE_CHOICE
TheSINGLE_CHOICE
attribute type specifies that the attribute can have value defined by thegetChoiceValues
method ofAttributeSchema
.
-
MULTIPLE_CHOICE
public static final AttributeSchema.Type MULTIPLE_CHOICE
TheMULTIPLE_CHOICE
attribute type specifies that the attribute can have multiple values defined by thegetChoiceValues
method ofAttributeSchema
.
-
SIGNATURE
public static final AttributeSchema.Type SIGNATURE
TheSIGNATURE
attribute type specifies that the attribute is a signing attribute.
-
VALIDATOR
public static final AttributeSchema.Type VALIDATOR
TheVALIDATOR
attribute type specifies that the attribute defines a attribute validator plugin.
-
-
Method Detail
-
values
public static AttributeSchema.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AttributeSchema.Type c : AttributeSchema.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeSchema.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String 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
-
-