public class MT298 extends AbstractMT implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Constant for MT name, this is part of the classname, after
MT |
Constructor and Description |
---|
MT298(MtSwiftMessage m)
Creates an MT298 initialized with the parameter MtSwiftMessage
|
MT298(SwiftMessage m)
Creates an MT298 initialized with the parameter SwiftMessage
|
Modifier and Type | Method and Description |
---|---|
Field12 |
getField12()
Iterates through block4 fields and return the first one whose name matches 12,
or
null if none is found.The first occurrence of field 12 at MT298 is expected to be the only one. |
Field20 |
getField20()
Iterates through block4 fields and return the first one whose name matches 20,
or
null if none is found.The first occurrence of field 20 at MT298 is expected to be the only one. |
Field77E |
getField77E()
Iterates through block4 fields and return the first one whose name matches 77E,
or
null if none is found.The first occurrence of field 77E at MT298 is expected to be the only one. |
java.lang.String |
getMessageType()
Returns this MT number
|
addField, FIN, getApplicationId, getLogicalTerminal, getMessagePriority, getReceiver, getSender, getSequenceNumber, getServiceId, getSessionNumber, getSwiftMessage, isInput, isOutput, setReceiver, setReceiver, setSender, setSender, setSwiftMessage
public static final java.lang.String NAME
MT
public MT298(MtSwiftMessage m)
m
- swift message with the MT298 contentpublic MT298(SwiftMessage m)
m
- swift message with the MT298 contentpublic Field12 getField12()
null
if none is found.null
if the field is not foundjava.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field20 getField20()
null
if none is found.null
if the field is not foundjava.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field77E getField77E()
null
if none is found.null
if the field is not foundjava.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public java.lang.String getMessageType()
getMessageType
in class AbstractMT