Interface Assertion
- All Superinterfaces:
Cloneable
A candidacy predicate which tests if an entry satisfies some condition before
being returned by a search.
- Author:
- Apache Directory Project
-
Method Summary
Modifier and TypeMethodDescriptionbooleanassertCandidate(Entry entry) Checks to see if a candidate is valid by asserting an arbitrary predicate against the candidate.
-
Method Details
-
assertCandidate
Checks to see if a candidate is valid by asserting an arbitrary predicate against the candidate. Where available entry will be provided however there is no guarantee. The entry's attributes are only provided if they were previously accessed. All assertions should handle cases where the entry argument is null.- Parameters:
entry- the entry if available- Returns:
- true if the candidate satisfies the predicate, false otherwise
- Throws:
NamingException- if an error occurs while asserting the predicate
-