org.apache.turbine.services.intake.validator
Interface Validator

All Known Implementing Classes:
DefaultValidator

Deprecated. Use the Fulcrum Intake component instead.

public interface Validator

Validator api.

Version:
$Id: Validator.java,v 1.8 2003/10/14 12:17:25 epugh Exp $
Author:
John McNally

Field Summary
static java.lang.String FLEXIBLE_RULE_NAME
          Deprecated. "flexible" Rule, used in DateFormat Validator
static java.lang.String FORMAT_RULE_NAME
          Deprecated. "format" Rule, used in DateFormat Validator
static java.lang.String INVALID_NUMBER_RULE_NAME
          Deprecated. "invalidNumber" Rule, used in the various Number Validators
static java.lang.String MASK_RULE_NAME
          Deprecated. "mask" Rule, used in StringValidator
static java.lang.String MAX_LENGTH_RULE_NAME
          Deprecated. "maxLength" Rule, used in all validators
static java.lang.String MAX_VALUE_RULE_NAME
          Deprecated. "maxValue" Rule, used in the various Number Validators
static java.lang.String MIN_LENGTH_RULE_NAME
          Deprecated. "minLength" Rule, used in all validators
static java.lang.String MIN_VALUE_RULE_NAME
          Deprecated. "minValue" Rule, used in the various Number Validators
static java.lang.String REQUIRED_RULE_NAME
          Deprecated. "required" Rule, used in all validators
 
Method Summary
 void assertValidity(java.lang.String testValue)
          Deprecated. Determine whether a testValue meets the criteria specified in the constraints defined for this validator
 java.lang.String getMessage()
          Deprecated. Get the last error message resulting from invalid input.
 boolean isValid(java.lang.String testValue)
          Deprecated. Determine whether a testValue meets the criteria specified in the constraints defined for this validator
 

Field Detail

FLEXIBLE_RULE_NAME

public static final java.lang.String FLEXIBLE_RULE_NAME
Deprecated. 
"flexible" Rule, used in DateFormat Validator

See Also:
Constant Field Values

FORMAT_RULE_NAME

public static final java.lang.String FORMAT_RULE_NAME
Deprecated. 
"format" Rule, used in DateFormat Validator

See Also:
Constant Field Values

INVALID_NUMBER_RULE_NAME

public static final java.lang.String INVALID_NUMBER_RULE_NAME
Deprecated. 
"invalidNumber" Rule, used in the various Number Validators

See Also:
Constant Field Values

MASK_RULE_NAME

public static final java.lang.String MASK_RULE_NAME
Deprecated. 
"mask" Rule, used in StringValidator

See Also:
Constant Field Values

MAX_LENGTH_RULE_NAME

public static final java.lang.String MAX_LENGTH_RULE_NAME
Deprecated. 
"maxLength" Rule, used in all validators

See Also:
Constant Field Values

MAX_VALUE_RULE_NAME

public static final java.lang.String MAX_VALUE_RULE_NAME
Deprecated. 
"maxValue" Rule, used in the various Number Validators

See Also:
Constant Field Values

MIN_LENGTH_RULE_NAME

public static final java.lang.String MIN_LENGTH_RULE_NAME
Deprecated. 
"minLength" Rule, used in all validators

See Also:
Constant Field Values

MIN_VALUE_RULE_NAME

public static final java.lang.String MIN_VALUE_RULE_NAME
Deprecated. 
"minValue" Rule, used in the various Number Validators

See Also:
Constant Field Values

REQUIRED_RULE_NAME

public static final java.lang.String REQUIRED_RULE_NAME
Deprecated. 
"required" Rule, used in all validators

See Also:
Constant Field Values
Method Detail

isValid

public boolean isValid(java.lang.String testValue)
Deprecated. 
Determine whether a testValue meets the criteria specified in the constraints defined for this validator

Parameters:
testValue - a String to be tested
Returns:
true if valid, false otherwise

assertValidity

public void assertValidity(java.lang.String testValue)
                    throws ValidationException
Deprecated. 
Determine whether a testValue meets the criteria specified in the constraints defined for this validator

Parameters:
testValue - a String to be tested
Throws:
ValidationException - containing an error message if the testValue did not pass the validation tests.

getMessage

public java.lang.String getMessage()
Deprecated. 
Get the last error message resulting from invalid input.

Returns:
a String message, or the empty String "".


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