@Generated public class MT365 extends AbstractMT implements java.io.Serializable
SWIFT MT365 (ISO 15022) message structure:
This source code is specific to release SRU 2023
For additional resources check https://www.prowidesoftware.com/resources
Modifier and Type | Class and Description |
---|---|
static class |
MT365.SequenceA
Class to model Sequence "A" in MT 365.
|
static class |
MT365.SequenceB
Class to model Sequence "B" in MT 365.
|
static class |
MT365.SequenceE
Class to model Sequence "E" in MT 365.
|
static class |
MT365.SequenceJ
Class to model Sequence "J" in MT 365.
|
static class |
MT365.SequenceK
Class to model Sequence "K" in MT 365.
|
static class |
MT365.SequenceL
Class to model Sequence "L" in MT 365.
|
static class |
MT365.SequenceM
Class to model Sequence "M" in MT 365.
|
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 |
---|
MT365()
Creates and initializes a new MT365 input message setting TEST BICS as sender and receiver.
|
MT365(java.io.File file)
Creates a new MT365 by parsing a file with the message content in its swift FIN format.
|
MT365(java.io.InputStream stream)
Creates a new MT365 by parsing a input stream with the message content in its swift FIN format, using "UTF-8" as encoding.
|
MT365(MtSwiftMessage m)
Creates an MT365 initialized with the parameter MtSwiftMessage.
|
MT365(java.lang.String fin)
Creates a new MT365 by parsing a String with the message content in its swift FIN format.
|
MT365(java.lang.String sender,
java.lang.String receiver)
Creates and initializes a new MT365 input message from sender to receiver.
|
MT365(SwiftMessage m)
Creates an MT365 initialized with the parameter SwiftMessage.
|
Modifier and Type | Method and Description |
---|---|
MT365 |
append(Field... fields)
Add all the fields to the end of the block4.
|
MT365 |
append(SwiftTagListBlock block)
Add all tags from block to the end of the block4.
|
MT365 |
append(Tag... tags)
Add all tags to the end of the block4.
|
static MT365 |
fromJson(java.lang.String json)
Creates an MT365 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.
|
Field15B |
getField15B()
Iterates through block4 fields and return the first one whose name matches 15B,
or null if none is found.
|
Field15E |
getField15E()
Iterates through block4 fields and return the first one whose name matches 15E,
or null if none is found.
|
Field15J |
getField15J()
Iterates through block4 fields and return the first one whose name matches 15J,
or null if none is found.
|
Field15K |
getField15K()
Iterates through block4 fields and return the first one whose name matches 15K,
or null if none is found.
|
Field15L |
getField15L()
Iterates through block4 fields and return the first one whose name matches 15L,
or null if none is found.
|
Field15M |
getField15M()
Iterates through block4 fields and return the first one whose name matches 15M,
or null if none is found.
|
Field20 |
getField20()
Iterates through block4 fields and return the first one whose name matches 20,
or null if none is found.
|
Field21 |
getField21()
Iterates through block4 fields and return the first one whose name matches 21,
or null if none is found.
|
Field21B |
getField21B()
Iterates through block4 fields and return the first one whose name matches 21B,
or null if none is found.
|
Field21N |
getField21N()
Iterates through block4 fields and return the first one whose name matches 21N,
or null if none is found.
|
Field22A |
getField22A()
Iterates through block4 fields and return the first one whose name matches 22A,
or null if none is found.
|
Field22B |
getField22B()
Iterates through block4 fields and return the first one whose name matches 22B,
or null if none is found.
|
Field22C |
getField22C()
Iterates through block4 fields and return the first one whose name matches 22C,
or null if none is found.
|
Field22D |
getField22D()
Iterates through block4 fields and return the first one whose name matches 22D,
or null if none is found.
|
Field23A |
getField23A()
Iterates through block4 fields and return the first one whose name matches 23A,
or null if none is found.
|
Field29A |
getField29A()
Iterates through block4 fields and return the first one whose name matches 29A,
or null if none is found.
|
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. |
Field30P |
getField30P()
Iterates through block4 fields and return the first one whose name matches 30P,
or null if none is found.
|
Field30Q |
getField30Q()
Iterates through block4 fields and return the first one whose name matches 30Q,
or null if none is found.
|
Field30T |
getField30T()
Iterates through block4 fields and return the first one whose name matches 30T,
or null if none is found.
|
Field30V |
getField30V()
Iterates through block4 fields and return the first one whose name matches 30V,
or null if none is found.
|
Field32B |
getField32B()
Iterates through block4 fields and return the first one whose name matches 32B,
or null if none is found.
|
Field32G |
getField32G()
Iterates through block4 fields and return the first one whose name matches 32G,
or null if none is found.
|
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. |
Field33B |
getField33B()
Iterates through block4 fields and return the first one whose name matches 33B,
or null if none is found.
|
Field33E |
getField33E()
Iterates through block4 fields and return the first one whose name matches 33E,
or null if none is found.
|
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. |
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. |
Field37N |
getField37N()
Iterates through block4 fields and return the first one whose name matches 37N,
or null if none is found.
|
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. |
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. |
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. |
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. |
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. |
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. |
Field72 |
getField72()
Iterates through block4 fields and return the first one whose name matches 72,
or null if none is found.
|
Field82A |
getField82A()
Iterates through block4 fields and return the first one whose name matches 82A,
or null if none is found.
|
Field82D |
getField82D()
Iterates through block4 fields and return the first one whose name matches 82D,
or null if none is found.
|
Field83A |
getField83A()
Iterates through block4 fields and return the first one whose name matches 83A,
or null if none is found.
|
Field83D |
getField83D()
Iterates through block4 fields and return the first one whose name matches 83D,
or null if none is found.
|
Field83J |
getField83J()
Iterates through block4 fields and return the first one whose name matches 83J,
or null if none is found.
|
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. |
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. |
Field87A |
getField87A()
Iterates through block4 fields and return the first one whose name matches 87A,
or null if none is found.
|
Field87D |
getField87D()
Iterates through block4 fields and return the first one whose name matches 87D,
or null if none is found.
|
Field94A |
getField94A()
Iterates through block4 fields and return the first one whose name matches 94A,
or null if none is found.
|
java.lang.String |
getMessageType()
Returns this MT number.
|
MT365.SequenceA |
getSequenceA()
Get the single occurrence of SequenceA using field field 15 as sequence boundary.
|
MT365.SequenceA |
getSequenceA(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceA using field field 15 as sequence boundary.
|
MT365.SequenceB |
getSequenceB()
Get the single occurrence of SequenceB using field field 15 as sequence boundary.
|
MT365.SequenceB |
getSequenceB(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceB using field field 15 as sequence boundary.
|
MT365.SequenceE |
getSequenceE()
Get the single occurrence of SequenceE using field field 15 as sequence boundary.
|
MT365.SequenceE |
getSequenceE(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceE using field field 15 as sequence boundary.
|
MT365.SequenceJ |
getSequenceJ()
Get the single occurrence of SequenceJ using field field 15 as sequence boundary.
|
MT365.SequenceJ |
getSequenceJ(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceJ using field field 15 as sequence boundary.
|
MT365.SequenceK |
getSequenceK()
Get the single occurrence of SequenceK using field field 15 as sequence boundary.
|
MT365.SequenceK |
getSequenceK(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceK using field field 15 as sequence boundary.
|
MT365.SequenceL |
getSequenceL()
Get the single occurrence of SequenceL using field field 15 as sequence boundary.
|
MT365.SequenceL |
getSequenceL(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceL using field field 15 as sequence boundary.
|
MT365.SequenceM |
getSequenceM()
Get the single occurrence of SequenceM using field field 15 as sequence boundary.
|
MT365.SequenceM |
getSequenceM(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceM using field field 15 as sequence boundary.
|
static MT365 |
parse(java.io.File file)
Creates a new MT365 by parsing a file with the message content in its swift FIN format.
|
static MT365 |
parse(java.io.InputStream stream)
Creates a new MT365 by parsing a input stream with the message content in its swift FIN format, using "UTF-8" as encoding.
|
static MT365 |
parse(MtSwiftMessage m)
Creates an MT365 initialized with the parameter MtSwiftMessage.
|
static MT365 |
parse(java.lang.String fin)
Creates a new MT365 by parsing a String with the message content in its swift FIN format.
|
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
public MT365(SwiftMessage m)
m
- swift message with the MT365 contentpublic MT365(MtSwiftMessage m)
m
- swift message with the MT365 content, the parameter can not be nullMT365(String)
public MT365()
public MT365(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 MT365(java.lang.String fin)
fin
- a string with the MT message in its FIN swift formatpublic MT365(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 MT365(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 MT365 parse(MtSwiftMessage m)
m
- swift message with the MT365 contentMT365(String)
public static MT365 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 MT365 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 MT365 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 MT365 append(SwiftTagListBlock block)
append
in class AbstractMT
block
- to appendpublic MT365 append(Tag... tags)
append
in class AbstractMT
tags
- to appendpublic MT365 append(Field... fields)
append
in class AbstractMT
fields
- to appendpublic static MT365 fromJson(java.lang.String json)
For generic conversion of JSON into the corresponding MT instance
see AbstractMT.fromJson(String)
json
- a JSON representation of an MT365 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 Field33B getField33B()
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 Field33E getField33E()
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 Field15J getField15J()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public Field15K getField15K()
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.
Multiple occurrences of field 37M at MT365 are expected at one sequence or across several sequences.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.
Multiple occurrences of field 37G at MT365 are expected at one sequence or across several sequences.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.
Multiple occurrences of field 30F at MT365 are expected at one sequence or across several sequences.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.
Multiple occurrences of field 32M at MT365 are expected at one sequence or across several sequences.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.
Multiple occurrences of field 53A at MT365 are expected at one sequence or across several sequences.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.
Multiple occurrences of field 53D at MT365 are expected at one sequence or across several sequences.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.
Multiple occurrences of field 56A at MT365 are expected at one sequence or across several sequences.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.
Multiple occurrences of field 56D at MT365 are expected at one sequence or across several sequences.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.
Multiple occurrences of field 86A at MT365 are expected at one sequence or across several sequences.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.
Multiple occurrences of field 86D at MT365 are expected at one sequence or across several sequences.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.
Multiple occurrences of field 57A at MT365 are expected at one sequence or across several sequences.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.
Multiple occurrences of field 57D at MT365 are expected at one sequence or across several sequences.Collections.emptyList()
if none is not foundjava.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)
@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceA getSequenceA()
@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceA getSequenceA(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceA within it@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceB getSequenceB()
@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceB getSequenceB(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceB within it@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceE getSequenceE()
@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceE getSequenceE(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceE within it@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceJ getSequenceJ()
@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceJ getSequenceJ(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceJ within it@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceK getSequenceK()
@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceK getSequenceK(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceK within it@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceL getSequenceL()
@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceL getSequenceL(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceL within it@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceM getSequenceM()
@SequenceStyle(value=SPLIT_BY_15) public MT365.SequenceM getSequenceM(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceM within it