Enum MatchingRuleEnum
- All Implemented Interfaces:
Serializable, Comparable<MatchingRuleEnum>
Type safe enum for a matching rule's comparator and normalizer component
usage string. This can be take one of the following three values:
- ORDERING
- EQUALITY
- SUBSTRING
- Author:
- Apache Directory Project
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchingRuleEnumGets the enumeration type for the usage string regardless of case.intgetValue()static MatchingRuleEnumReturns the enum constant of this type with the specified name.static MatchingRuleEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ORDERING
value for ordering usage -
EQUALITY
value for equality usage -
SUBSTRING
value for substring 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
Gets the enumeration type for the usage string regardless of case.- Parameters:
matchingRule- the usage string- Returns:
- the matchingRule enumeration type
-