public class GenericValidatingPackager extends GenericPackager implements ISOValidator
Title: jPOS
Description: Java Framework for Financial Systems
Copyright: Copyright (c) 2000 jPOS.org. All rights reserved.
Company: www.jPOS.org
| Modifier and Type | Class and Description |
|---|---|
class |
GenericValidatingPackager.GenericValidatorContentHandler |
GenericPackager.GenericContentHandler, GenericPackager.GenericEntityResolver| Modifier and Type | Field and Description |
|---|---|
protected int |
bitmapField |
protected boolean |
emitBitmap |
protected ISOValidator[] |
fvlds
FieldValidator array.
|
protected int |
maxValidField |
protected ISOBaseValidator[] |
mvlds
MsgValidator array
|
fld, headerLength, logFieldName, logger, realm, thirdBitmapField| Constructor and Description |
|---|
GenericValidatingPackager() |
GenericValidatingPackager(java.io.InputStream stream) |
GenericValidatingPackager(java.lang.String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
readFile(java.lang.String filename)
It define GenericValidatorContentHandler like handler.
|
void |
setFieldValidator(ISOFieldValidator[] fvlds) |
void |
setGenericPackagerParams(org.xml.sax.Attributes atts) |
void |
setMsgValidator(ISOBaseValidator[] msgVlds) |
ISOComponent |
validate(ISOComponent m)
Validate an ISOComponent.
|
emitBitMap, getBitMapfieldPackager, getDescription, getFirstField, getMaxValidField, readFile, setConfiguration, setLoggercreateISOMsg, fieldUnpackLogger, getFieldDescription, getFieldPackager, getHeaderLength, getLogger, getRealm, getThirdBitmapField, pack, setFieldPackager, setFieldPackager, setHeaderLength, setThirdBitmapField, unpack, unpackprotected int maxValidField
protected boolean emitBitmap
protected int bitmapField
protected ISOValidator[] fvlds
protected ISOBaseValidator[] mvlds
public GenericValidatingPackager()
throws ISOException
ISOExceptionpublic GenericValidatingPackager(java.lang.String fileName)
throws ISOException
ISOExceptionpublic GenericValidatingPackager(java.io.InputStream stream)
throws ISOException
ISOExceptionpublic void readFile(java.lang.String filename)
throws ISOException
readFile in class GenericPackagerfilename - The XML field description fileISOExceptionpublic void setGenericPackagerParams(org.xml.sax.Attributes atts)
setGenericPackagerParams in interface GenericPackagerParamssetGenericPackagerParams in class GenericPackagerpublic void setMsgValidator(ISOBaseValidator[] msgVlds)
public void setFieldValidator(ISOFieldValidator[] fvlds)
public ISOComponent validate(ISOComponent m) throws ISOException
ISOValidatorvalidate in interface ISOValidatorISOException - if break-on-error is assummed and there are
some errors.