com.opensymphony.xwork2.validator
Interface ShortCircuitableValidator

All Known Implementing Classes:
AbstractRangeValidator, ConditionalVisitorFieldValidator, ConversionErrorFieldValidator, DateRangeFieldValidator, DoubleRangeFieldValidator, EmailValidator, ExpressionValidator, FieldExpressionValidator, FieldValidatorSupport, IntRangeFieldValidator, LongRangeFieldValidator, RegexFieldValidator, RepopulateConversionErrorFieldValidatorSupport, RequiredFieldValidator, RequiredStringValidator, ShortRangeFieldValidator, StringLengthFieldValidator, URLValidator, ValidatorSupport, VisitorFieldValidator

public interface ShortCircuitableValidator

This interface should be implemented by validators that can short-circuit the validator queue that it is in.

Author:
Mark Woon

Method Summary
 boolean isShortCircuit()
          Gets whether this field validator should short circuit the validator queue it's in if validation fails.
 void setShortCircuit(boolean shortcircuit)
          Sets whether this field validator should short circuit the validator queue it's in if validation fails.
 

Method Detail

setShortCircuit

void setShortCircuit(boolean shortcircuit)
Sets whether this field validator should short circuit the validator queue it's in if validation fails.

Parameters:
shortcircuit - true if this field validator should short circuit on failure, false otherwise

isShortCircuit

boolean isShortCircuit()
Gets whether this field validator should short circuit the validator queue it's in if validation fails.

Returns:
true if this field validator should short circuit on failure, false otherwise


Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.