Class ISOVField
java.lang.Object
org.jpos.iso.ISOComponent
org.jpos.iso.ISOField
org.jpos.iso.ISOVField
- All Implemented Interfaces:
Externalizable, Serializable, Cloneable, ISOVErrorList
Wrapper class resulting from process of validating an ISOField
instance. Contains details of the original field and validation-error
details too. Normally in validation process when an error is detected
by validator in some field, then the field 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
- See Also:
-
Field Summary
FieldsFields inherited from class ISOField
fieldNumber, valueModifier and TypeFieldDescriptionprotected intThe ISO field number.protected StringThe string value of this field. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddISOVError(ISOVError Error) Add an ISOVError to the list.Get an error list iterator.Methods inherited from class ISOField
dump, getBytes, getFieldNumber, getKey, getValue, pack, readExternal, setFieldNumber, setValue, unpack, unpack, writeExternalModifier and TypeMethodDescriptionvoiddump(PrintStream p, String indent) dump this field to PrintStream.byte[]getBytes()get Value as bytes (when possible)intReturns the field number this component occupies within its container.getKey()valid on Leafs only.getValue()valid on Leafs only.byte[]pack()not available on Leaf - always throw ISOExceptionvoidvoidsetFieldNumber(int fieldNumber) changes this Component field number
Use with care, this method does not change any reference held by a Composite.voidSets the value of this component.intunpack(byte[] b) not available on Leaf - always throw ISOExceptionvoidunpack(InputStream in) not available on Leaf - always throw ISOExceptionvoidMethods inherited from class ISOComponent
getChildren, getComposite, getMaxField, pack, set, unsetModifier and TypeMethodDescriptiondummy behaviour - return empty mapIn order to interchange Composites and Leafs we use getComposite().inta Composite must override this functionvoidpack(OutputStream out) Packs this component and writes it toout.voidset(ISOComponent c) Set a field within this messagevoidunset(int fldno) Unset a field
-
Field Details
-
errors
list of errors
-
-
Constructor Details
-
ISOVField
-
ISOVField
-
-
Method Details
-
addISOVError
Description copied from interface:ISOVErrorListAdd an ISOVError to the list.- Specified by:
addISOVErrorin interfaceISOVErrorList- Parameters:
Error- error detailed instance.- Returns:
- true if error list change after operation. See Collection.
- See Also:
-
errorListIterator
Description copied from interface:ISOVErrorListGet an error list iterator.- Specified by:
errorListIteratorin interfaceISOVErrorList- Returns:
- iterator instance.
-