com.projectnine.csvmapper
Class NoSpecialCharacterCsvFieldValidator
java.lang.Object
com.projectnine.csvmapper.CsvFieldValidator
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
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoSpecialCharacterCsvFieldValidator
public NoSpecialCharacterCsvFieldValidator()
- Deprecated.
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.