Enum UsageEnum
- All Implemented Interfaces:
Serializable, Comparable<UsageEnum>
Type safe enum for an AttributeType definition's usage string. This can be
take one of the following four values:
- userApplications
- directoryOperation
- distributedOperation
- dSAOperation
- Author:
- Apache Directory Project
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionvalue for attributes with directoryOperation usagevalue for attributes with distributedOperation usagevalue for attributes with dSAOperation usagevalue for attributes with userApplications usage -
Method Summary
Modifier and TypeMethodDescriptionstatic UsageEnumGets the enumeration type for the attributeType usage string regardless of case.intgetValue()render()Get the string representation for UsageEnum, which will be used by the AttributeType renderingstatic StringGet the string representation for UsageEnum, which will be used by the AttributeType renderingstatic UsageEnumReturns the enum constant of this type with the specified name.static UsageEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USER_APPLICATIONS
value for attributes with userApplications usage -
DIRECTORY_OPERATION
value for attributes with directoryOperation usage -
DISTRIBUTED_OPERATION
value for attributes with distributedOperation usage -
DSA_OPERATION
value for attributes with dSAOperation 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
-
getValue
public int getValue()- Returns:
- The value associated with the current element.
-
getUsage
-
render
-
render
Get the string representation for UsageEnum, which will be used by the AttributeType rendering- Returns:
- The rendering stringe
-