|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.xdbm.search.impl.SubstringEvaluator<ID>
public class SubstringEvaluator<ID>
Evaluates substring filter assertions on an entry.
Constructor Summary | |
---|---|
SubstringEvaluator(org.apache.directory.shared.ldap.filter.SubstringNode node,
Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Creates a new SubstringEvaluator for substring expressions. |
Method Summary | |
---|---|
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.SubstringNode |
getExpression()
Gets the expression used by this expression Evaluator. |
java.util.regex.Pattern |
getPattern()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubstringEvaluator(org.apache.directory.shared.ldap.filter.SubstringNode node, Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db, org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) throws java.lang.Exception
node
- the substring expression nodedb
- the database this evaluator usesregistries
- the set of registries
java.lang.Exception
- if there are failures accessing resources and the dbMethod Detail |
---|
public boolean evaluate(IndexEntry<?,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry) throws java.lang.Exception
Evaluator
evaluate
in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
indexEntry
- the index record of the entry to evaluate
java.lang.Exception
- if there are faults during evaluationpublic boolean evaluateId(ID id) throws java.lang.Exception
Evaluator
evaluateId
in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
id
- the identifier for the candidate entry
java.lang.Exception
- if there are faults during evaluationpublic boolean evaluateEntry(org.apache.directory.shared.ldap.entry.ServerEntry entry) throws java.lang.Exception
Evaluator
evaluateEntry
in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
entry
- the candidate entry
java.lang.Exception
- if there are faults during evaluationpublic java.util.regex.Pattern getPattern()
public org.apache.directory.shared.ldap.filter.SubstringNode getExpression()
Evaluator
getExpression
in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |