Package org.ldaptive.schema
Enum Class AttributeUsage
- All Implemented Interfaces:
Serializable
,Comparable<AttributeUsage>
,Constable
Enum for an attribute usage schema element.
AttributeUsage = "userApplications" / "directoryOperation" / "distributedOperation" / ; DSA-shared "dSAOperation" ; DSA-specific, value depends on server
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiondirectory operation.distributed operation.dSA operation.user applications. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
Name of this attribute usage.private final boolean
Whether this attribute usage is operational. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
AttributeUsage
(String s, boolean b) Creates a new attribute usage. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name.boolean
Whether this attribute usage is operational.static AttributeUsage
Returns the attribute usage for the supplied string name.static AttributeUsage
Returns the enum constant of this class with the specified name.static AttributeUsage[]
values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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 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
-