|
jPOS 1.6.1 API Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpos.iso.ISOComponent
public abstract class ISOComponent
implements a Component within a Composite pattern See Overview for details.
ISOMsg,
ISOField,
ISOException| Constructor Summary | |
|---|---|
ISOComponent()
|
|
| Method Summary | |
|---|---|
abstract void |
dump(java.io.PrintStream p,
java.lang.String indent)
|
byte[] |
getBytes()
get Value as bytes (when possible) |
java.util.Hashtable |
getChildren()
dummy behaviour - return 0 elements Hashtable |
ISOComponent |
getComposite()
In order to interchange Composites and Leafs we use getComposite(). |
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ISOComponent()
| Method Detail |
|---|
public void set(ISOComponent c)
throws ISOException
c - - a component
ISOException
public void unset(int fldno)
throws ISOException
fldno - - the field number
ISOExceptionpublic ISOComponent getComposite()
public java.lang.Object getKey()
throws ISOException
ISOException
public java.lang.Object getValue()
throws ISOException
ISOException
public byte[] getBytes()
throws ISOException
ISOExceptionpublic int getMaxField()
public java.util.Hashtable getChildren()
public abstract void setFieldNumber(int fieldNumber)
fieldNumber - new field number
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
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||