Package org.forgerock.opendj.ldap
Interface Assertion
public interface Assertion
A compiled attribute value assertion.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AssertionAn assertion that always return UNDEFINED for matches and that creates a match all query. -
Method Summary
Modifier and TypeMethodDescription<T> TcreateIndexQuery(IndexQueryFactory<T> factory) Returns an index query appropriate for the provided attribute value assertion.matches(ByteSequence normalizedAttributeValue) Indicates whether the provided attribute value should be considered a match for this assertion value according to the matching rule.
-
Field Details
-
UNDEFINED_ASSERTION
An assertion that always return UNDEFINED for matches and that creates a match all query.
-
-
Method Details
-
matches
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
Returns an index query appropriate for the provided attribute value assertion.- Type Parameters:
T- The type of index query created by thefactory.- Parameters:
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.
-