Enum Class AttributeSchema.Type

java.lang.Object
java.lang.Enum<AttributeSchema.Type>
com.sun.identity.sm.AttributeSchema.Type
All Implemented Interfaces:
Serializable, Comparable<AttributeSchema.Type>, java.lang.constant.Constable
Enclosing class:
AttributeSchema

public static enum AttributeSchema.Type extends Enum<AttributeSchema.Type>
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 Constants
    Enum Constant
    Description
    The LIST attribute type specifies that the attribute can have multiple values, i.e., multi-valued attribute.
    The MULTIPLE_CHOICE attribute type specifies that the attribute can have multiple values defined by the getChoiceValues method of AttributeSchema.
    The SIGNATURE attribute type specifies that the attribute is a signing attribute.
    The SINGLE attribute type specifies that the attribute can have only a single value.
    The SINGLE_CHOICE attribute type specifies that the attribute can have value defined by the getChoiceValues method of AttributeSchema.
    The VALIDATOR attribute type specifies that the attribute defines a attribute validator plugin.
  • Method Summary

    Modifier and Type
    Method
    Description
    The method returns the string representation of the schema attribute type.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • SINGLE

      public static final AttributeSchema.Type SINGLE
      The SINGLE attribute type specifies that the attribute can have only a single value.
    • LIST

      public static final AttributeSchema.Type LIST
      The LIST attribute type specifies that the attribute can have multiple values, i.e., multi-valued attribute.
    • SINGLE_CHOICE

      public static final AttributeSchema.Type SINGLE_CHOICE
      The SINGLE_CHOICE attribute type specifies that the attribute can have value defined by the getChoiceValues method of AttributeSchema.
    • MULTIPLE_CHOICE

      public static final AttributeSchema.Type MULTIPLE_CHOICE
      The MULTIPLE_CHOICE attribute type specifies that the attribute can have multiple values defined by the getChoiceValues method of AttributeSchema.
    • SIGNATURE

      public static final AttributeSchema.Type SIGNATURE
      The SIGNATURE attribute type specifies that the attribute is a signing attribute.
    • VALIDATOR

      public static final AttributeSchema.Type VALIDATOR
      The VALIDATOR attribute type specifies that the attribute defines a attribute validator plugin.
  • Method Details

    • values

      public static AttributeSchema.Type[] 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 AttributeSchema.Type 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
    • toString

      public String toString()
      The method returns the string representation of the schema attribute type.
      Overrides:
      toString in class Enum<AttributeSchema.Type>
      Returns:
      String string representation of schema attribute type