@Generated public class MT256 extends AbstractMT implements Serializable
This source code is specific to release SRU 2016
For additional resources check http://www.prowidesoftware.com/resources
| Modifier and Type | Class and Description |
|---|---|
static class |
MT256.SequenceA
Class for Sequence "A" of MT 256
|
static class |
MT256.SequenceB
Class for Sequence "B" of MT 256
|
static class |
MT256.SequenceC
Class for Sequence "C" of MT 256
|
| Modifier and Type | Field and Description |
|---|---|
static String |
AMAM
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsA.AMAM
|
static String |
AMTL
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsA.AMTL
|
static String |
CLOS
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsC.CLOS
|
static String |
COLN
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsC.COLN
|
static String |
DRAW
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsD.DRAW
|
static String |
DUPL
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsD.DUPL
|
static String |
FRAU
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsF.FRAU
|
static String |
FROZ
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsF.FROZ
|
static String |
FRWD
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsF.FRWD
|
static String |
INCH
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsI.INCH
|
static String |
INSF
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsI.INSF
|
static String |
INSI
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsI.INSI
|
static String |
INVA
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsI.INVA
|
static String |
NAME
Constant for MT name, this is part of the classname, after
MT |
static String |
NELI
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsN.NELI
|
static String |
NMAT
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsN.NMAT
|
static String |
OTHR
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsO.OTHR
|
static String |
REVO
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsR.REVO
|
static int |
SRU
Constant identifying the SRU to which this class belongs to.
|
static String |
STLD
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsS.STLD
|
static String |
STOP
Deprecated.
use instead com.prowidesoftware.swift.SchemeConstantsS.STOP
|
m| Constructor and Description |
|---|
MT256()
Creates and initializes a new MT256 input message setting TEST BICS as sender and receiver.
All mandatory header attributes are completed with default values. |
MT256(File file)
Creates a new MT256 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. |
MT256(InputStream stream)
Creates a new MT256 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. |
MT256(int messageType,
String sender,
String receiver)
Deprecated.
Use instead
new MT256(sender, receiver) instead |
MT256(MtSwiftMessage m)
Creates an MT256 initialized with the parameter MtSwiftMessage.
|
MT256(String fin)
Creates a new MT256 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. |
MT256(String sender,
String receiver)
Creates and initializes a new MT256 input message from sender to receiver.
All mandatory header attributes are completed with default values. |
MT256(SwiftMessage m)
Creates an MT256 initialized with the parameter SwiftMessage
|
| Modifier and Type | Method and Description |
|---|---|
MT256 |
append(Field... fields)
Add all the fields to the end of the block4.
|
MT256 |
append(SwiftTagListBlock block)
Add all tags from block to the end of the block4.
|
MT256 |
append(Tag... tags)
Add all tags to the end of the block4.
|
Field19 |
getField19()
Iterates through block4 fields and return the first one whose name matches 19,
or
null if none is found.The first occurrence of field 19 at MT256 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 MT256 is expected to be the only one. |
List<Field21> |
getField21()
Iterates through block4 fields and return all occurrences of fields whose names matches 21,
or
Collections.emptyList() if none is found.Multiple occurrences of field 21 at MT256 are expected at one sequence or across several sequences. |
List<Field21D> |
getField21D()
Iterates through block4 fields and return all occurrences of fields whose names matches 21D,
or
Collections.emptyList() if none is found.Multiple occurrences of field 21D at MT256 are expected at one sequence or across several sequences. |
List<Field21E> |
getField21E()
Iterates through block4 fields and return all occurrences of fields whose names matches 21E,
or
Collections.emptyList() if none is found.Multiple occurrences of field 21E at MT256 are expected at one sequence or across several sequences. |
List<Field23E> |
getField23E()
Iterates through block4 fields and return all occurrences of fields whose names matches 23E,
or
Collections.emptyList() if none is found.Multiple occurrences of field 23E at MT256 are expected at one sequence or across several sequences. |
Field30 |
getField30()
Iterates through block4 fields and return the first one whose name matches 30,
or
null if none is found.The first occurrence of field 30 at MT256 is expected to be the only one. |
Field32A |
getField32A()
Iterates through block4 fields and return the first one whose name matches 32A,
or
null if none is found.The first occurrence of field 32A at MT256 is expected to be the only one. |
List<Field32J> |
getField32J()
Iterates through block4 fields and return all occurrences of fields whose names matches 32J,
or
Collections.emptyList() if none is found.Multiple occurrences of field 32J at MT256 are expected at one sequence or across several sequences. |
List<Field37J> |
getField37J()
Iterates through block4 fields and return all occurrences of fields whose names matches 37J,
or
Collections.emptyList() if none is found.Multiple occurrences of field 37J at MT256 are expected at one sequence or across several sequences. |
List<Field44A> |
getField44A()
Iterates through block4 fields and return all occurrences of fields whose names matches 44A,
or
Collections.emptyList() if none is found.Multiple occurrences of field 44A at MT256 are expected at one sequence or across several sequences. |
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 MT256 is expected to be the only one. |
Field57C |
getField57C()
Iterates through block4 fields and return the first one whose name matches 57C,
or
null if none is found.The first occurrence of field 57C at MT256 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 MT256 is expected to be the only one. |
Field58B |
getField58B()
Iterates through block4 fields and return the first one whose name matches 58B,
or
null if none is found.The first occurrence of field 58B at MT256 is expected to be the only one. |
List<Field71F> |
getField71F()
Iterates through block4 fields and return all occurrences of fields whose names matches 71F,
or
Collections.emptyList() if none is found.Multiple occurrences of field 71F at MT256 are expected at one sequence or across several sequences. |
List<Field71G> |
getField71G()
Iterates through block4 fields and return all occurrences of fields whose names matches 71G,
or
Collections.emptyList() if none is found.Multiple occurrences of field 71G at MT256 are expected at one sequence or across several sequences. |
List<Field71H> |
getField71H()
Iterates through block4 fields and return all occurrences of fields whose names matches 71H,
or
Collections.emptyList() if none is found.Multiple occurrences of field 71H at MT256 are expected at one sequence or across several sequences. |
Field71J |
getField71J()
Iterates through block4 fields and return the first one whose name matches 71J,
or
null if none is found.The first occurrence of field 71J at MT256 is expected to be the only one. |
Field71K |
getField71K()
Iterates through block4 fields and return the first one whose name matches 71K,
or
null if none is found.The first occurrence of field 71K at MT256 is expected to be the only one. |
Field71L |
getField71L()
Iterates through block4 fields and return the first one whose name matches 71L,
or
null if none is found.The first occurrence of field 71L at MT256 is expected to be the only one. |
String |
getMessageType()
Returns this MT number
|
MT256.SequenceA |
getSequenceA()
Get the single occurrence of SequenceA slicing head or tail of the tags with delimiter ${s.getTagNames().get(0)}
The presence of this methods indicates that this sequence can occur only once according to the Standard.
|
MT256.SequenceA |
getSequenceA(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceA slicing head or tail of the tags with delimiter ${s.getTagNames().get(0)}
The presence of this methods indicates that this sequence can occur only once according to the Standard.
|
List<MT256.SequenceB> |
getSequenceBList()
Get the list of SequenceB delimited by leading tag and end, with an optional tail.
|
static List<MT256.SequenceB> |
getSequenceBList(SwiftTagListBlock parentSequence)
Get the list of SequenceB delimited by leading tag and end, with an optional tail.
|
MT256.SequenceC |
getSequenceC()
Get the single occurrence of SequenceC slicing head or tail of the tags with delimiter ${s.getTagNames().get(0)}
The presence of this methods indicates that this sequence can occur only once according to the Standard.
|
MT256.SequenceC |
getSequenceC(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceC slicing head or tail of the tags with delimiter ${s.getTagNames().get(0)}
The presence of this methods indicates that this sequence can occur only once according to the Standard.
|
static MT256 |
parse(File file)
Creates a new MT256 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 MT256 |
parse(InputStream stream)
Creates a new MT256 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 MT256 |
parse(MtSwiftMessage m)
Creates an MT256 initialized with the parameter MtSwiftMessage.
|
static MT256 |
parse(String fin)
Creates a new MT256 by parsing a String with the message content in its swift FIN format.
If the fin parameter cannot be parsed, the returned MT256 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, FIN, getApplicationId, getLogicalTerminal, getMessagePriority, getMtId, getReceiver, getSender, getSequence, getSequence, getSequence, getSequenceList, getSequenceList, getSequenceNumber, getServiceId, getSessionNumber, getSwiftMessage, getSwiftMessageNotNullOrException, getVariant, isIncoming, isInput, isOutgoing, isOutput, isType, json, message, nameFromClass, read, setReceiver, setReceiver, setSender, setSender, setSwiftMessage, tag, tags, toString, write, write, xmlgetMessageStandardType, isMT, isMXpublic static final int SRU
public static final String NAME
MT@Deprecated @ProwideDeprecated(phase3=_2018) public static final String AMAM
SchemeConstantsA.AMAM,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String AMTL
SchemeConstantsA.AMTL,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String CLOS
SchemeConstantsC.CLOS,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String COLN
SchemeConstantsC.COLN,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String DRAW
SchemeConstantsD.DRAW,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String DUPL
SchemeConstantsD.DUPL,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String FRAU
SchemeConstantsF.FRAU,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String FROZ
SchemeConstantsF.FROZ,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String FRWD
SchemeConstantsF.FRWD,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String INCH
SchemeConstantsI.INCH,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String INSF
SchemeConstantsI.INSF,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String INSI
SchemeConstantsI.INSI,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String INVA
SchemeConstantsI.INVA,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String NELI
SchemeConstantsN.NELI,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String NMAT
SchemeConstantsN.NMAT,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String OTHR
SchemeConstantsO.OTHR,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String REVO
SchemeConstantsR.REVO,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String STLD
SchemeConstantsS.STLD,
Constant Field Values@Deprecated @ProwideDeprecated(phase3=_2018) public static final String STOP
SchemeConstantsS.STOP,
Constant Field Valuespublic MT256(SwiftMessage m)
m - swift message with the MT256 contentpublic MT256(MtSwiftMessage m)
m - swift message with the MT256 content, the parameter can not be nullMT256(String)public MT256()
public MT256(String sender, 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 characters@Deprecated @ProwideDeprecated(phase3=_2018) public MT256(int messageType, String sender, String receiver)
new MT256(sender, receiver) insteadmessageType parameter is actually ignored.MT256(String, String)public MT256(String fin)
fin - a string with the MT message in its FIN swift formatpublic MT256(InputStream stream) throws IOException
stream - an input stream in UTF-8 encoding with the MT message in its FIN swift format.IOExceptionpublic MT256(File file) throws IOException
file - a file with the MT message in its FIN swift format.IOExceptionpublic static MT256 parse(MtSwiftMessage m)
m - swift message with the MT256 contentnull if the parameter is nullMT256(String)public static MT256 parse(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 MT256 parse(InputStream stream) throws IOException
stream - an input stream in UTF-8 encoding with the MT message in its FIN swift format.IOExceptionpublic static MT256 parse(File file) throws IOException
file - a file with the MT message in its FIN swift format.IOExceptionpublic String getMessageType()
getMessageType in class AbstractMTpublic MT256 append(SwiftTagListBlock block)
append in class AbstractMTblock - to appendpublic MT256 append(Tag... tags)
append in class AbstractMTtags - to appendpublic MT256 append(Field... fields)
append in class AbstractMTfields - to appendpublic Field20 getField20()
null if none is found.null if the field is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)public Field32A getField32A()
null if none is found.null if the field is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)public Field30 getField30()
null if none is found.null if the field is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)public Field19 getField19()
null if none is found.null if the field is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)public Field71J getField71J()
null if none is found.null if the field is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)public Field71L getField71L()
null if none is found.null if the field is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)public Field71K getField71K()
null if none is found.null if the field is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)public Field57A getField57A()
null if none is found.null if the field is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)public Field57C getField57C()
null if none is found.null if the field is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)public Field57D getField57D()
null if none is found.null if the field is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)public Field58B getField58B()
null if none is found.null if the field is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagByName(String)public List<Field44A> getField44A()
Collections.emptyList() if none is found.Collections.emptyList() if none is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)public List<Field21> getField21()
Collections.emptyList() if none is found.Collections.emptyList() if none is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)public List<Field21D> getField21D()
Collections.emptyList() if none is found.Collections.emptyList() if none is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)public List<Field21E> getField21E()
Collections.emptyList() if none is found.Collections.emptyList() if none is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)public List<Field23E> getField23E()
Collections.emptyList() if none is found.Collections.emptyList() if none is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)public List<Field32J> getField32J()
Collections.emptyList() if none is found.Collections.emptyList() if none is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)public List<Field37J> getField37J()
Collections.emptyList() if none is found.Collections.emptyList() if none is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)public List<Field71G> getField71G()
Collections.emptyList() if none is found.Collections.emptyList() if none is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)public List<Field71F> getField71F()
Collections.emptyList() if none is found.Collections.emptyList() if none is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)public List<Field71H> getField71H()
Collections.emptyList() if none is found.Collections.emptyList() if none is not foundIllegalStateException - if SwiftMessage object is not initializedSwiftTagListBlock.getTagsByName(String)@SequenceStyle(value=GENERATED_SLICE) public MT256.SequenceA getSequenceA()
null.@SequenceStyle(value=GENERATED_SLICE) public MT256.SequenceA getSequenceA(SwiftTagListBlock parentSequence)
null.parentSequence - an optional parent sequence or null to find SequenceA within the complete message@SequenceStyle(value=GENERATED_FIXED_WITH_OPTIONAL_TAIL) public List<MT256.SequenceB> getSequenceBList()
@SequenceStyle(value=GENERATED_FIXED_WITH_OPTIONAL_TAIL) public static List<MT256.SequenceB> getSequenceBList(SwiftTagListBlock parentSequence)
parentSequence - an optional parent sequence or null to find SequenceB within the complete messageSwiftTagListBlock.getSubBlocksDelimitedWithOptionalTail(String[], String[], String[])@SequenceStyle(value=GENERATED_SLICE) public MT256.SequenceC getSequenceC()
null.@SequenceStyle(value=GENERATED_SLICE) public MT256.SequenceC getSequenceC(SwiftTagListBlock parentSequence)
null.parentSequence - an optional parent sequence or null to find SequenceC within the complete message