Package org.forgerock.opendj.ldap
Interface Assertion
-
public interface AssertionA compiled attribute value assertion.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> TcreateIndexQuery(AttributeDescription attributeDescription, IndexQueryFactory<T> factory)Returns an index query appropriate for the provided attribute value assertion.default ConditionResultmatches(Attribute attribute)Indicates whether the provided attribute should be considered a match for this assertion value according to the matching rule.ConditionResultmatches(ByteString normalizedAttributeValue)Indicates whether the provided attribute value should be considered a match for this assertion value according to the matching rule.
-
-
-
Method Detail
-
matches
default ConditionResult matches(Attribute attribute)
Indicates whether the provided attribute should be considered a match for this assertion value according to the matching rule. This method will only be called when the assertion is compatible with the attribute's equality matching rule. Thus, implementations can safely use normalized values exposed by the attribute via methods likeAttribute.matchesAnyNormalizedValue(Predicate).- Parameters:
attribute- The attribute whose equality matching rule is compatible with this assertion.- Returns:
TRUEif the attribute should be considered a match for the provided assertion value,FALSEif it does not match, orUNDEFINEDif the result is undefined.
-
matches
ConditionResult matches(ByteString normalizedAttributeValue)
Indicates whether the provided attribute value should be considered a match for this assertion value according to the matching rule.- Parameters:
normalizedAttributeValue- The normalized attribute value.- Returns:
TRUEif the attribute value should be considered a match for the provided assertion value,FALSEif it does not match, orUNDEFINEDif the result is undefined.
-
createIndexQuery
<T> T createIndexQuery(AttributeDescription attributeDescription, IndexQueryFactory<T> factory) throws DecodeException
Returns an index query appropriate for the provided attribute value assertion.- Type Parameters:
T- The type of index query created by thefactory.- Parameters:
attributeDescription- The attribute description whose index should be queried.factory- The index query factory which should be used to construct the index query.- Returns:
- The index query appropriate for the provided attribute value assertion.
- Throws:
DecodeException- If an error occurs while generating the index query.
-
-