com.projectnine.csvmapper
Class NoSpecialCharacterCsvFieldValidator

java.lang.Object
  extended by com.projectnine.csvmapper.CsvFieldValidator
      extended by com.projectnine.csvmapper.NoSpecialCharacterCsvFieldValidator
All Implemented Interfaces:
org.apache.commons.chain.Command

Deprecated. Use a RegularExpressionCsvFieldValidator with a regular expression of "^[^\!\@\%\&\*\~\?\<\>]*$"

public class NoSpecialCharacterCsvFieldValidator
extends CsvFieldValidator

This CsvFieldValidator blocks fields that contain !, @, %, &, *, ~, ?, <, and > from passing validation.

Author:
robweber

Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
NoSpecialCharacterCsvFieldValidator()
          Deprecated.  
 
Method Summary
protected  boolean doValidate(CsvFieldValidationContext csvFieldValidationContext)
          Deprecated.  
 
Methods inherited from class com.projectnine.csvmapper.CsvFieldValidator
execute, setRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoSpecialCharacterCsvFieldValidator

public NoSpecialCharacterCsvFieldValidator()
Deprecated. 
Method Detail

doValidate

protected boolean doValidate(CsvFieldValidationContext csvFieldValidationContext)
                      throws java.lang.Exception
Deprecated. 
Specified by:
doValidate in class CsvFieldValidator
Throws:
java.lang.Exception


Copyright © 2008. All Rights Reserved.