@Generated public class MT364 extends AbstractMT implements java.io.Serializable
SWIFT MT364 (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 |
MT364.SequenceA
Class to model Sequence "A" in MT 364
|
static class |
MT364.SequenceB
Class to model Sequence "B" in MT 364
|
static class |
MT364.SequenceE
Class to model Sequence "E" in MT 364
|
static class |
MT364.SequenceL
Class to model Sequence "L" in MT 364
|
static class |
MT364.SequenceM
Class to model Sequence "M" in MT 364
|
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 |
---|
MT364()
Creates and initializes a new MT364 input message setting TEST BICS as sender and receiver.
All mandatory header attributes are completed with default values. |
MT364(java.io.File file)
Creates a new MT364 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. |
MT364(java.io.InputStream stream)
Creates a new MT364 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. |
MT364(MtSwiftMessage m)
Creates an MT364 initialized with the parameter MtSwiftMessage.
|
MT364(java.lang.String fin)
Creates a new MT364 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. |
MT364(java.lang.String sender,
java.lang.String receiver)
Creates and initializes a new MT364 input message from sender to receiver.
All mandatory header attributes are completed with default values. |
MT364(SwiftMessage m)
Creates an MT364 initialized with the parameter SwiftMessage
|
Modifier and Type | Method and Description |
---|---|
MT364 |
append(Field... fields)
Add all the fields to the end of the block4.
|
MT364 |
append(SwiftTagListBlock block)
Add all tags from block to the end of the block4.
|
MT364 |
append(Tag... tags)
Add all tags to the end of the block4.
|
static MT364 |
fromJson(java.lang.String json)
Creates an MT364 messages from its JSON representation.
|
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 MT364 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 MT364 is expected to be the only one. |
Field15E |
getField15E()
Iterates through block4 fields and return the first one whose name matches 15E,
or null if none is found.
The first occurrence of field 15E at MT364 is expected to be the only one. |
Field15L |
getField15L()
Iterates through block4 fields and return the first one whose name matches 15L,
or null if none is found.
The first occurrence of field 15L at MT364 is expected to be the only one. |
Field15M |
getField15M()
Iterates through block4 fields and return the first one whose name matches 15M,
or null if none is found.
The first occurrence of field 15M at MT364 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 MT364 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 MT364 is expected to be the only one. |
Field21B |
getField21B()
Iterates through block4 fields and return the first one whose name matches 21B,
or null if none is found.
The first occurrence of field 21B at MT364 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 MT364 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 MT364 is expected to be the only one. |
Field22B |
getField22B()
Iterates through block4 fields and return the first one whose name matches 22B,
or null if none is found.
The first occurrence of field 22B at MT364 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 MT364 is expected to be the only one. |
Field22D |
getField22D()
Iterates through block4 fields and return the first one whose name matches 22D,
or null if none is found.
The first occurrence of field 22D at MT364 is expected to be the only one. |
Field23A |
getField23A()
Iterates through block4 fields and return the first one whose name matches 23A,
or null if none is found.
The first occurrence of field 23A at MT364 is expected to be the only one. |
Field29A |
getField29A()
Iterates through block4 fields and return the first one whose name matches 29A,
or null if none is found.
The first occurrence of field 29A at MT364 is expected to be the only one. |
java.util.List<Field30F> |
getField30F()
Iterates through block4 fields and return all occurrences of fields whose names matches 30F,
or
Collections.emptyList() if none is found.Multiple occurrences of field 30F at MT364 are expected at one sequence or across several sequences. |
Field30P |
getField30P()
Iterates through block4 fields and return the first one whose name matches 30P,
or null if none is found.
The first occurrence of field 30P at MT364 is expected to be the only one. |
Field30Q |
getField30Q()
Iterates through block4 fields and return the first one whose name matches 30Q,
or null if none is found.
The first occurrence of field 30Q at MT364 is expected to be the only one. |
Field30T |
getField30T()
Iterates through block4 fields and return the first one whose name matches 30T,
or null if none is found.
The first occurrence of field 30T at MT364 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 MT364 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 MT364 is expected to be the only one. |
Field32G |
getField32G()
Iterates through block4 fields and return the first one whose name matches 32G,
or null if none is found.
The first occurrence of field 32G at MT364 is expected to be the only one. |
java.util.List<Field32M> |
getField32M()
Iterates through block4 fields and return all occurrences of fields whose names matches 32M,
or
Collections.emptyList() if none is found.Multiple occurrences of field 32M at MT364 are expected at one sequence or across several sequences. |
java.util.List<Field37G> |
getField37G()
Iterates through block4 fields and return all occurrences of fields whose names matches 37G,
or
Collections.emptyList() if none is found.Multiple occurrences of field 37G at MT364 are expected at one sequence or across several sequences. |
java.util.List<Field37M> |
getField37M()
Iterates through block4 fields and return all occurrences of fields whose names matches 37M,
or
Collections.emptyList() if none is found.Multiple occurrences of field 37M at MT364 are expected at one sequence or across several sequences. |
Field37N |
getField37N()
Iterates through block4 fields and return the first one whose name matches 37N,
or null if none is found.
The first occurrence of field 37N at MT364 is expected to be the only one. |
java.util.List<Field53A> |
getField53A()
Iterates through block4 fields and return all occurrences of fields whose names matches 53A,
or
Collections.emptyList() if none is found.Multiple occurrences of field 53A at MT364 are expected at one sequence or across several sequences. |
java.util.List<Field53D> |
getField53D()
Iterates through block4 fields and return all occurrences of fields whose names matches 53D,
or
Collections.emptyList() if none is found.Multiple occurrences of field 53D at MT364 are expected at one sequence or across several sequences. |
java.util.List<Field56A> |
getField56A()
Iterates through block4 fields and return all occurrences of fields whose names matches 56A,
or
Collections.emptyList() if none is found.Multiple occurrences of field 56A at MT364 are expected at one sequence or across several sequences. |
java.util.List<Field56D> |
getField56D()
Iterates through block4 fields and return all occurrences of fields whose names matches 56D,
or
Collections.emptyList() if none is found.Multiple occurrences of field 56D at MT364 are expected at one sequence or across several sequences. |
java.util.List<Field57A> |
getField57A()
Iterates through block4 fields and return all occurrences of fields whose names matches 57A,
or
Collections.emptyList() if none is found.Multiple occurrences of field 57A at MT364 are expected at one sequence or across several sequences. |
java.util.List<Field57D> |
getField57D()
Iterates through block4 fields and return all occurrences of fields whose names matches 57D,
or
Collections.emptyList() if none is found.Multiple occurrences of field 57D at MT364 are expected at one sequence or across several sequences. |
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 MT364 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 MT364 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 MT364 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 MT364 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 MT364 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 MT364 is expected to be the only one. |
java.util.List<Field86A> |
getField86A()
Iterates through block4 fields and return all occurrences of fields whose names matches 86A,
or
Collections.emptyList() if none is found.Multiple occurrences of field 86A at MT364 are expected at one sequence or across several sequences. |
java.util.List<Field86D> |
getField86D()
Iterates through block4 fields and return all occurrences of fields whose names matches 86D,
or
Collections.emptyList() if none is found.Multiple occurrences of field 86D at MT364 are expected at one sequence or across several sequences. |
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 MT364 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 MT364 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 MT364 is expected to be the only one. |
java.lang.String |
getMessageType()
Returns this MT number
|
MT364.SequenceA |
getSequenceA()
Get the single occurrence of SequenceA using field field 15 as sequence boundary.
|
MT364.SequenceA |
getSequenceA(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceA using field field 15 as sequence boundary.
|
MT364.SequenceB |
getSequenceB()
Get the single occurrence of SequenceB using field field 15 as sequence boundary.
|
MT364.SequenceB |
getSequenceB(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceB using field field 15 as sequence boundary.
|
MT364.SequenceE |
getSequenceE()
Get the single occurrence of SequenceE using field field 15 as sequence boundary.
|
MT364.SequenceE |
getSequenceE(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceE using field field 15 as sequence boundary.
|
MT364.SequenceL |
getSequenceL()
Get the single occurrence of SequenceL using field field 15 as sequence boundary.
|
MT364.SequenceL |
getSequenceL(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceL using field field 15 as sequence boundary.
|
MT364.SequenceM |
getSequenceM()
Get the single occurrence of SequenceM using field field 15 as sequence boundary.
|
MT364.SequenceM |
getSequenceM(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceM using field field 15 as sequence boundary.
|
static MT364 |
parse(java.io.File file)
Creates a new MT364 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 MT364 |
parse(java.io.InputStream stream)
Creates a new MT364 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 MT364 |
parse(MtSwiftMessage m)
Creates an MT364 initialized with the parameter MtSwiftMessage.
|
static MT364 |
parse(java.lang.String fin)
Creates a new MT364 by parsing a String with the message content in its swift FIN format.
If the fin parameter cannot be parsed, the returned MT364 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 MT364(SwiftMessage m)
m
- swift message with the MT364 contentpublic MT364(MtSwiftMessage m)
m
- swift message with the MT364 content, the parameter can not be nullMT364(String)
public MT364()
public MT364(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 MT364(java.lang.String fin)
fin
- a string with the MT message in its FIN swift formatpublic MT364(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 MT364(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 MT364 parse(MtSwiftMessage m)
m
- swift message with the MT364 contentMT364(String)
public static MT364 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 MT364 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 MT364 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 MT364 append(SwiftTagListBlock block)
append
in class AbstractMT
block
- to appendpublic MT364 append(Tag... tags)
append
in class AbstractMT
tags
- to appendpublic MT364 append(Field... fields)
append
in class AbstractMT
fields
- to appendpublic static MT364 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 MT364 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 Field22B getField22B()
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 Field23A getField23A()
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 Field21B getField21B()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field30T getField30T()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field30Q getField30Q()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field30P getField30P()
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 Field32B getField32B()
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 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 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 Field22D getField22D()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field32G getField32G()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field37N getField37N()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field29A getField29A()
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 Field15E getField15E()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field15L getField15L()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field15M getField15M()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public java.util.List<Field37M> getField37M()
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<Field37G> getField37G()
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<Field30F> getField30F()
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<Field32M> getField32M()
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<Field53A> getField53A()
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<Field53D> getField53D()
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<Field56A> getField56A()
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<Field56D> getField56D()
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<Field86A> getField86A()
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<Field86D> getField86D()
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<Field57A> getField57A()
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<Field57D> getField57D()
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 MT364.SequenceA getSequenceA()
@SequenceStyle(value=SPLIT_BY_15) public MT364.SequenceA getSequenceA(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceA within it@SequenceStyle(value=SPLIT_BY_15) public MT364.SequenceB getSequenceB()
@SequenceStyle(value=SPLIT_BY_15) public MT364.SequenceB getSequenceB(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceB within it@SequenceStyle(value=SPLIT_BY_15) public MT364.SequenceE getSequenceE()
@SequenceStyle(value=SPLIT_BY_15) public MT364.SequenceE getSequenceE(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceE within it@SequenceStyle(value=SPLIT_BY_15) public MT364.SequenceL getSequenceL()
@SequenceStyle(value=SPLIT_BY_15) public MT364.SequenceL getSequenceL(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceL within it@SequenceStyle(value=SPLIT_BY_15) public MT364.SequenceM getSequenceM()
@SequenceStyle(value=SPLIT_BY_15) public MT364.SequenceM getSequenceM(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceM within it