org.apache.directory.server.xdbm.search.impl
Class SubstringEvaluator

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

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

Evaluates substring filter assertions on an entry.

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

Constructor Summary
SubstringEvaluator(org.apache.directory.shared.ldap.filter.SubstringNode node, Store<ServerEntry> db, Registries registries)
          Creates a new SubstringEvaluator for substring expressions.
 
Method Summary
 boolean evaluate(IndexEntry<?,ServerEntry> indexEntry)
           
 boolean evaluate(java.lang.Long id)
           
 boolean evaluate(ServerEntry entry)
           
 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<ServerEntry> db,
                          Registries registries)
                   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<?,ServerEntry> indexEntry)
                 throws java.lang.Exception
Specified by:
evaluate in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,ServerEntry>
Throws:
java.lang.Exception

evaluate

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

evaluate

public boolean evaluate(ServerEntry entry)
                 throws java.lang.Exception
Specified by:
evaluate in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,ServerEntry>
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,ServerEntry>


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