org.jpos.iso
Class IVA_ALPHANUM

java.lang.Object
  extended by org.jpos.iso.ISOFieldValidator
      extended by org.jpos.iso.IVA_ALPHANUM
All Implemented Interfaces:
Configurable, ISOValidator
Direct Known Subclasses:
IVA_ALPHANUMNOBLANK, IVA_ALPHANUMNOZERO

public class IVA_ALPHANUM
extends ISOFieldValidator

Validator for ASCII alphanumeric fields.

Title: jPOS

Description: Java Framework for Financial Systems

Copyright: Copyright (c) 2000 jPOS.org. All rights reserved.

Company: www.jPOS.org

Version:
1.0
Author:
Jose Eduardo Leon

Field Summary
 
Fields inherited from class org.jpos.iso.ISOFieldValidator
breakOnError, cfg, description, fieldId, maxLen, minLen
 
Constructor Summary
IVA_ALPHANUM()
           
IVA_ALPHANUM(boolean breakOnError, int minLen, int maxLen, String Description)
           
IVA_ALPHANUM(boolean breakOnError, int maxLen, String Description)
           
IVA_ALPHANUM(boolean breakOnError, String Description)
           
IVA_ALPHANUM(int minLen, int maxLen, String Description)
           
IVA_ALPHANUM(int maxLen, String Description)
           
IVA_ALPHANUM(String Description)
           
 
Method Summary
 ISOComponent validate(ISOComponent f)
          Validate that component has alphanumeric value.
 
Methods inherited from class org.jpos.iso.ISOFieldValidator
breakOnError, getDescription, getFieldId, getRejCode, setBreakOnError, setConfiguration, setDescription, setFieldId, setMaxLength, setMinLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IVA_ALPHANUM

public IVA_ALPHANUM()

IVA_ALPHANUM

public IVA_ALPHANUM(String Description)

IVA_ALPHANUM

public IVA_ALPHANUM(int minLen,
                    int maxLen,
                    String Description)

IVA_ALPHANUM

public IVA_ALPHANUM(int maxLen,
                    String Description)

IVA_ALPHANUM

public IVA_ALPHANUM(boolean breakOnError,
                    String Description)

IVA_ALPHANUM

public IVA_ALPHANUM(boolean breakOnError,
                    int maxLen,
                    String Description)

IVA_ALPHANUM

public IVA_ALPHANUM(boolean breakOnError,
                    int minLen,
                    int maxLen,
                    String Description)
Method Detail

validate

public ISOComponent validate(ISOComponent f)
                      throws ISOException
Validate that component has alphanumeric value.

Specified by:
validate in interface ISOValidator
Overrides:
validate in class ISOFieldValidator
Parameters:
f - ISOField component
Returns:
an ISOComponent result of validation process. If there area any validation error, then an ISOV component replace original c and it's returned in case of break-on-error condition is false. If break-on-error is false, then an ISOVException containing the ISOV component is raised.
Throws:
ISOException - if there are some errors during validation. It contains an ISOV component inside referencing the errors.
See Also:
method


Copyright © 1998-2012 jPOS.org. All Rights Reserved.