Class AttributeValueAssertionFilter
- java.lang.Object
-
- org.apache.directory.ldap.client.api.search.AbstractFilter
-
- org.apache.directory.ldap.client.api.search.AttributeValueAssertionFilter
-
- All Implemented Interfaces:
Filter
final class AttributeValueAssertionFilter extends AbstractFilter
A class to represent the various filters that take a value, like =, <=, >= or ~=.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttributeValueAssertionFilterapproximatelyEqual(String attribute, String value)Creates an Approximate Filter : ( <attribute> ~= <value> )StringBuilderbuild(StringBuilder builder)Constructs a String representation of a Filterstatic AttributeValueAssertionFilterequal(String attribute, String value)Creates an equal Filter : ( <attribute> = <value> )static AttributeValueAssertionFiltergreaterThanOrEqual(String attribute, String value)Creates a Greater Than Or Equal Filter : ( <attribute> >= <value> )static AttributeValueAssertionFilterlessThanOrEqual(String attribute, String value)Creates a Less Than Or Equal Filter : ( <attribute> <= <value> )-
Methods inherited from class org.apache.directory.ldap.client.api.search.AbstractFilter
build
-
-
-
-
Method Detail
-
approximatelyEqual
public static AttributeValueAssertionFilter approximatelyEqual(String attribute, String value)
Creates an Approximate Filter : ( <attribute> ~= <value> )- Parameters:
attribute- The AttributeTypevalue- The Value- Returns:
- An instance of the Approximate Filter
-
equal
public static AttributeValueAssertionFilter equal(String attribute, String value)
Creates an equal Filter : ( <attribute> = <value> )- Parameters:
attribute- The AttributeTypevalue- The Value- Returns:
- An instance of the Equal Filter
-
greaterThanOrEqual
public static AttributeValueAssertionFilter greaterThanOrEqual(String attribute, String value)
Creates a Greater Than Or Equal Filter : ( <attribute> >= <value> )- Parameters:
attribute- The AttributeTypevalue- The Value- Returns:
- An instance of the Greater Than Or Equal Filter
-
lessThanOrEqual
public static AttributeValueAssertionFilter lessThanOrEqual(String attribute, String value)
Creates a Less Than Or Equal Filter : ( <attribute> <= <value> )- Parameters:
attribute- The AttributeTypevalue- The Value- Returns:
- An instance of the Less Than Or Equal 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
-
-