org.apache.directory.server.xdbm.search.impl
Class SubstringEvaluator
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 nodedb - the database this evaluator usesregistries - the set of registries
- Throws:
java.lang.Exception - if there are failures accessing resources and the db
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.