@Generated public class MT350 extends AbstractMT implements java.io.Serializable
SWIFT MT350 (ISO 15022) message structure:
This source code is specific to release SRU 2021
For additional resources check https://www.prowidesoftware.com/resources
Modifier and Type | Class and Description |
---|---|
static class |
MT350.SequenceA
Class to model Sequence "A" in MT 350
|
static class |
MT350.SequenceB
Class to model Sequence "B" in MT 350
|
static class |
MT350.SequenceC
Class to model Sequence "C" in MT 350
|
static class |
MT350.SequenceD
Class to model Sequence "D" in MT 350
|
static class |
MT350.SequenceD1
Class to model Sequence "D1" in MT 350
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Constant for MT name, this is part of the classname, after
MT |
static int |
SRU
Constant identifying the SRU to which this class belongs to.
|
m
Constructor and Description |
---|
MT350()
Creates and initializes a new MT350 input message setting TEST BICS as sender and receiver.
All mandatory header attributes are completed with default values. |
MT350(java.io.File file)
Creates a new MT350 by parsing a file with the message content in its swift FIN format.
If the file content is null or cannot be parsed as a message, the internal message object will be initialized (blocks will be created) but empty. If the file contains multiple messages, only the first one will be parsed. |
MT350(java.io.InputStream stream)
Creates a new MT350 by parsing a input stream with the message content in its swift FIN format, using "UTF-8" as encoding.
If the message content is null or cannot be parsed, the internal message object will be initialized (blocks will be created) but empty. If the stream contains multiple messages, only the first one will be parsed. |
MT350(MtSwiftMessage m)
Creates an MT350 initialized with the parameter MtSwiftMessage.
|
MT350(java.lang.String fin)
Creates a new MT350 by parsing a String with the message content in its swift FIN format.
If the fin parameter is null or the message cannot be parsed, the internal message object will be initialized (blocks will be created) but empty. If the string contains multiple messages, only the first one will be parsed. |
MT350(java.lang.String sender,
java.lang.String receiver)
Creates and initializes a new MT350 input message from sender to receiver.
All mandatory header attributes are completed with default values. |
MT350(SwiftMessage m)
Creates an MT350 initialized with the parameter SwiftMessage
|
Modifier and Type | Method and Description |
---|---|
MT350 |
append(Field... fields)
Add all the fields to the end of the block4.
|
MT350 |
append(SwiftTagListBlock block)
Add all tags from block to the end of the block4.
|
MT350 |
append(Tag... tags)
Add all tags to the end of the block4.
|
static MT350 |
fromJson(java.lang.String json)
Creates an MT350 messages from its JSON representation.
|
Field14D |
getField14D()
Iterates through block4 fields and return the first one whose name matches 14D,
or null if none is found.
The first occurrence of field 14D at MT350 is expected to be the only one. |
Field15A |
getField15A()
Iterates through block4 fields and return the first one whose name matches 15A,
or null if none is found.
The first occurrence of field 15A at MT350 is expected to be the only one. |
Field15B |
getField15B()
Iterates through block4 fields and return the first one whose name matches 15B,
or null if none is found.
The first occurrence of field 15B at MT350 is expected to be the only one. |
Field15C |
getField15C()
Iterates through block4 fields and return the first one whose name matches 15C,
or null if none is found.
The first occurrence of field 15C at MT350 is expected to be the only one. |
Field15D |
getField15D()
Iterates through block4 fields and return the first one whose name matches 15D,
or null if none is found.
The first occurrence of field 15D at MT350 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 MT350 is expected to be the only one. |
Field21 |
getField21()
Iterates through block4 fields and return the first one whose name matches 21,
or null if none is found.
The first occurrence of field 21 at MT350 is expected to be the only one. |
Field21N |
getField21N()
Iterates through block4 fields and return the first one whose name matches 21N,
or null if none is found.
The first occurrence of field 21N at MT350 is expected to be the only one. |
Field22A |
getField22A()
Iterates through block4 fields and return the first one whose name matches 22A,
or null if none is found.
The first occurrence of field 22A at MT350 is expected to be the only one. |
Field22C |
getField22C()
Iterates through block4 fields and return the first one whose name matches 22C,
or null if none is found.
The first occurrence of field 22C at MT350 is expected to be the only one. |
Field30F |
getField30F()
Iterates through block4 fields and return the first one whose name matches 30F,
or null if none is found.
The first occurrence of field 30F at MT350 is expected to be the only one. |
Field30G |
getField30G()
Iterates through block4 fields and return the first one whose name matches 30G,
or null if none is found.
The first occurrence of field 30G at MT350 is expected to be the only one. |
Field30V |
getField30V()
Iterates through block4 fields and return the first one whose name matches 30V,
or null if none is found.
The first occurrence of field 30V at MT350 is expected to be the only one. |
Field32B |
getField32B()
Iterates through block4 fields and return the first one whose name matches 32B,
or null if none is found.
The first occurrence of field 32B at MT350 is expected to be the only one. |
Field33B |
getField33B()
Iterates through block4 fields and return the first one whose name matches 33B,
or null if none is found.
The first occurrence of field 33B at MT350 is expected to be the only one. |
java.util.List<Field33E> |
getField33E()
Iterates through block4 fields and return all occurrences of fields whose names matches 33E,
or
Collections.emptyList() if none is found.Multiple occurrences of field 33E at MT350 are expected at one sequence or across several sequences. |
java.util.List<Field34B> |
getField34B()
Iterates through block4 fields and return all occurrences of fields whose names matches 34B,
or
Collections.emptyList() if none is found.Multiple occurrences of field 34B at MT350 are expected at one sequence or across several sequences. |
Field36 |
getField36()
Iterates through block4 fields and return the first one whose name matches 36,
or null if none is found.
The first occurrence of field 36 at MT350 is expected to be the only one. |
java.util.List<Field37L> |
getField37L()
Iterates through block4 fields and return all occurrences of fields whose names matches 37L,
or
Collections.emptyList() if none is found.Multiple occurrences of field 37L at MT350 are expected at one sequence or across several sequences. |
Field37M |
getField37M()
Iterates through block4 fields and return the first one whose name matches 37M,
or null if none is found.
The first occurrence of field 37M at MT350 is expected to be the only one. |
Field53A |
getField53A()
Iterates through block4 fields and return the first one whose name matches 53A,
or null if none is found.
The first occurrence of field 53A at MT350 is expected to be the only one. |
Field53D |
getField53D()
Iterates through block4 fields and return the first one whose name matches 53D,
or null if none is found.
The first occurrence of field 53D at MT350 is expected to be the only one. |
Field53J |
getField53J()
Iterates through block4 fields and return the first one whose name matches 53J,
or null if none is found.
The first occurrence of field 53J at MT350 is expected to be the only one. |
Field56A |
getField56A()
Iterates through block4 fields and return the first one whose name matches 56A,
or null if none is found.
The first occurrence of field 56A at MT350 is expected to be the only one. |
Field56D |
getField56D()
Iterates through block4 fields and return the first one whose name matches 56D,
or null if none is found.
The first occurrence of field 56D at MT350 is expected to be the only one. |
Field56J |
getField56J()
Iterates through block4 fields and return the first one whose name matches 56J,
or null if none is found.
The first occurrence of field 56J at MT350 is expected to be the only one. |
Field57A |
getField57A()
Iterates through block4 fields and return the first one whose name matches 57A,
or null if none is found.
The first occurrence of field 57A at MT350 is expected to be the only one. |
Field57D |
getField57D()
Iterates through block4 fields and return the first one whose name matches 57D,
or null if none is found.
The first occurrence of field 57D at MT350 is expected to be the only one. |
Field57J |
getField57J()
Iterates through block4 fields and return the first one whose name matches 57J,
or null if none is found.
The first occurrence of field 57J at MT350 is expected to be the only one. |
Field58A |
getField58A()
Iterates through block4 fields and return the first one whose name matches 58A,
or null if none is found.
The first occurrence of field 58A at MT350 is expected to be the only one. |
Field58D |
getField58D()
Iterates through block4 fields and return the first one whose name matches 58D,
or null if none is found.
The first occurrence of field 58D at MT350 is expected to be the only one. |
Field58J |
getField58J()
Iterates through block4 fields and return the first one whose name matches 58J,
or null if none is found.
The first occurrence of field 58J at MT350 is expected to be the only one. |
Field71F |
getField71F()
Iterates through block4 fields and return the first one whose name matches 71F,
or null if none is found.
The first occurrence of field 71F at MT350 is expected to be the only one. |
Field72 |
getField72()
Iterates through block4 fields and return the first one whose name matches 72,
or null if none is found.
The first occurrence of field 72 at MT350 is expected to be the only one. |
Field82A |
getField82A()
Iterates through block4 fields and return the first one whose name matches 82A,
or null if none is found.
The first occurrence of field 82A at MT350 is expected to be the only one. |
Field82D |
getField82D()
Iterates through block4 fields and return the first one whose name matches 82D,
or null if none is found.
The first occurrence of field 82D at MT350 is expected to be the only one. |
Field82J |
getField82J()
Iterates through block4 fields and return the first one whose name matches 82J,
or null if none is found.
The first occurrence of field 82J at MT350 is expected to be the only one. |
Field83A |
getField83A()
Iterates through block4 fields and return the first one whose name matches 83A,
or null if none is found.
The first occurrence of field 83A at MT350 is expected to be the only one. |
Field83D |
getField83D()
Iterates through block4 fields and return the first one whose name matches 83D,
or null if none is found.
The first occurrence of field 83D at MT350 is expected to be the only one. |
Field83J |
getField83J()
Iterates through block4 fields and return the first one whose name matches 83J,
or null if none is found.
The first occurrence of field 83J at MT350 is expected to be the only one. |
Field86A |
getField86A()
Iterates through block4 fields and return the first one whose name matches 86A,
or null if none is found.
The first occurrence of field 86A at MT350 is expected to be the only one. |
Field86D |
getField86D()
Iterates through block4 fields and return the first one whose name matches 86D,
or null if none is found.
The first occurrence of field 86D at MT350 is expected to be the only one. |
Field86J |
getField86J()
Iterates through block4 fields and return the first one whose name matches 86J,
or null if none is found.
The first occurrence of field 86J at MT350 is expected to be the only one. |
Field87A |
getField87A()
Iterates through block4 fields and return the first one whose name matches 87A,
or null if none is found.
The first occurrence of field 87A at MT350 is expected to be the only one. |
Field87D |
getField87D()
Iterates through block4 fields and return the first one whose name matches 87D,
or null if none is found.
The first occurrence of field 87D at MT350 is expected to be the only one. |
Field87J |
getField87J()
Iterates through block4 fields and return the first one whose name matches 87J,
or null if none is found.
The first occurrence of field 87J at MT350 is expected to be the only one. |
Field94A |
getField94A()
Iterates through block4 fields and return the first one whose name matches 94A,
or null if none is found.
The first occurrence of field 94A at MT350 is expected to be the only one. |
java.lang.String |
getMessageType()
Returns this MT number
|
MT350.SequenceA |
getSequenceA()
Get the single occurrence of SequenceA using field field 15 as sequence boundary.
|
MT350.SequenceA |
getSequenceA(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceA using field field 15 as sequence boundary.
|
MT350.SequenceB |
getSequenceB()
Get the single occurrence of SequenceB using field field 15 as sequence boundary.
|
MT350.SequenceB |
getSequenceB(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceB using field field 15 as sequence boundary.
|
MT350.SequenceC |
getSequenceC()
Get the single occurrence of SequenceC using field field 15 as sequence boundary.
|
MT350.SequenceC |
getSequenceC(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceC using field field 15 as sequence boundary.
|
MT350.SequenceD |
getSequenceD()
Get the single occurrence of SequenceD using field field 15 as sequence boundary.
|
MT350.SequenceD |
getSequenceD(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceD using field field 15 as sequence boundary.
|
MT350.SequenceD1 |
getSequenceD1()
Get the single occurrence of SequenceD1 delimited by leading tag and end, with an optional tail.
|
MT350.SequenceD1 |
getSequenceD1(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceD1 delimited by leading tag and end, with an optional tail.
|
static MT350 |
parse(java.io.File file)
Creates a new MT350 by parsing a file with the message content in its swift FIN format.
If the file contains multiple messages, only the first one will be parsed. |
static MT350 |
parse(java.io.InputStream stream)
Creates a new MT350 by parsing a input stream with the message content in its swift FIN format, using "UTF-8" as encoding.
If the stream contains multiple messages, only the first one will be parsed. |
static MT350 |
parse(MtSwiftMessage m)
Creates an MT350 initialized with the parameter MtSwiftMessage.
|
static MT350 |
parse(java.lang.String fin)
Creates a new MT350 by parsing a String with the message content in its swift FIN format.
If the fin parameter cannot be parsed, the returned MT350 will have its internal message object initialized (blocks will be created) but empty. If the string contains multiple messages, only the first one will be parsed. |
addField, containsSequence, containsSequenceList, create, create, getApplicationId, getFields, getLogicalTerminal, getMessagePriority, getMtId, getReceiver, getSender, getSequence, getSequence, getSequence, getSequenceList, getSequenceList, getSequenceNumber, getServiceId, getSessionNumber, getSignature, getSwiftMessage, getSwiftMessageNotNullOrException, getVariant, isIncoming, isInput, isOutgoing, isOutput, isType, message, nameFromClass, read, setReceiver, setReceiver, setSender, setSender, setSignature, setSwiftMessage, tag, tags, toJson, toString, write, write, xml
getMessageStandardType, isMT, isMX
public static final int SRU
public static final java.lang.String NAME
MT
public MT350(SwiftMessage m)
m
- swift message with the MT350 contentpublic MT350(MtSwiftMessage m)
m
- swift message with the MT350 content, the parameter can not be nullMT350(String)
public MT350()
public MT350(java.lang.String sender, java.lang.String receiver)
sender
- the sender address as a bic8, bic11 or full logical terminal consisting of 12 charactersreceiver
- the receiver address as a bic8, bic11 or full logical terminal consisting of 12 characterspublic MT350(java.lang.String fin)
fin
- a string with the MT message in its FIN swift formatpublic MT350(java.io.InputStream stream) throws java.io.IOException
stream
- an input stream in UTF-8 encoding with the MT message in its FIN swift format.java.io.IOException
- if the stream data cannot be readpublic MT350(java.io.File file) throws java.io.IOException
file
- a file with the MT message in its FIN swift format.java.io.IOException
- if the file content cannot be readpublic static MT350 parse(MtSwiftMessage m)
m
- swift message with the MT350 contentMT350(String)
public static MT350 parse(java.lang.String fin)
fin
- a string with the MT message in its FIN swift format. fin may be null in which case this method returns nullpublic static MT350 parse(java.io.InputStream stream) throws java.io.IOException
stream
- an input stream in UTF-8 encoding with the MT message in its FIN swift format.java.io.IOException
- if the stream data cannot be readpublic static MT350 parse(java.io.File file) throws java.io.IOException
file
- a file with the MT message in its FIN swift format.java.io.IOException
- if the file content cannot be readpublic java.lang.String getMessageType()
getMessageType
in class AbstractMT
public MT350 append(SwiftTagListBlock block)
append
in class AbstractMT
block
- to appendpublic MT350 append(Tag... tags)
append
in class AbstractMT
tags
- to appendpublic MT350 append(Field... fields)
append
in class AbstractMT
fields
- to appendpublic static MT350 fromJson(java.lang.String json)
For generic conversion of JSON into the corresopnding MT instance
see AbstractMT.fromJson(String)
json
- a JSON representation of an MT350 messagepublic Field15A getField15A()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field20 getField20()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field21 getField21()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field22A getField22A()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field94A getField94A()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field22C getField22C()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field21N getField21N()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field82A getField82A()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field82D getField82D()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field82J getField82J()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field87A getField87A()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field87D getField87D()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field87J getField87J()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field83A getField83A()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field83D getField83D()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field83J getField83J()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field72 getField72()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field15B getField15B()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field30G getField30G()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field32B getField32B()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field30V getField30V()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field37M getField37M()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field14D getField14D()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field30F getField30F()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field15C getField15C()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field53A getField53A()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field53D getField53D()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field53J getField53J()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field86A getField86A()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field86D getField86D()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field86J getField86J()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field56A getField56A()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field56D getField56D()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field56J getField56J()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field57A getField57A()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field57D getField57D()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field57J getField57J()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field58A getField58A()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field58D getField58D()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field58J getField58J()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field15D getField15D()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field33B getField33B()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field36 getField36()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field71F getField71F()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public java.util.List<Field34B> getField34B()
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<Field37L> getField37L()
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<Field33E> getField33E()
Collections.emptyList()
if none is found.Collections.emptyList()
if none is not foundjava.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)
@SequenceStyle(value=SPLIT_BY_15) public MT350.SequenceA getSequenceA()
@SequenceStyle(value=SPLIT_BY_15) public MT350.SequenceA getSequenceA(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceA within it@SequenceStyle(value=SPLIT_BY_15) public MT350.SequenceB getSequenceB()
@SequenceStyle(value=SPLIT_BY_15) public MT350.SequenceB getSequenceB(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceB within it@SequenceStyle(value=SPLIT_BY_15) public MT350.SequenceC getSequenceC()
@SequenceStyle(value=SPLIT_BY_15) public MT350.SequenceC getSequenceC(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceC within it@SequenceStyle(value=SPLIT_BY_15) public MT350.SequenceD getSequenceD()
@SequenceStyle(value=SPLIT_BY_15) public MT350.SequenceD getSequenceD(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceD within it@SequenceStyle(value=GENERATED_FIXED_WITH_OPTIONAL_TAIL) public MT350.SequenceD1 getSequenceD1()
SwiftTagListBlock.getSubBlockDelimitedWithOptionalTail(String[], String[], String[])
@SequenceStyle(value=GENERATED_FIXED_WITH_OPTIONAL_TAIL) public MT350.SequenceD1 getSequenceD1(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceD1 within itSwiftTagListBlock.getSubBlockDelimitedWithOptionalTail(String[], String[], String[])