public class ISOMsgRef.Ref extends ISOMsg implements OffsetIndexedComposite
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.lang.Object |
clone(int[] fields)
Partially clone an ISOMsg
|
void |
dump(java.io.PrintStream p,
java.lang.String indent)
dump the message to a PrintStream.
|
byte[] |
getBytes()
get Value as bytes (when possible)
|
byte[] |
getBytes(int fldno)
Return the byte[] value associated with the given ISOField number
|
byte[] |
getBytes(java.lang.String fpath)
Return the String value associated with the given field path
|
java.util.Map |
getChildren()
clone fields
|
ISOComponent |
getComponent(int fldno)
get the component associated with the given field number
|
ISOComponent |
getComponent(java.lang.String fpath)
get the component associated with the given field number
|
ISOComponent |
getComposite()
In order to interchange Composites and Leafs we use
getComposite().
|
int |
getDirection() |
byte[] |
getHeader()
get optional message header image
|
ISOHeader |
getISOHeader()
Return this messages ISOHeader
|
java.lang.Object |
getKey()
valid on Leafs only.
|
int |
getMaxField()
a Composite must override this function
|
java.lang.String |
getMTI() |
int |
getOffset() |
ISOPackager |
getPackager() |
java.lang.String |
getString(int fldno)
Return the String value associated with the given ISOField number
|
java.lang.String |
getString(java.lang.String fpath)
Return the String value associated with the given field path
|
java.lang.Object |
getValue()
valid on Leafs only.
|
java.lang.Object |
getValue(int fldno)
Return the object value associated with the given field number
|
java.lang.Object |
getValue(java.lang.String fpath)
Return the object value associated with the given field path
|
boolean |
hasField(int fldno)
Check if a given field is present
|
boolean |
hasField(java.lang.String fpath)
Check if a field indicated by a fpath is present
|
boolean |
hasFields() |
boolean |
hasFields(int[] fields)
Check if all fields are present
|
void |
incOffset() |
boolean |
isIncoming() |
boolean |
isInner() |
boolean |
isOutgoing() |
boolean |
isRequest() |
void |
merge(ISOMsg m) |
void |
move(int oldFieldNumber,
int newFieldNumber)
moves a field (renumber)
|
byte[] |
pack()
pack the message with the current packager
|
void |
pack(java.io.OutputStream out) |
void |
recalcBitMap()
setup BitMap
|
void |
resetOffset() |
void |
set(int fldno,
byte[] value)
Creates an ISOBinaryField associated with fldno within this ISOMsg.
|
void |
set(int fldno,
java.lang.String value)
Creates an ISOField associated with fldno within this ISOMsg.
|
void |
set(ISOComponent c)
Set a field within this message
|
void |
set(java.lang.String fpath,
byte[] value)
Creates an ISOField associated with fldno within this ISOMsg.
|
void |
set(java.lang.String fpath,
ISOComponent c)
Creates an ISOField associated with fldno within this ISOMsg
|
void |
set(java.lang.String fpath,
java.lang.String value)
Creates an ISOField associated with fldno within this ISOMsg.
|
void |
setDirection(int direction)
Sets the direction information related to 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 |
setHeader(byte[] b)
Sets an optional message header image
|
void |
setHeader(ISOHeader header) |
void |
setMTI(java.lang.String mti) |
void |
setOffset(int offset) |
void |
setPackager(ISOPackager p) |
void |
setValue(java.lang.Object obj)
Don't call setValue on an ISOMsg.
|
java.lang.String |
toString() |
int |
unpack(byte[] b)
unpack a message
|
void |
unpack(java.io.InputStream in) |
void |
unset(int fldno)
Unset a field if it exists, otherwise ignore.
|
void |
unset(int[] flds)
Unsets several fields at once
|
void |
unset(java.lang.String fpath)
Unset a field referenced by a fpath if it exists, otherwise ignore.
|
clone, getFieldNumber, getSource, getTrailer, hasAny, hasAny, hasMTI, isAdministrative, isAuthorization, isChargeback, isFeeCollection, isFileAction, isFinancial, isNetworkManagement, isReconciliation, isResponse, isRetransmission, isReversal, merge, readDirection, readExternal, readHeader, readPackager, setResponseMTI, setRetransmissionMTI, setSource, setTrailer, unset, writeDirection, writeExternal, writeHeader, writePackagerpublic void incOffset()
incOffset in interface OffsetIndexedCompositepublic void setOffset(int offset)
setOffset in interface OffsetIndexedCompositepublic void resetOffset()
resetOffset in interface OffsetIndexedCompositepublic int getOffset()
getOffset in interface OffsetIndexedCompositepublic java.lang.Object getKey()
throws ISOException
ISOComponentgetKey in class ISOMsgISOExceptionpublic void setFieldNumber(int fieldNumber)
ISOMsgsetFieldNumber in class ISOMsgfieldNumber - new field numberpublic void setValue(java.lang.Object obj)
throws ISOException
ISOMsgsetValue in class ISOMsgISOExceptionISOField,
ISOExceptionpublic void set(ISOComponent c) throws ISOException
ISOMsgset in class ISOMsgc - - a componentISOExceptionpublic void unset(int fldno)
ISOMsgpublic ISOComponent getComposite()
ISOMsggetComposite in class ISOMsgpublic java.lang.Object getValue()
ISOComponentpublic byte[] getBytes()
throws ISOException
ISOComponentgetBytes in class ISOComponentISOExceptionpublic int getMaxField()
ISOComponentgetMaxField in class ISOMsgpublic java.util.Map getChildren()
ISOMsggetChildren in class ISOMsgpublic 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)
ISOMsgpublic byte[] pack()
throws ISOException
ISOMsgpack in class ISOMsgISOExceptionpublic int unpack(byte[] b)
throws ISOException
ISOMsgunpack in class ISOMsgb - - raw messageISOExceptionpublic void unpack(java.io.InputStream in)
throws java.io.IOException,
ISOException
unpack in class ISOMsgjava.io.IOExceptionISOExceptionpublic void setDirection(int direction)
ISOMsgsetDirection in class ISOMsgdirection - can be either ISOMsg.INCOMING or ISOMsg.OUTGOINGpublic void setHeader(byte[] b)
ISOMsgpublic byte[] getHeader()
ISOMsgpublic ISOHeader getISOHeader()
ISOMsggetISOHeader in class ISOMsgpublic int getDirection()
getDirection in class ISOMsgISOChannelpublic boolean isIncoming()
isIncoming in class ISOMsgISOChannelpublic boolean isOutgoing()
isOutgoing in class ISOMsgISOChannelpublic void setPackager(ISOPackager p)
setPackager in class ISOMsgp - - a peer packagerpublic ISOPackager getPackager()
getPackager in class ISOMsgpublic void set(int fldno,
java.lang.String value)
ISOMsgpublic void set(java.lang.String fpath,
java.lang.String value)
ISOMsgpublic void set(java.lang.String fpath,
ISOComponent c)
throws ISOException
ISOMsgset in class ISOMsgfpath - dot-separated field path (i.e. 63.2)c - componentISOException - on errorpublic void set(java.lang.String fpath,
byte[] value)
ISOMsgpublic void set(int fldno,
byte[] value)
ISOMsgpublic void unset(int[] flds)
ISOMsgpublic void unset(java.lang.String fpath)
ISOMsgpublic void recalcBitMap()
throws ISOException
ISOMsgrecalcBitMap in class ISOMsgISOException - on errorpublic ISOComponent getComponent(int fldno)
ISOMsggetComponent in class ISOMsgfldno - the Field Numberpublic java.lang.Object getValue(int fldno)
ISOMsgpublic java.lang.Object getValue(java.lang.String fpath)
throws ISOException
ISOMsggetValue in class ISOMsgfpath - field pathISOException - on errorpublic ISOComponent getComponent(java.lang.String fpath) throws ISOException
ISOMsggetComponent in class ISOMsgfpath - field pathISOException - on errorpublic java.lang.String getString(int fldno)
ISOMsgpublic java.lang.String getString(java.lang.String fpath)
ISOMsgpublic byte[] getBytes(int fldno)
ISOMsgpublic byte[] getBytes(java.lang.String fpath)
ISOMsgpublic boolean hasField(int fldno)
ISOMsgpublic boolean hasFields(int[] fields)
ISOMsgpublic boolean hasField(java.lang.String fpath)
ISOMsgpublic boolean hasFields()
public java.lang.Object clone(int[] fields)
ISOMsgpublic java.lang.String toString()
public void setMTI(java.lang.String mti)
throws ISOException
setMTI in class ISOMsgmti - new MTIISOException - if message is inner messagepublic void move(int oldFieldNumber,
int newFieldNumber)
throws ISOException
ISOMsgmove in class ISOMsgoldFieldNumber - old field numbernewFieldNumber - new field numberISOException - on errorpublic java.lang.String getMTI()
throws ISOException
getMTI in class ISOMsgISOException - on inner message or MTI not setpublic boolean isRequest()
throws ISOException
isRequest in class ISOMsgISOException - on MTI not set