com.projectnine.csvmapper
Class PostalCodeCsvFieldValidator

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

Deprecated. Use RegularExpressionCsvFieldValidator with a regular expression of "^\\d{5}\\p{Punct}?\\s?(?:\\d{4})?$" instead.

public class PostalCodeCsvFieldValidator
extends CsvFieldValidator

This CsvFieldValidator prevents non-standard US Postal codes from passing validation.

Author:
robweber

Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
PostalCodeCsvFieldValidator()
          Deprecated.  
 
Method Summary
protected  boolean doValidate(CsvFieldValidationContext csvFieldValidationContext)
          Deprecated.  
static void main(java.lang.String[] args)
          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

PostalCodeCsvFieldValidator

public PostalCodeCsvFieldValidator()
Deprecated. 
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Deprecated. 
Throws:
java.lang.Exception

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.