1
2
3
4
5
6
7 package org.asyrinx.joey.om.condition;
8
9 /***
10 * @author takeshi
11 */
12 public class Expression implements IConditionLeaf {
13
14 /***
15 *
16 */
17 public Expression() {
18 super();
19 }
20
21 public Expression(String fieldName, String operator, Object value) {
22 super();
23 this.fieldName = fieldName;
24 this.operator = operator;
25 this.value = value;
26 }
27
28 private String fieldName;
29
30 private String operator;
31
32 private Object value;
33
34 /***
35 * @return Returns the fieldName.
36 */
37 public String getFieldName() {
38 return fieldName;
39 }
40
41 /***
42 * @param fieldName
43 * The fieldName to set.
44 */
45 public void setFieldName(String fieldName) {
46 this.fieldName = fieldName;
47 }
48
49 /***
50 * @return Returns the operator.
51 */
52 public String getOperator() {
53 return operator;
54 }
55
56 /***
57 * @param operator
58 * The operator to set.
59 */
60 public void setOperator(String operator) {
61 this.operator = operator;
62 }
63
64 /***
65 * @return Returns the value.
66 */
67 public Object getValue() {
68 return value;
69 }
70
71 /***
72 * @param value
73 * The value to set.
74 */
75 public void setValue(Object value) {
76 this.value = value;
77 }
78 }