java.lang .Object org.apache.turbine.services.intake.validator .FieldReference FieldReference public class FieldReference (Code) Helper Class to manage relations between fields. The following
comparisons are supported:
Name Valid Values Default Value
less-than
<name of other field>
greater-than
<name of other field>
less-than-or-equal
<name of other field>
greater-than-or-equal
<name of other field>
author: Thomas Vandahl version: $Id: DateStringValidator.java 534527 2007-05-02 16:10:59Z tv $
COMPARE_GT final public static int COMPARE_GT (Code) Integer value for ">" comparison
COMPARE_GTE final public static int COMPARE_GTE (Code) Integer value for ">=" comparison
COMPARE_LT final public static int COMPARE_LT (Code) Integer value for "<" comparison
COMPARE_LTE final public static int COMPARE_LTE (Code) Integer value for "<=" comparison
RANGE_GT final public static String RANGE_GT (Code) Rule name for ">" comparison
RANGE_GTE final public static String RANGE_GTE (Code) Rule name for ">=" comparison
RANGE_LT final public static String RANGE_LT (Code) Rule name for "<" comparison
RANGE_LTE final public static String RANGE_LTE (Code) Rule name for "<=" comparison
log final protected static Log log (Code) a local logger
FieldReference public FieldReference()(Code) Constructor
checkReferences public static void checkReferences(List fieldReferences, CompareCallback compareCallback, Object value, Group group) throws ValidationException (Code) Check the parsed value against the referenced fields
Parameters: fieldReferences - List of field references to checkParameters: compareCallback - Callback to the actual compare operationParameters: value - the parsed value of the related fieldParameters: group - the group the related field belongs tothrows: ValidationException -
getCompare public int getCompare()(Code) the comparison type
getCompareType public static int getCompareType(String key)(Code) Map the comparison strings to their numeric counterparts
Parameters: key - the
getFieldName public String getFieldName()(Code) the field name
setCompare public void setCompare(int compare)(Code) Parameters: compare - the comparison type to set
setFieldName public void setFieldName(String fieldName)(Code) Parameters: fieldName - the field name to set
setMessage public void setMessage(String message)(Code) Parameters: message - the message to set