org.jpos.iso
Class ISOVMsg

java.lang.Object
  extended by org.jpos.iso.ISOComponent
      extended by org.jpos.iso.ISOMsg
          extended by org.jpos.iso.ISOVMsg
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, ISOVErrorList, Loggeable

public class ISOVMsg
extends ISOMsg
implements ISOVErrorList

Wrapper class resulting from process of validating an ISOMsg instance. Contains details of the original msg and validation-error details too. Normally in validation process when an error is detected by validator in msg, then the msg is replaced by an instance of this class, containning error details.

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
See Also:
Serialized Form

Field Summary
protected  LinkedList errors
          list of errors
 
Fields inherited from class org.jpos.iso.ISOMsg
direction, dirty, fieldNumber, fields, header, INCOMING, maxField, maxFieldDirty, OUTGOING, packager
 
Constructor Summary
ISOVMsg(ISOMsg Source)
          Create a message from original instance adding error data.
ISOVMsg(ISOMsg Source, ISOVError FirstError)
           
 
Method Summary
 boolean addISOVError(ISOVError Error)
          Add an error component to the list of errors.
 ListIterator errorListIterator()
          Get an error iterator instance.
 
Methods inherited from class org.jpos.iso.ISOMsg
clone, clone, dump, getBytes, getBytes, getChildren, getComponent, getComponent, getComposite, getDirection, getHeader, getISOHeader, getKey, getMaxField, getMTI, getPackager, getSource, getString, getString, getValue, getValue, getValue, hasField, hasField, hasFields, hasFields, isIncoming, isInner, isOutgoing, isRequest, isResponse, isRetransmission, merge, move, pack, readDirection, readExternal, readHeader, readPackager, recalcBitMap, set, set, set, set, set, set, setDirection, setFieldNumber, setHeader, setHeader, setMTI, setPackager, setResponseMTI, setRetransmissionMTI, setSource, setValue, toString, unpack, unpack, unset, unset, unset, writeDirection, writeExternal, writeHeader, writePackager
 
Methods inherited from class org.jpos.iso.ISOComponent
getBytes, pack
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errors

protected LinkedList errors
list of errors

Constructor Detail

ISOVMsg

public ISOVMsg(ISOMsg Source)
Create a message from original instance adding error data.

Parameters:
Source - Original msg instance.

ISOVMsg

public ISOVMsg(ISOMsg Source,
               ISOVError FirstError)
Method Detail

addISOVError

public boolean addISOVError(ISOVError Error)
Add an error component to the list of errors.

Specified by:
addISOVError in interface ISOVErrorList
Parameters:
Error - Error instance to add.
Returns:
True if the list of errors change after operation.
See Also:
ISOVError

errorListIterator

public ListIterator errorListIterator()
Get an error iterator instance.

Specified by:
errorListIterator in interface ISOVErrorList
Returns:
iterator.


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