| Modifier and Type | Field and Description |
|---|---|
private org.apache.directory.api.ldap.model.schema.AttributeType |
attributeType
The AttributeType we will use for the evaluation
|
private Store |
db
Database used while evaluating candidates
|
private Index<java.lang.String,java.lang.String> |
idx
The index to use if any
|
private org.apache.directory.api.ldap.model.filter.SubstringNode |
node
The Substring expression
|
private org.apache.directory.api.ldap.model.schema.Normalizer |
normalizer
The associated normalizer
|
private java.util.regex.Pattern |
regex
The regular expression generated for the SubstringNode pattern
|
private org.apache.directory.api.ldap.model.schema.SchemaManager |
schemaManager
Reference to the SchemaManager
|
| 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<?,java.lang.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.
|
java.util.regex.Pattern |
getPattern() |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String tabs)
Pretty-print an Evaluator
|
private final Store db
private final org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager
private final org.apache.directory.api.ldap.model.filter.SubstringNode node
private final java.util.regex.Pattern regex
private final org.apache.directory.api.ldap.model.schema.AttributeType attributeType
private final org.apache.directory.api.ldap.model.schema.Normalizer normalizer
private final Index<java.lang.String,java.lang.String> idx
public SubstringEvaluator(org.apache.directory.api.ldap.model.filter.SubstringNode node,
Store db,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
throws java.lang.Exception
node - the substring expression nodedb - the database this evaluator usesschemaManager - the schema managerjava.lang.Exception - if there are failures accessing resources and the dbpublic boolean evaluate(IndexEntry<?,java.lang.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 java.lang.Exception
Evaluatorpublic java.util.regex.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 java.lang.String toString(java.lang.String tabs)
Evaluatorpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()