public class OrEvaluator<ID> extends Object implements Evaluator<org.apache.directory.shared.ldap.filter.OrNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
| Constructor and Description |
|---|
OrEvaluator(org.apache.directory.shared.ldap.filter.OrNode 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.OrNode |
getExpression()
Gets the expression used by this expression Evaluator.
|
public boolean evaluate(IndexEntry<?,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry) throws Exception
Evaluatorevaluate in interface Evaluator<org.apache.directory.shared.ldap.filter.OrNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>indexEntry - the index record of the entry to evaluateException - if there are faults during evaluationpublic boolean evaluateId(ID id) throws Exception
EvaluatorevaluateId in interface Evaluator<org.apache.directory.shared.ldap.filter.OrNode,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
EvaluatorevaluateEntry in interface Evaluator<org.apache.directory.shared.ldap.filter.OrNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>entry - the candidate entryException - if there are faults during evaluationpublic org.apache.directory.shared.ldap.filter.OrNode getExpression()
EvaluatorgetExpression in interface Evaluator<org.apache.directory.shared.ldap.filter.OrNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.