public class MT920 extends AbstractMT implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MT920.Sequence_0 |
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 |
---|
MT920(MtSwiftMessage m)
Creates an MT920 initialized with the parameter MtSwiftMessage
|
MT920(SwiftMessage m)
Creates an MT920 initialized with the parameter SwiftMessage
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Field12> |
getField12()
Iterates through block4 fields and return all occurrences of fields whose names matches 12,
or
Collections.emptyList() if none is found.Multiple occurrences of field 12 at MT920 are expected at one sequence or across several sequences. |
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 MT920 is expected to be the only one. |
java.util.List<Field25> |
getField25()
Iterates through block4 fields and return all occurrences of fields whose names matches 25,
or
Collections.emptyList() if none is found.Multiple occurrences of field 25 at MT920 are expected at one sequence or across several sequences. |
java.util.List<Field34F> |
getField34F()
Iterates through block4 fields and return all occurrences of fields whose names matches 34F,
or
Collections.emptyList() if none is found.Multiple occurrences of field 34F at MT920 are expected at one sequence or across several sequences. |
java.lang.String |
getMessageType()
Returns this MT number
|
java.util.List<MT920.Sequence_0> |
getSequence_0List()
Get the list of Sequence_0 delimited by and
The presence of this methods indicates that this sequence can occur more than once according to the Standard.
|
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 MT920(MtSwiftMessage m)
m
- swift message with the MT920 contentpublic MT920(SwiftMessage m)
m
- swift message with the MT920 contentpublic java.util.List<Field12> getField12()
Collections.emptyList()
if none is found.Collections.emptyList()
if none is not foundjava.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(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 java.util.List<Field25> getField25()
Collections.emptyList()
if none is found.Collections.emptyList()
if none is not foundjava.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)
public java.util.List<Field34F> getField34F()
Collections.emptyList()
if none is found.Collections.emptyList()
if none is not foundjava.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)
public java.lang.String getMessageType()
getMessageType
in class AbstractMT
public java.util.List<MT920.Sequence_0> getSequence_0List()