Enum AttributeUsage

java.lang.Object
java.lang.Enum<AttributeUsage>
com.unboundid.ldap.sdk.schema.AttributeUsage
All Implemented Interfaces:
Serializable, Comparable<AttributeUsage>, java.lang.constant.Constable

This enum defines the set of attribute type usages that are defined in the LDAP protocol.
  • Enum Constant Details

  • Method Details

    • values

      public static AttributeUsage[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AttributeUsage 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 name
      NullPointerException - if the argument is null
    • getName

      Retrieves the name of this attribute usage.
      Returns:
      The name of this attribute usage.
    • isOperational

      public boolean isOperational()
      Indicates whether this is an operational attribute usage.
      Returns:
      true if this is an operational attribute usage.
    • forName

      Retrieves the attribute usage value with the specified name.
      Parameters:
      name - The name of the attribute usage to retrieve. It must not be null.
      Returns:
      The attribute usage with the specified name, or null if there is no usage with the given name.
    • toString

      Retrieves a string representation of this attribute usage.
      Overrides:
      toString in class Enum<AttributeUsage>
      Returns:
      A string representation of this attribute usage.