1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.directory.server.xdbm.search.evaluator;
21
22
23 import org.apache.directory.api.ldap.model.entry.Entry;
24 import org.apache.directory.api.ldap.model.exception.LdapException;
25 import org.apache.directory.api.ldap.model.filter.UndefinedNode;
26 import org.apache.directory.server.core.api.partition.PartitionTxn;
27 import org.apache.directory.server.xdbm.IndexEntry;
28 import org.apache.directory.server.xdbm.search.Evaluator;
29
30
31
32
33
34
35
36 public class EmptyEvaluator implements Evaluator<UndefinedNode>
37 {
38
39
40
41 public EmptyEvaluator()
42 {
43 }
44
45
46
47
48
49 public boolean evaluate( PartitionTxn partitionTxn, IndexEntry<?, String> indexEntry ) throws LdapException
50 {
51 return false;
52 }
53
54
55
56
57
58 public boolean evaluate( Entry entry ) throws LdapException
59 {
60 return false;
61 }
62
63
64
65
66
67
68
69 public UndefinedNode getExpression()
70 {
71 return UndefinedNode.UNDEFINED_NODE;
72 }
73
74
75
76
77
78 public String toString( String tabs )
79 {
80 StringBuilder sb = new StringBuilder();
81
82 sb.append( tabs ).append( "EmptyEvaluator\n" );
83
84 return sb.toString();
85 }
86
87
88
89
90
91 public String toString()
92 {
93 return toString( "" );
94 }
95 }