01: package net.bagaluten.jca.lucene.connector;
02:
03: import java.io.Serializable;
04:
05: public class QueryField implements Serializable, Comparable<QueryField> {
06:
07: private static final long serialVersionUID = -1234151267076929668L;
08:
09: private boolean date;
10:
11: private String name;
12:
13: public QueryField(String name) {
14: this .name = name;
15: }
16:
17: public QueryField(String name, boolean isDate) {
18: date = isDate;
19: }
20:
21: public boolean isDate() {
22: return date;
23: }
24:
25: public String getName() {
26: return name;
27: }
28:
29: public int compareTo(QueryField o) {
30:
31: if (name != null) {
32: return name.compareTo(o.name);
33: }
34: return 0;
35: }
36: }
|