Class MatchingRuleAssertionFilter
- java.lang.Object
-
- org.apache.directory.ldap.client.api.search.AbstractFilter
-
- org.apache.directory.ldap.client.api.search.MatchingRuleAssertionFilter
-
- All Implemented Interfaces:
Filter
class MatchingRuleAssertionFilter extends AbstractFilter
A class to represent the extensible matching filter.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description MatchingRuleAssertionFilter(String attribute, String value, FilterOperator operator)Creates a new instance of MatchingRuleAssertionFilter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuilderbuild(StringBuilder builder)Constructs a String representation of a Filterstatic MatchingRuleAssertionFilterextensible(String value)Creates a new instance of MatchingRuleAssertionFilter without an attribute.static MatchingRuleAssertionFilterextensible(String attribute, String value)Creates an extensible filterMatchingRuleAssertionFiltersetMatchingRule(String matchingRule)Sets the matching rule to use.MatchingRuleAssertionFilteruseDnAttributes()If set, the dn attributes will be included in the matching.-
Methods inherited from class org.apache.directory.ldap.client.api.search.AbstractFilter
build
-
-
-
-
Constructor Detail
-
MatchingRuleAssertionFilter
MatchingRuleAssertionFilter(String attribute, String value, FilterOperator operator)
Creates a new instance of MatchingRuleAssertionFilter.- Parameters:
attribute- The attribute to testvalue- The value to test foroperator- The FilterOperator
-
-
Method Detail
-
extensible
public static MatchingRuleAssertionFilter extensible(String value)
Creates a new instance of MatchingRuleAssertionFilter without an attribute.- Parameters:
value- The value to test for- Returns:
- A new MatchingRuleAssertionFilter
-
extensible
public static MatchingRuleAssertionFilter extensible(String attribute, String value)
Creates an extensible filter- Parameters:
attribute- The attribute to testvalue- The value to test for- Returns:
- A new MatchingRuleAssertionFilter
-
setMatchingRule
public MatchingRuleAssertionFilter setMatchingRule(String matchingRule)
Sets the matching rule to use. Can be either a name or an OID string.- Parameters:
matchingRule- The matching rule to use- Returns:
- This filter
-
useDnAttributes
public MatchingRuleAssertionFilter useDnAttributes()
If set, the dn attributes will be included in the matching.- Returns:
- This filter
-
build
public StringBuilder build(StringBuilder builder)
Constructs a String representation of a Filter- Parameters:
builder- The current buffer containing the on going representation of the filter- Returns:
- The constructed String
-
-