01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.xwork.validator;
06:
07: /**
08: * This interface should be implemented by validators that can short-circuit the validator queue
09: * that it is in.
10: *
11: * @author Mark Woon
12: */
13: public interface ShortCircuitableValidator {
14:
15: /**
16: * Sets whether this field validator should short circuit the validator queue
17: * it's in if validation fails.
18: *
19: * @param shortcircuit true if this field validator should short circuit on
20: * failure, false otherwise
21: */
22: public void setShortCircuit(boolean shortcircuit);
23:
24: /**
25: * Gets whether this field validator should short circuit the validator queue
26: * it's in if validation fails.
27: *
28: * @return true if this field validator should short circuit on failure,
29: * false otherwise
30: */
31: public boolean isShortCircuit();
32: }
|