Package com.unboundid.ldap.sdk.schema
Enum 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe "directoryOperation" attribute usage.The "distributedOperation" attribute usage.The "dSAOperation" attribute usage.The "userApplications" attribute usage. -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeUsageRetrieves the attribute usage value with the specified name.getName()Retrieves the name of this attribute usage.booleanIndicates whether this is an operational attribute usage.toString()Retrieves a string representation of this attribute usage.static AttributeUsageReturns the enum constant of this type with the specified name.static AttributeUsage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USER_APPLICATIONS
The "userApplications" attribute usage. -
DIRECTORY_OPERATION
The "directoryOperation" attribute usage. -
DISTRIBUTED_OPERATION
The "distributedOperation" attribute usage. -
DSA_OPERATION
The "dSAOperation" attribute usage.
-
-
Method Details
-
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
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
-
getName
Retrieves the name of this attribute usage.- Returns:
- The name of this attribute usage.
-
isOperational
Indicates whether this is an operational attribute usage.- Returns:
trueif 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 benull.- Returns:
- The attribute usage with the specified name, or
nullif there is no usage with the given name.
-
toString
Retrieves a string representation of this attribute usage.- Overrides:
toStringin classEnum<AttributeUsage>- Returns:
- A string representation of this attribute usage.
-