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.xdbm.IndexEntry;
27 import org.apache.directory.server.xdbm.Store;
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 private final Store db;
40
41
42
43
44
45
46 public EmptyEvaluator( Store db )
47 {
48 this.db = db;
49 }
50
51
52
53
54
55 public boolean evaluate( IndexEntry<?, String> indexEntry ) throws LdapException
56 {
57 return false;
58 }
59
60
61
62
63
64 public boolean evaluate( Entry entry ) throws Exception
65 {
66 return false;
67 }
68
69
70
71
72
73
74
75 public UndefinedNode getExpression()
76 {
77 return null;
78 }
79
80
81
82
83
84 public String toString( String tabs )
85 {
86 StringBuilder sb = new StringBuilder();
87
88 sb.append( tabs ).append( "EmptyEvaluator\n" );
89
90 return sb.toString();
91 }
92
93
94
95
96
97 public String toString()
98 {
99 return toString( "" );
100 }
101 }