public class AndEvaluator<ID> extends Object implements Evaluator<org.apache.directory.shared.ldap.filter.AndNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
Constructor and Description |
---|
AndEvaluator(org.apache.directory.shared.ldap.filter.AndNode node,
List<Evaluator<? extends org.apache.directory.shared.ldap.filter.ExprNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>> evaluators) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(IndexEntry<?,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry)
Evaluates a candidate to determine if a filter expression selects it.
|
boolean |
evaluateEntry(org.apache.directory.shared.ldap.entry.ServerEntry entry)
Evaluates whether or not a candidate, satisfies the expression
associated with this Evaluator .
|
boolean |
evaluateId(ID id)
Evaluates whether or not a candidate, specified by an id, satisfies the
expression associated with this Evaluator .
|
org.apache.directory.shared.ldap.filter.AndNode |
getExpression()
Gets the expression used by this expression Evaluator.
|
public boolean evaluateId(ID id) throws Exception
Evaluator
evaluateId
in interface Evaluator<org.apache.directory.shared.ldap.filter.AndNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
id
- the identifier for the candidate entryException
- if there are faults during evaluationpublic boolean evaluateEntry(org.apache.directory.shared.ldap.entry.ServerEntry entry) throws Exception
Evaluator
evaluateEntry
in interface Evaluator<org.apache.directory.shared.ldap.filter.AndNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
entry
- the candidate entryException
- if there are faults during evaluationpublic boolean evaluate(IndexEntry<?,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry) throws Exception
Evaluator
evaluate
in interface Evaluator<org.apache.directory.shared.ldap.filter.AndNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
indexEntry
- the index record of the entry to evaluateException
- if there are faults during evaluationpublic org.apache.directory.shared.ldap.filter.AndNode getExpression()
Evaluator
getExpression
in interface Evaluator<org.apache.directory.shared.ldap.filter.AndNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
Copyright © 2003-2013 Apache Software Foundation. All Rights Reserved.