public class ISOAmount extends ISOComponent implements java.lang.Cloneable, java.io.Externalizable
Constructor and Description |
---|
ISOAmount() |
ISOAmount(int fieldNumber) |
ISOAmount(int fieldNumber,
int currencyCode,
java.math.BigDecimal amount) |
Modifier and Type | Method and Description |
---|---|
void |
dump(java.io.PrintStream p,
java.lang.String indent) |
boolean |
equals(java.lang.Object o) |
java.math.BigDecimal |
getAmount() |
java.lang.String |
getAmountAsLegacyString() |
java.lang.String |
getAmountAsString() |
int |
getCurrencyCode() |
java.lang.String |
getCurrencyCodeAsString() |
int |
getFieldNumber() |
java.lang.Object |
getKey()
valid on Leafs only.
|
int |
getScale() |
java.lang.String |
getScaleAsString() |
java.lang.Object |
getValue()
valid on Leafs only.
|
int |
hashCode() |
byte[] |
pack() |
void |
readExternal(java.io.ObjectInput in) |
void |
setFieldNumber(int fieldNumber)
changes this Component field number
Use with care, this method does not change any reference held by a Composite. |
void |
setValue(java.lang.Object obj) |
java.lang.String |
toString() |
int |
unpack(byte[] b) |
void |
unpack(java.io.InputStream in) |
void |
writeExternal(java.io.ObjectOutput out) |
getBytes, getChildren, getComposite, getMaxField, pack, set, unset
public ISOAmount()
public ISOAmount(int fieldNumber)
public ISOAmount(int fieldNumber, int currencyCode, java.math.BigDecimal amount) throws ISOException
ISOException
public java.lang.Object getKey()
ISOComponent
getKey
in class ISOComponent
public java.lang.Object getValue() throws ISOException
ISOComponent
getValue
in class ISOComponent
ISOException
public void setValue(java.lang.Object obj) throws ISOException
setValue
in class ISOComponent
ISOException
public void setFieldNumber(int fieldNumber)
ISOComponent
setFieldNumber
in class ISOComponent
fieldNumber
- new field numberpublic int getFieldNumber()
getFieldNumber
in class ISOComponent
public java.math.BigDecimal getAmount()
public int getScale()
public java.lang.String getScaleAsString()
public int getCurrencyCode()
public java.lang.String getCurrencyCodeAsString() throws ISOException
ISOException
public java.lang.String getAmountAsLegacyString() throws ISOException
ISOException
public java.lang.String getAmountAsString() throws ISOException
ISOException
public byte[] pack() throws ISOException
pack
in class ISOComponent
ISOException
public int unpack(byte[] b) throws ISOException
unpack
in class ISOComponent
ISOException
public void unpack(java.io.InputStream in) throws ISOException
unpack
in class ISOComponent
ISOException
public void dump(java.io.PrintStream p, java.lang.String indent)
dump
in class ISOComponent
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object