01: /*
02: * Created on 17-Jul-2005
03: *
04: * TODO To change the template for this generated file go to
05: * Window - Preferences - Java - Code Style - Code Templates
06: */
07: package com.jofti.parser;
08:
09: import com.jofti.core.IPredicate;
10:
11: /**
12: *
13: *
14: * Representation of a predicate clause.
15: *
16: * @author xenephon (xenephon@jofti.com)
17: */
18: public class Predicate implements IPredicate {
19:
20: public int operator;
21: public String field;
22: public Object value;
23: public String alias;
24:
25: public String getField() {
26: return field;
27: }
28:
29: public String toString() {
30: return "( " + operator + " " + alias + " " + field + " "
31: + value + " )";
32: }
33:
34: public void setField(String field) {
35: this .field = field;
36: }
37:
38: public int getOperator() {
39: return operator;
40: }
41:
42: public void setOperator(int operator) {
43: this .operator = operator;
44: }
45:
46: public Object getValue() {
47: return value;
48: }
49:
50: public void setValue(Object value) {
51: this .value = value;
52: }
53:
54: public String getAlias() {
55: return alias;
56: }
57:
58: public void setAlias(String alias) {
59: this .alias = alias;
60: }
61:
62: public int getType() {
63: return 0;
64: }
65: }
|