org.jpos.iso.packager
Class GenericValidatingPackager
java.lang.Object
org.jpos.iso.ISOBasePackager
org.jpos.iso.packager.GenericPackager
org.jpos.iso.packager.GenericValidatingPackager
- All Implemented Interfaces:
- Configurable, ISOPackager, ISOValidator, LogSource
public class GenericValidatingPackager
- extends GenericPackager
- implements ISOValidator
Generic Packager that configure validators too.
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
| Methods inherited from class org.jpos.iso.ISOBasePackager |
createISOMsg, getFieldDescription, getFieldPackager, getHeaderLength, getLogger, getRealm, pack, setFieldPackager, setFieldPackager, setHeaderLength, unpack, unpack |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxValidField
protected int maxValidField
emitBitmap
protected boolean emitBitmap
bitmapField
protected int bitmapField
fvlds
protected ISOValidator[] fvlds
- FieldValidator array.
mvlds
protected ISOBaseValidator[] mvlds
- MsgValidator array
GenericValidatingPackager
public GenericValidatingPackager()
throws ISOException
- Throws:
ISOException
GenericValidatingPackager
public GenericValidatingPackager(String fileName)
throws ISOException
- Throws:
ISOException
GenericValidatingPackager
public GenericValidatingPackager(InputStream stream)
throws ISOException
- Throws:
ISOException
readFile
public void readFile(String filename)
throws ISOException
- It define GenericValidatorContentHandler like handler.
- Overrides:
readFile in class GenericPackager
- Parameters:
filename - The XML field description file
- Throws:
ISOException
setGenericPackagerParams
protected void setGenericPackagerParams(Attributes atts)
setMsgValidator
public void setMsgValidator(ISOBaseValidator[] msgVlds)
setFieldValidator
public void setFieldValidator(ISOFieldValidator[] fvlds)
validate
public ISOComponent validate(ISOComponent m)
throws ISOException
- Description copied from interface:
ISOValidator
- Validate an ISOComponent.
- Specified by:
validate in interface ISOValidator
- Throws:
ISOException
Copyright © 1998-2012 jPOS.org. All Rights Reserved.