1 5 package com.opensymphony.workflow.query; 6 7 8 19 public class FieldExpression extends Expression { 20 22 24 27 public final static int EQUALS = 1; 28 29 32 public final static int LT = 2; 33 34 37 public final static int GT = 3; 38 39 42 public final static int NOT_EQUALS = 5; 43 44 46 49 public final static int OWNER = 1; 50 51 54 public final static int START_DATE = 2; 55 56 59 public final static int FINISH_DATE = 3; 60 61 64 public final static int ACTION = 4; 65 66 69 public final static int STEP = 5; 70 71 74 public final static int CALLER = 6; 75 76 79 public final static int STATUS = 7; 80 81 84 public final static int NAME = 8; 85 86 89 public final static int STATE = 9; 90 91 93 98 public final static int HISTORY_STEPS = 1; 99 100 105 public final static int CURRENT_STEPS = 2; 106 107 112 public final static int ENTRY = 3; 113 114 116 private Object value; 117 private int context; 118 private int field; 119 private int operator; 120 121 123 public FieldExpression() { 124 } 125 126 public FieldExpression(int field, int context, int operator, Object value) { 127 this.context = context; 128 this.operator = operator; 129 this.field = field; 130 this.value = value; 131 } 132 133 public FieldExpression(int field, int context, int operator, Object value, boolean negate) { 134 this(field, context, operator, value); 135 super.negate = negate; 136 } 137 138 140 public int getContext() { 141 return context; 142 } 143 144 public int getField() { 145 return field; 146 } 147 148 public boolean isNested() { 149 return false; 150 } 151 152 public int getOperator() { 153 return operator; 154 } 155 156 public Object getValue() { 157 return value; 158 } 159 } 160 | Popular Tags |