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, setLogger
createISOMsg, fieldUnpackLogger, getFieldDescription, getFieldPackager, getHeaderLength, getLogger, getRealm, getThirdBitmapField, pack, setFieldPackager, setFieldPackager, setHeaderLength, setThirdBitmapField, unpack, unpack
protected int maxValidField
protected boolean emitBitmap
protected int bitmapField
protected ISOValidator[] fvlds
protected ISOBaseValidator[] mvlds
public GenericValidatingPackager() throws ISOException
ISOException
public GenericValidatingPackager(java.lang.String fileName) throws ISOException
ISOException
public GenericValidatingPackager(java.io.InputStream stream) throws ISOException
ISOException
public void readFile(java.lang.String filename) throws ISOException
readFile
in class GenericPackager
filename
- The XML field description fileISOException
public void setGenericPackagerParams(org.xml.sax.Attributes atts)
setGenericPackagerParams
in interface GenericPackagerParams
setGenericPackagerParams
in class GenericPackager
public void setMsgValidator(ISOBaseValidator[] msgVlds)
public void setFieldValidator(ISOFieldValidator[] fvlds)
public ISOComponent validate(ISOComponent m) throws ISOException
ISOValidator
validate
in interface ISOValidator
ISOException
- if break-on-error is assummed and there are
some errors.