01: package newprocess.validation;
02:
03: import newprocess.ConditionProxy;
04:
05: /**
06: * @author sh
07: *
08: */
09: public class ConditionProxyValidatorImpl implements
10: ConditionProxyValidator {
11:
12: // singleton
13: public static final ConditionProxyValidatorImpl INSTANCE = new ConditionProxyValidatorImpl();
14:
15: /**
16: * validates the condition of the Proxy
17: * @param value
18: * @return
19: */
20: public boolean validateCondition(ConditionProxy proxy) {
21: if (proxy.getCondition() == null)
22: return false;
23: return true;
24: }
25: }
|