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, unsetpublic ISOAmount()
public ISOAmount(int fieldNumber)
public ISOAmount(int fieldNumber,
int currencyCode,
java.math.BigDecimal amount)
throws ISOException
ISOExceptionpublic java.lang.Object getKey()
ISOComponentgetKey in class ISOComponentpublic java.lang.Object getValue()
throws ISOException
ISOComponentgetValue in class ISOComponentISOExceptionpublic void setValue(java.lang.Object obj)
throws ISOException
setValue in class ISOComponentISOExceptionpublic void setFieldNumber(int fieldNumber)
ISOComponentsetFieldNumber in class ISOComponentfieldNumber - new field numberpublic int getFieldNumber()
getFieldNumber in class ISOComponentpublic java.math.BigDecimal getAmount()
public int getScale()
public java.lang.String getScaleAsString()
public int getCurrencyCode()
public java.lang.String getCurrencyCodeAsString()
throws ISOException
ISOExceptionpublic java.lang.String getAmountAsLegacyString()
throws ISOException
ISOExceptionpublic java.lang.String getAmountAsString()
throws ISOException
ISOExceptionpublic byte[] pack()
throws ISOException
pack in class ISOComponentISOExceptionpublic int unpack(byte[] b)
throws ISOException
unpack in class ISOComponentISOExceptionpublic void unpack(java.io.InputStream in)
throws ISOException
unpack in class ISOComponentISOExceptionpublic void dump(java.io.PrintStream p,
java.lang.String indent)
dump in class ISOComponentpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object