jPOS 1.6.7 API Documentation

org.jpos.iso
Class ISOMsgFieldValidator

java.lang.Object
  extended by org.jpos.iso.ISOFieldValidator
      extended by org.jpos.iso.ISOMsgFieldValidator
All Implemented Interfaces:
Configurable, ReConfigurable, ISOValidator

public class ISOMsgFieldValidator
extends ISOFieldValidator

Validator for composed fields. See class comments in file org.jpos.iso.ISOMsgFieldValidatingPackager.

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

Constructor Summary
ISOMsgFieldValidator(java.lang.String Description, ISOValidator msgValidator)
           
 
Method Summary
 ISOComponent validate(ISOComponent m)
          Validate a field component.
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISOMsgFieldValidator

public ISOMsgFieldValidator(java.lang.String Description,
                            ISOValidator msgValidator)
Method Detail

validate

public ISOComponent validate(ISOComponent m)
                      throws ISOException
Description copied from class: ISOFieldValidator
Validate a field component. Default for fields only consider field length validations.

Specified by:
validate in interface ISOValidator
Overrides:
validate in class ISOFieldValidator
Parameters:
m - 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.

jPOS.org