public abstract class ISOComponent
extends java.lang.Object
implements java.lang.Cloneable
ISOMsg
,
ISOField
,
ISOException
Constructor and Description |
---|
ISOComponent() |
Modifier and Type | Method and Description |
---|---|
abstract void |
dump(java.io.PrintStream p,
java.lang.String indent) |
byte[] |
getBytes()
get Value as bytes (when possible)
|
java.util.Map |
getChildren()
dummy behaviour - return empty map
|
ISOComponent |
getComposite()
In order to interchange Composites and Leafs we use
getComposite().
|
abstract int |
getFieldNumber() |
java.lang.Object |
getKey()
valid on Leafs only.
|
int |
getMaxField()
a Composite must override this function
|
java.lang.Object |
getValue()
valid on Leafs only.
|
abstract byte[] |
pack() |
void |
pack(java.io.OutputStream out) |
void |
set(ISOComponent c)
Set a field within this message
|
abstract void |
setFieldNumber(int fieldNumber)
changes this Component field number
Use with care, this method does not change any reference held by a Composite. |
abstract void |
setValue(java.lang.Object obj) |
abstract int |
unpack(byte[] b) |
abstract void |
unpack(java.io.InputStream in) |
void |
unset(int fldno)
Unset a field
|
public void set(ISOComponent c) throws ISOException
c
- - a componentISOException
public void unset(int fldno) throws ISOException
fldno
- - the field numberISOException
public ISOComponent getComposite()
public java.lang.Object getKey() throws ISOException
ISOException
public java.lang.Object getValue() throws ISOException
ISOException
public byte[] getBytes() throws ISOException
ISOException
public int getMaxField()
public java.util.Map getChildren()
public abstract void setFieldNumber(int fieldNumber)
fieldNumber
- new field numberpublic abstract int getFieldNumber()
public abstract void setValue(java.lang.Object obj) throws ISOException
ISOException
public abstract byte[] pack() throws ISOException
ISOException
public abstract int unpack(byte[] b) throws ISOException
ISOException
public abstract void dump(java.io.PrintStream p, java.lang.String indent)
public void pack(java.io.OutputStream out) throws java.io.IOException, ISOException
java.io.IOException
ISOException
public abstract void unpack(java.io.InputStream in) throws java.io.IOException, ISOException
java.io.IOException
ISOException