Class ISOAmount
java.lang.Object
org.jpos.iso.ISOComponent
org.jpos.iso.ISOAmount
- All Implemented Interfaces:
Externalizable, Serializable, Cloneable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionISOAmount(int fieldNumber) ISOAmount(int fieldNumber, int currencyCode, BigDecimal amount) -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(PrintStream p, String indent) booleanintintgetKey()valid on Leafs only.intgetScale()getValue()valid on Leafs only.inthashCode()byte[]pack()voidvoidsetFieldNumber(int fieldNumber) changes this Component field number
Use with care, this method does not change any reference held by a Composite.voidtoString()intunpack(byte[] b) voidunpack(InputStream in) voidMethods inherited from class ISOComponent
getBytes, getChildren, getComposite, getMaxField, pack, set, unset
-
Constructor Details
-
ISOAmount
public ISOAmount() -
ISOAmount
-
ISOAmount
- Throws:
ISOException
-
-
Method Details
-
getKey
Description copied from class:ISOComponentvalid on Leafs only. The value returned is used by ISOMsg as a key to this field.- Overrides:
getKeyin classISOComponent- Returns:
- object representing the field number
-
getValue
Description copied from class:ISOComponentvalid on Leafs only.- Overrides:
getValuein classISOComponent- Returns:
- object representing the field value
- Throws:
ISOException
-
setValue
- Specified by:
setValuein classISOComponent- Throws:
ISOException
-
setFieldNumber
Description copied from class:ISOComponentchanges this Component field number
Use with care, this method does not change any reference held by a Composite.- Specified by:
setFieldNumberin classISOComponent- Parameters:
fieldNumber- new field number
-
getFieldNumber
- Specified by:
getFieldNumberin classISOComponent
-
getAmount
-
getScale
-
getScaleAsString
-
getCurrencyCode
-
getCurrencyCodeAsString
- Throws:
ISOException
-
getAmountAsLegacyString
- Throws:
ISOException
-
getAmountAsString
- Throws:
ISOException
-
pack
- Specified by:
packin classISOComponent- Throws:
ISOException
-
unpack
- Specified by:
unpackin classISOComponent- Throws:
ISOException
-
unpack
- Specified by:
unpackin classISOComponent- Throws:
ISOException
-
dump
- Specified by:
dumpin classISOComponent
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
equals
-
hashCode
-
toString
-