Package org.forgerock.opendj.ldap.schema
Enum MatchingRule.MatchingRuleType
- java.lang.Object
-
- java.lang.Enum<MatchingRule.MatchingRuleType>
-
- org.forgerock.opendj.ldap.schema.MatchingRule.MatchingRuleType
-
- All Implemented Interfaces:
Serializable
,Comparable<MatchingRule.MatchingRuleType>
- Enclosing class:
- MatchingRule
public static enum MatchingRule.MatchingRuleType extends Enum<MatchingRule.MatchingRuleType>
Represents the types of matching rules, according to RFC 4517 section 4.1.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUALITY
A rule suitable for use as the equality matching rule (EQUALITY) of an attribute type.ORDERING
A rule suitable for use as the ordering matching rule (ORDERING) of an attribute type.SUBSTRING
A rule suitable for use as the substrings matching rule (SUBSTR) of an attribute type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MatchingRule.MatchingRuleType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MatchingRule.MatchingRuleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUALITY
public static final MatchingRule.MatchingRuleType EQUALITY
A rule suitable for use as the equality matching rule (EQUALITY) of an attribute type. Note that we consider approximate matching rules to be EQUALITY matching rules: although they implement a "fuzzy" type of equality, they are trying to decide if two values are equal.
-
ORDERING
public static final MatchingRule.MatchingRuleType ORDERING
A rule suitable for use as the ordering matching rule (ORDERING) of an attribute type.
-
SUBSTRING
public static final MatchingRule.MatchingRuleType SUBSTRING
A rule suitable for use as the substrings matching rule (SUBSTR) of an attribute type.
-
-
Method Detail
-
values
public static MatchingRule.MatchingRuleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MatchingRule.MatchingRuleType c : MatchingRule.MatchingRuleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MatchingRule.MatchingRuleType valueOf(String name)
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
-
-