Package org.ldaptive.schema
Enum AttributeUsage
- All Implemented Interfaces:
Serializable,Comparable<AttributeUsage>
Enum for an attribute usage schema element.
AttributeUsage =
"userApplications" /
"directoryOperation" /
"distributedOperation" / ; DSA-shared
"dSAOperation" ; DSA-specific, value depends on server
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiondirectory operation.distributed operation.dSA operation.user applications. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringName of this attribute usage.private final booleanWhether this attribute usage is operational. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAttributeUsage(String s, boolean b) Creates a new attribute usage. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name.booleanWhether this attribute usage is operational.static AttributeUsageReturns the attribute usage for the supplied string name.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
user applications. -
DIRECTORY_OPERATION
directory operation. -
DISTRIBUTED_OPERATION
distributed operation. -
DSA_OPERATION
dSA operation.
-
-
Field Details
-
name
Name of this attribute usage. -
operational
private final boolean operationalWhether this attribute usage is operational.
-
-
Constructor Details
-
AttributeUsage
Creates a new attribute usage.- Parameters:
s- name of this usageb- whether this usage is operational
-
-
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
Returns the name.- Returns:
- attribute usage name
-
isOperational
public boolean isOperational()Whether this attribute usage is operational.- Returns:
- whether this attribute usage is operational
-
parse
Returns the attribute usage for the supplied string name.- Parameters:
s- case-insensitive name to find attribute usage for- Returns:
- attribute usage or null if name cannot be found
-