org.apache.directory.server.xdbm.search.impl
Class SubstringEvaluator<ID>

java.lang.Object
  extended by org.apache.directory.server.xdbm.search.impl.SubstringEvaluator<ID>
All Implemented Interfaces:
Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>

public class SubstringEvaluator<ID>
extends java.lang.Object
implements Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>

Evaluates substring filter assertions on an entry.

Version:
$Rev: 927839 $
Author:
Apache Directory Project

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)
           
 boolean evaluateEntry(org.apache.directory.shared.ldap.entry.ServerEntry entry)
           
 boolean evaluateId(ID id)
           
 org.apache.directory.shared.ldap.filter.SubstringNode getExpression()
           
 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

SubstringEvaluator

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
Creates a new SubstringEvaluator for substring expressions.

Parameters:
node - the substring expression node
db - the database this evaluator uses
registries - the set of registries
Throws:
java.lang.Exception - if there are failures accessing resources and the db
Method Detail

evaluate

public boolean evaluate(IndexEntry<?,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry)
                 throws java.lang.Exception
Specified by:
evaluate in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
Throws:
java.lang.Exception

evaluateId

public boolean evaluateId(ID id)
                   throws java.lang.Exception
Specified by:
evaluateId in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
Throws:
java.lang.Exception

evaluateEntry

public boolean evaluateEntry(org.apache.directory.shared.ldap.entry.ServerEntry entry)
                      throws java.lang.Exception
Specified by:
evaluateEntry in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
Throws:
java.lang.Exception

getPattern

public java.util.regex.Pattern getPattern()

getExpression

public org.apache.directory.shared.ldap.filter.SubstringNode getExpression()
Specified by:
getExpression in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.