@Generated public class MT362 extends AbstractMT implements java.io.Serializable
SWIFT MT362 (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 |
MT362.SequenceA
Class to model Sequence "A" in MT 362.
|
static class |
MT362.SequenceB
Class to model Sequence "B" in MT 362.
|
static class |
MT362.SequenceC
Class to model Sequence "C" in MT 362.
|
static class |
MT362.SequenceD
Class to model Sequence "D" in MT 362.
|
static class |
MT362.SequenceE
Class to model Sequence "E" in MT 362.
|
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 |
---|
MT362()
Creates and initializes a new MT362 input message setting TEST BICS as sender and receiver.
|
MT362(java.io.File file)
Creates a new MT362 by parsing a file with the message content in its swift FIN format.
|
MT362(java.io.InputStream stream)
Creates a new MT362 by parsing a input stream with the message content in its swift FIN format, using "UTF-8" as encoding.
|
MT362(MtSwiftMessage m)
Creates an MT362 initialized with the parameter MtSwiftMessage.
|
MT362(java.lang.String fin)
Creates a new MT362 by parsing a String with the message content in its swift FIN format.
|
MT362(java.lang.String sender,
java.lang.String receiver)
Creates and initializes a new MT362 input message from sender to receiver.
|
MT362(SwiftMessage m)
Creates an MT362 initialized with the parameter SwiftMessage.
|
Modifier and Type | Method and Description |
---|---|
MT362 |
append(Field... fields)
Add all the fields to the end of the block4.
|
MT362 |
append(SwiftTagListBlock block)
Add all tags from block to the end of the block4.
|
MT362 |
append(Tag... tags)
Add all tags to the end of the block4.
|
static MT362 |
fromJson(java.lang.String json)
Creates an MT362 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.
|
Field15C |
getField15C()
Iterates through block4 fields and return the first one whose name matches 15C,
or null if none is found.
|
Field15D |
getField15D()
Iterates through block4 fields and return the first one whose name matches 15D,
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.
|
java.util.List<Field18A> |
getField18A()
Iterates through block4 fields and return all occurrences of fields whose names matches 18A,
or
Collections.emptyList() 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.
|
Field22C |
getField22C()
Iterates through block4 fields and return the first one whose name matches 22C,
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.
|
java.util.List<Field30Q> |
getField30Q()
Iterates through block4 fields and return all occurrences of fields whose names matches 30Q,
or
Collections.emptyList() 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.
|
java.util.List<Field30X> |
getField30X()
Iterates through block4 fields and return all occurrences of fields whose names matches 30X,
or
Collections.emptyList() if none is found. |
java.util.List<Field32H> |
getField32H()
Iterates through block4 fields and return all occurrences of fields whose names matches 32H,
or
Collections.emptyList() 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. |
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. |
java.util.List<Field33F> |
getField33F()
Iterates through block4 fields and return all occurrences of fields whose names matches 33F,
or
Collections.emptyList() 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. |
java.util.List<Field37N> |
getField37N()
Iterates through block4 fields and return all occurrences of fields whose names matches 37N,
or
Collections.emptyList() if none is found. |
java.util.List<Field37R> |
getField37R()
Iterates through block4 fields and return all occurrences of fields whose names matches 37R,
or
Collections.emptyList() if none is found. |
java.util.List<Field37V> |
getField37V()
Iterates through block4 fields and return all occurrences of fields whose names matches 37V,
or
Collections.emptyList() 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.
|
MT362.SequenceA |
getSequenceA()
Get the single occurrence of SequenceA using field field 15 as sequence boundary.
|
MT362.SequenceA |
getSequenceA(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceA using field field 15 as sequence boundary.
|
MT362.SequenceB |
getSequenceB()
Get the single occurrence of SequenceB using field field 15 as sequence boundary.
|
MT362.SequenceB |
getSequenceB(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceB using field field 15 as sequence boundary.
|
MT362.SequenceC |
getSequenceC()
Get the single occurrence of SequenceC using field field 15 as sequence boundary.
|
MT362.SequenceC |
getSequenceC(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceC using field field 15 as sequence boundary.
|
MT362.SequenceD |
getSequenceD()
Get the single occurrence of SequenceD using field field 15 as sequence boundary.
|
MT362.SequenceD |
getSequenceD(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceD using field field 15 as sequence boundary.
|
MT362.SequenceE |
getSequenceE()
Get the single occurrence of SequenceE using field field 15 as sequence boundary.
|
MT362.SequenceE |
getSequenceE(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceE using field field 15 as sequence boundary.
|
static MT362 |
parse(java.io.File file)
Creates a new MT362 by parsing a file with the message content in its swift FIN format.
|
static MT362 |
parse(java.io.InputStream stream)
Creates a new MT362 by parsing a input stream with the message content in its swift FIN format, using "UTF-8" as encoding.
|
static MT362 |
parse(MtSwiftMessage m)
Creates an MT362 initialized with the parameter MtSwiftMessage.
|
static MT362 |
parse(java.lang.String fin)
Creates a new MT362 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 MT362(SwiftMessage m)
m
- swift message with the MT362 contentpublic MT362(MtSwiftMessage m)
m
- swift message with the MT362 content, the parameter can not be nullMT362(String)
public MT362()
public MT362(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 MT362(java.lang.String fin)
fin
- a string with the MT message in its FIN swift formatpublic MT362(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 MT362(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 MT362 parse(MtSwiftMessage m)
m
- swift message with the MT362 contentMT362(String)
public static MT362 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 MT362 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 MT362 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 MT362 append(SwiftTagListBlock block)
append
in class AbstractMT
block
- to appendpublic MT362 append(Tag... tags)
append
in class AbstractMT
tags
- to appendpublic MT362 append(Field... fields)
append
in class AbstractMT
fields
- to appendpublic static MT362 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 MT362 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 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 Field30V getField30V()
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 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 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 Field15C getField15C()
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 Field15E getField15E()
java.lang.IllegalStateException
- if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)
public java.util.List<Field37G> getField37G()
Collections.emptyList()
if none is found.
Multiple occurrences of field 37G at MT362 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 MT362 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 MT362 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 MT362 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 MT362 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 MT362 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 MT362 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 MT362 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 MT362 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 MT362 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 MT362 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<Field33F> getField33F()
Collections.emptyList()
if none is found.
Multiple occurrences of field 33F at MT362 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<Field30X> getField30X()
Collections.emptyList()
if none is found.
Multiple occurrences of field 30X at MT362 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<Field30Q> getField30Q()
Collections.emptyList()
if none is found.
Multiple occurrences of field 30Q at MT362 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<Field37V> getField37V()
Collections.emptyList()
if none is found.
Multiple occurrences of field 37V at MT362 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<Field37R> getField37R()
Collections.emptyList()
if none is found.
Multiple occurrences of field 37R at MT362 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<Field37M> getField37M()
Collections.emptyList()
if none is found.
Multiple occurrences of field 37M at MT362 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<Field32H> getField32H()
Collections.emptyList()
if none is found.
Multiple occurrences of field 32H at MT362 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<Field33E> getField33E()
Collections.emptyList()
if none is found.
Multiple occurrences of field 33E at MT362 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<Field37N> getField37N()
Collections.emptyList()
if none is found.
Multiple occurrences of field 37N at MT362 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<Field18A> getField18A()
Collections.emptyList()
if none is found.
Multiple occurrences of field 18A at MT362 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 MT362.SequenceA getSequenceA()
@SequenceStyle(value=SPLIT_BY_15) public MT362.SequenceA getSequenceA(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceA within it@SequenceStyle(value=SPLIT_BY_15) public MT362.SequenceB getSequenceB()
@SequenceStyle(value=SPLIT_BY_15) public MT362.SequenceB getSequenceB(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceB within it@SequenceStyle(value=SPLIT_BY_15) public MT362.SequenceC getSequenceC()
@SequenceStyle(value=SPLIT_BY_15) public MT362.SequenceC getSequenceC(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceC within it@SequenceStyle(value=SPLIT_BY_15) public MT362.SequenceD getSequenceD()
@SequenceStyle(value=SPLIT_BY_15) public MT362.SequenceD getSequenceD(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceD within it@SequenceStyle(value=SPLIT_BY_15) public MT362.SequenceE getSequenceE()
@SequenceStyle(value=SPLIT_BY_15) public MT362.SequenceE getSequenceE(SwiftTagListBlock parentSequence)
parentSequence
- a not null parent sequence to find SequenceE within it