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)
ISOComponent
setFieldNumber
in class ISOComponent
fieldNumber
- new field numberpublic int getFieldNumber()
getFieldNumber
in class ISOComponent
public void setValue(java.lang.Object obj) throws ISOException
setValue
in class ISOComponent
ISOException
public void set(ISOComponent c) throws ISOException
ISOComponent
set
in class ISOComponent
c
- - a componentISOException
public void unset(int fldno) throws ISOException
ISOComponent
unset
in class ISOComponent
fldno
- - the field numberISOException
public ISOComponent getComposite()
ISOComponent
getComposite
in class ISOComponent
public java.lang.Object getKey() throws ISOException
ISOComponent
getKey
in class ISOComponent
ISOException
public java.lang.Object getValue() throws ISOException
ISOComponent
getValue
in class ISOComponent
ISOException
public byte[] getBytes() throws ISOException
ISOComponent
getBytes
in class ISOComponent
ISOException
public int getMaxField()
ISOComponent
getMaxField
in class ISOComponent
public java.util.Map getChildren()
ISOComponent
getChildren
in class ISOComponent
public void pack(java.io.OutputStream out) throws java.io.IOException, ISOException
pack
in class ISOComponent
java.io.IOException
ISOException
public void dump(java.io.PrintStream p, java.lang.String indent)
dump
in class ISOComponent
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 java.io.IOException, ISOException
unpack
in class ISOComponent
java.io.IOException
ISOException
public ISOComponent getDelegate()