Interface Assertion
-
- All Superinterfaces:
Cloneable
public interface Assertion extends Cloneable
A candidacy predicate which tests if an entry satisfies some condition before being returned by a search.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
assertCandidate(Entry entry)
Checks to see if a candidate is valid by asserting an arbitrary predicate against the candidate.
-
-
-
Method Detail
-
assertCandidate
boolean assertCandidate(Entry entry) throws NamingException
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
-
-