org.apache.turbine.util.validation
Class InputValidator

java.lang.Object
  extended byorg.apache.turbine.util.validation.InputValidator
Direct Known Subclasses:
AlwaysTrueValidator, EmailValidator, NotEmpty

Deprecated. Use Intake or commons-validator

public abstract class InputValidator
extends java.lang.Object

Version:
$Id: InputValidator.java 264148 2005-08-29 14:21:04Z henning $
Author:
Mike Haberman

Field Summary
static boolean AllowNullInput
          Deprecated.  
static java.lang.String EmptyArgv
          Deprecated.  
static int NoMaxSize
          Deprecated.  
 
Constructor Summary
InputValidator()
          Deprecated. default Constructor,
InputValidator(boolean allowNullInput, int maxSize, java.lang.String argv)
          Deprecated. Constructor,
 
Method Summary
protected abstract  void check(java.lang.String input)
          Deprecated.  
 void checkInput(java.lang.String value)
          Deprecated.  
 java.lang.String getErrorMessage(java.lang.String input)
          Deprecated.  
abstract  java.lang.String getExpectedFormat()
          Deprecated.  
 boolean isValid(java.lang.String input)
          Deprecated.  
 void setAllowNullInput(boolean allowNullInput)
          Deprecated.  
 void setArgv(java.lang.String argv)
          Deprecated.  
 void setMaxSize(int maxSize)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AllowNullInput

public static final boolean AllowNullInput
Deprecated. 
See Also:
Constant Field Values

NoMaxSize

public static final int NoMaxSize
Deprecated. 
See Also:
Constant Field Values

EmptyArgv

public static final java.lang.String EmptyArgv
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

InputValidator

public InputValidator()
Deprecated. 
default Constructor,


InputValidator

public InputValidator(boolean allowNullInput,
                      int maxSize,
                      java.lang.String argv)
Deprecated. 
Constructor,

Method Detail

setAllowNullInput

public void setAllowNullInput(boolean allowNullInput)
Deprecated. 

setMaxSize

public void setMaxSize(int maxSize)
Deprecated. 

setArgv

public void setArgv(java.lang.String argv)
Deprecated. 

isValid

public boolean isValid(java.lang.String input)
Deprecated. 
Returns:
boolean, whether or not the input is valid

getErrorMessage

public java.lang.String getErrorMessage(java.lang.String input)
Deprecated. 
Returns:
String, error message or null

checkInput

public void checkInput(java.lang.String value)
                throws java.lang.Exception
Deprecated. 
Throws:
Exception, - a generic exception.
java.lang.Exception

getExpectedFormat

public abstract java.lang.String getExpectedFormat()
Deprecated. 
Returns:
String, the expected format of the input

check

protected abstract void check(java.lang.String input)
                       throws java.lang.Exception
Deprecated. 
Throws:
java.lang.Exception


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