public class SubstringEvaluator extends Object implements Evaluator<org.apache.directory.api.ldap.model.filter.SubstringNode>
| Constructor and Description |
|---|
SubstringEvaluator(org.apache.directory.api.ldap.model.filter.SubstringNode node,
Store db,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Creates a new SubstringEvaluator for substring expressions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(org.apache.directory.api.ldap.model.entry.Entry entry)
Evaluates whether or not a candidate, satisfies the expression
associated with this Evaluator .
|
boolean |
evaluate(IndexEntry<?,String> indexEntryQM)
Evaluates a candidate to determine if a filter expression selects it.
|
org.apache.directory.api.ldap.model.filter.SubstringNode |
getExpression()
Gets the expression used by this expression Evaluator.
|
Pattern |
getPattern() |
String |
toString() |
String |
toString(String tabs)
Pretty-print an Evaluator
|
public SubstringEvaluator(org.apache.directory.api.ldap.model.filter.SubstringNode node,
Store db,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
throws Exception
node - the substring expression nodedb - the database this evaluator usesschemaManager - the schema managerException - if there are failures accessing resources and the dbpublic boolean evaluate(IndexEntry<?,String> indexEntryQM) throws org.apache.directory.api.ldap.model.exception.LdapException
Evaluatorevaluate in interface Evaluator<org.apache.directory.api.ldap.model.filter.SubstringNode>indexEntryQM - the index record of the entry to evaluateorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic boolean evaluate(org.apache.directory.api.ldap.model.entry.Entry entry)
throws Exception
Evaluatorpublic Pattern getPattern()
public org.apache.directory.api.ldap.model.filter.SubstringNode getExpression()
EvaluatorgetExpression in interface Evaluator<org.apache.directory.api.ldap.model.filter.SubstringNode>public String toString(String tabs)
EvaluatortoString in interface Evaluator<org.apache.directory.api.ldap.model.filter.SubstringNode>tabs - The tabs to add before the evaluatorObject.toString()public String toString()
toString in class ObjectObject.toString()Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.