public class ISOTaggedField extends ISOComponent
| Constructor and Description |
|---|
ISOTaggedField(java.lang.String tag,
ISOComponent delegate) |
| Modifier and Type | Method and Description |
|---|---|
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().
|
ISOComponent |
getDelegate() |
int |
getFieldNumber() |
java.lang.Object |
getKey()
valid on Leafs only.
|
int |
getMaxField()
a Composite must override this function
|
java.lang.String |
getTag() |
java.lang.Object |
getValue()
valid on Leafs only.
|
byte[] |
pack() |
void |
pack(java.io.OutputStream out) |
void |
set(ISOComponent c)
Set a field within this message
|
void |
setFieldNumber(int fieldNumber)
changes this Component field number
Use with care, this method does not change any reference held by a Composite. |
void |
setTag(java.lang.String tag) |
void |
setValue(java.lang.Object obj) |
int |
unpack(byte[] b) |
void |
unpack(java.io.InputStream in) |
void |
unset(int fldno)
Unset a field
|
public ISOTaggedField(java.lang.String tag,
ISOComponent delegate)
public java.lang.String getTag()
public void setTag(java.lang.String tag)
public void setFieldNumber(int fieldNumber)
ISOComponentsetFieldNumber in class ISOComponentfieldNumber - new field numberpublic int getFieldNumber()
getFieldNumber in class ISOComponentpublic void setValue(java.lang.Object obj)
throws ISOException
setValue in class ISOComponentISOExceptionpublic void set(ISOComponent c) throws ISOException
ISOComponentset in class ISOComponentc - - a componentISOExceptionpublic void unset(int fldno)
throws ISOException
ISOComponentunset in class ISOComponentfldno - - the field numberISOExceptionpublic ISOComponent getComposite()
ISOComponentgetComposite in class ISOComponentpublic java.lang.Object getKey()
throws ISOException
ISOComponentgetKey in class ISOComponentISOExceptionpublic java.lang.Object getValue()
throws ISOException
ISOComponentgetValue in class ISOComponentISOExceptionpublic byte[] getBytes()
throws ISOException
ISOComponentgetBytes in class ISOComponentISOExceptionpublic int getMaxField()
ISOComponentgetMaxField in class ISOComponentpublic java.util.Map getChildren()
ISOComponentgetChildren in class ISOComponentpublic void pack(java.io.OutputStream out)
throws java.io.IOException,
ISOException
pack in class ISOComponentjava.io.IOExceptionISOExceptionpublic void dump(java.io.PrintStream p,
java.lang.String indent)
dump in class ISOComponentpublic 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 java.io.IOException,
ISOException
unpack in class ISOComponentjava.io.IOExceptionISOExceptionpublic ISOComponent getDelegate()