public class ExpressionEvaluator extends Object implements Evaluator
Constructor and Description |
---|
ExpressionEvaluator(LeafEvaluator leafEvaluator)
Creates a top level Evaluator where leaves are delegated to a leaf node
evaluator which is already provided.
|
ExpressionEvaluator(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Creates a top level Evaluator where leaves are delegated to a leaf node
evaluator which will be created.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(org.apache.directory.api.ldap.model.filter.ExprNode node,
org.apache.directory.api.ldap.model.name.Dn dn,
org.apache.directory.api.ldap.model.entry.Entry entry)
Evaluates a candidate to determine if a filter expression selects it.
|
LeafEvaluator |
getLeafEvaluator()
Gets the leaf evaluator used by this top level expression evaluator.
|
public ExpressionEvaluator(LeafEvaluator leafEvaluator)
leafEvaluator
- handles leaf node evaluation.public ExpressionEvaluator(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
schemaManager
- The server schemaManagerpublic LeafEvaluator getLeafEvaluator()
public boolean evaluate(org.apache.directory.api.ldap.model.filter.ExprNode node, org.apache.directory.api.ldap.model.name.Dn dn, org.apache.directory.api.ldap.model.entry.Entry entry) throws org.apache.directory.api.ldap.model.exception.LdapException
evaluate
in interface Evaluator
node
- the filter expression to evaluate on the candidatedn
- the normalized distinguished name of the entry being testedentry
- the entry to evaluateorg.apache.directory.api.ldap.model.exception.LdapException
- if there is a database fault during evaluationCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.