Sequence A
Field 16
Letter options: R
Field 20
Letter options: C
Field 23
Letter options: G
Sequence A1
Field 16
Letter options: R
Field 20
Letter options: C
Field 16
Letter options: S
Fieldset 95
FieldsetItem 95 P
FieldsetItem 95 Q
FieldsetItem 95 R
Field 22
Letter options: F
Field 97
Letter options: A
Field 16
Letter options: S
Sequence B
Field 16
Letter options: R
Field 22
Letter options: H
Field 20
Letter options: C
Field 11
Letter options: A
Field 98
Letter options: A
Fieldset 22
FieldsetItem 22 F
FieldsetItem 22 F
Sequence B1
Field 16
Letter options: R
Fieldset 95
FieldsetItem 95 P,Q,R
FieldsetItem 95 S
Field 97
Letter options: A
Field 16
Letter options: S
Sequence B2
Field 16
Letter options: R
Field 70
Letter options: E
Field 22
Letter options: F
Field 16
Letter options: S
Field 16
Letter options: S
Sequence C
This source code is specific to release SRU 2016Field 16
Letter options: R
Field 70
Letter options: E
Field 22
Letter options: F
Field 16
Letter options: S
- Author:
- www.prowidesoftware.com
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
MT671.SequenceA
Class for Sequence "A" of MT 671static class
MT671.SequenceA1
Class for Sequence "A1" of MT 671static class
MT671.SequenceB
Class for Sequence "B" of MT 671static class
MT671.SequenceB1
Class for Sequence "B1" of MT 671static class
MT671.SequenceB2
Class for Sequence "B2" of MT 671static class
MT671.SequenceC
Class for Sequence "C" of MT 671
-
Field Summary
Fields Modifier and Type Field and Description static String
ACCW
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsA.ACCWstatic String
ADTX
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsA.ADTXstatic String
ALTE
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsA.ALTEstatic String
BENM
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsB.BENMstatic String
CASH
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsC.CASHstatic String
CODU
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsC.CODUstatic String
CONT
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsC.CONTstatic String
COPY
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsC.COPYstatic String
CSHPRTY
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsC.CSHPRTYstatic String
DUPL
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsD.DUPLstatic String
EFFD
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsE.EFFDstatic String
GENL
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsG.GENLstatic String
INT1
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsI.INT1static String
INT2
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsI.INT2static String
LINK
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsL.LINKstatic String
MARK
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsM.MARKstatic String
NAME
Constant for MT name, this is part of the classname, afterMT
static String
NEWM
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsN.NEWMstatic String
OTHRDET
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsO.OTHRDETstatic String
PMTH
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsP.PMTHstatic String
PREV
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsP.PREVstatic String
RELA
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsR.RELAstatic String
SAFE
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsS.SAFEstatic String
SEME
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsS.SEMEstatic String
SETT
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsS.SETTstatic int
SRU
Constant identifying the SRU to which this class belongs to.static String
SSIDET
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsS.SSIDETstatic String
SSIP
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsS.SSIPstatic String
SSIR
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsS.SSIRstatic String
SUBM
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsS.SUBMstatic String
TRAD
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsT.TRADstatic String
UDTP
Deprecated.use instead com.prowidesoftware.swift.SchemeConstantsU.UDTP-
Fields inherited from class com.prowidesoftware.swift.model.mt.AbstractMT
m
-
-
Constructor Summary
Constructors Constructor and Description MT671()
Creates and initializes a new MT671 input message setting TEST BICS as sender and receiver.
All mandatory header attributes are completed with default values.MT671(File file)
Creates a new MT671 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.MT671(InputStream stream)
Creates a new MT671 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.MT671(int messageType, String sender, String receiver)
Deprecated.MT671(MtSwiftMessage m)
Creates an MT671 initialized with the parameter MtSwiftMessage.MT671(String fin)
Creates a new MT671 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.MT671(String sender, String receiver)
Creates and initializes a new MT671 input message from sender to receiver.
All mandatory header attributes are completed with default values.MT671(SwiftMessage m)
Creates an MT671 initialized with the parameter SwiftMessage
-
Method Summary
Methods Modifier and Type Method and Description MT671
append(Field... fields)
Add all the fields to the end of the block4.MT671
append(SwiftTagListBlock block)
Add all tags from block to the end of the block4.MT671
append(Tag... tags)
Add all tags to the end of the block4.List<Field11A>
getField11A()
Iterates through block4 fields and return all occurrences of fields whose names matches 11A, orCollections.emptyList()
if none is found.
Multiple occurrences of field 11A at MT671 are expected at one sequence or across several sequences.List<Field16R>
getField16R()
Iterates through block4 fields and return all occurrences of fields whose names matches 16R, orCollections.emptyList()
if none is found.
Multiple occurrences of field 16R at MT671 are expected at one sequence or across several sequences.List<Field16S>
getField16S()
Iterates through block4 fields and return all occurrences of fields whose names matches 16S, orCollections.emptyList()
if none is found.
Multiple occurrences of field 16S at MT671 are expected at one sequence or across several sequences.List<Field20C>
getField20C()
Iterates through block4 fields and return all occurrences of fields whose names matches 20C, orCollections.emptyList()
if none is found.
Multiple occurrences of field 20C at MT671 are expected at one sequence or across several sequences.List<Field22F>
getField22F()
Iterates through block4 fields and return all occurrences of fields whose names matches 22F, orCollections.emptyList()
if none is found.
Multiple occurrences of field 22F at MT671 are expected at one sequence or across several sequences.List<Field22H>
getField22H()
Iterates through block4 fields and return all occurrences of fields whose names matches 22H, orCollections.emptyList()
if none is found.
Multiple occurrences of field 22H at MT671 are expected at one sequence or across several sequences.Field23G
getField23G()
Iterates through block4 fields and return the first one whose name matches 23G, ornull
if none is found.
The first occurrence of field 23G at MT671 is expected to be the only one.List<Field70E>
getField70E()
Iterates through block4 fields and return all occurrences of fields whose names matches 70E, orCollections.emptyList()
if none is found.
Multiple occurrences of field 70E at MT671 are expected at one sequence or across several sequences.List<Field95P>
getField95P()
Iterates through block4 fields and return all occurrences of fields whose names matches 95P, orCollections.emptyList()
if none is found.
Multiple occurrences of field 95P at MT671 are expected at one sequence or across several sequences.List<Field95Q>
getField95Q()
Iterates through block4 fields and return all occurrences of fields whose names matches 95Q, orCollections.emptyList()
if none is found.
Multiple occurrences of field 95Q at MT671 are expected at one sequence or across several sequences.List<Field95R>
getField95R()
Iterates through block4 fields and return all occurrences of fields whose names matches 95R, orCollections.emptyList()
if none is found.
Multiple occurrences of field 95R at MT671 are expected at one sequence or across several sequences.List<Field95S>
getField95S()
Iterates through block4 fields and return all occurrences of fields whose names matches 95S, orCollections.emptyList()
if none is found.
Multiple occurrences of field 95S at MT671 are expected at one sequence or across several sequences.List<Field97A>
getField97A()
Iterates through block4 fields and return all occurrences of fields whose names matches 97A, orCollections.emptyList()
if none is found.
Multiple occurrences of field 97A at MT671 are expected at one sequence or across several sequences.List<Field98A>
getField98A()
Iterates through block4 fields and return all occurrences of fields whose names matches 98A, orCollections.emptyList()
if none is found.
Multiple occurrences of field 98A at MT671 are expected at one sequence or across several sequences.String
getMessageType()
Returns this MT numberMT671.SequenceA
getSequenceA()
Get the single occurrence of SequenceA delimited by 16R/16S the value of SequenceA#START_END_16RS.static MT671.SequenceA
getSequenceA(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceA delimited by 16R/16S the value of SequenceA#START_END_16RS.List<MT671.SequenceA1>
getSequenceA1List()
Get the list of SequenceA1 delimited by 16R/16S with value specified in SequenceA1#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard.static List<MT671.SequenceA1>
getSequenceA1List(SwiftTagListBlock parentSequence)
Get the list of SequenceA1 delimited by 16R/16S with value specified in SequenceA1#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard.List<MT671.SequenceB1>
getSequenceB1List()
Get the list of SequenceB1 delimited by 16R/16S with value specified in SequenceB1#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard.static List<MT671.SequenceB1>
getSequenceB1List(SwiftTagListBlock parentSequence)
Get the list of SequenceB1 delimited by 16R/16S with value specified in SequenceB1#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard.List<MT671.SequenceB2>
getSequenceB2List()
Get the list of SequenceB2 delimited by 16R/16S with value specified in SequenceB2#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard.static List<MT671.SequenceB2>
getSequenceB2List(SwiftTagListBlock parentSequence)
Get the list of SequenceB2 delimited by 16R/16S with value specified in SequenceB2#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard.List<MT671.SequenceB>
getSequenceBList()
Get the list of SequenceB delimited by 16R/16S with value specified in SequenceB#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard.static List<MT671.SequenceB>
getSequenceBList(SwiftTagListBlock parentSequence)
Get the list of SequenceB delimited by 16R/16S with value specified in SequenceB#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard.MT671.SequenceC
getSequenceC()
Get the single occurrence of SequenceC delimited by 16R/16S the value of SequenceC#START_END_16RS.static MT671.SequenceC
getSequenceC(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceC delimited by 16R/16S the value of SequenceC#START_END_16RS.static MT671
parse(File file)
Creates a new MT671 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 MT671
parse(InputStream stream)
Creates a new MT671 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 MT671
parse(MtSwiftMessage m)
Creates an MT671 initialized with the parameter MtSwiftMessage.static MT671
parse(String fin)
Creates a new MT671 by parsing a String with the message content in its swift FIN format.
If the fin parameter cannot be parsed, the returned MT671 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.-
Methods inherited from class com.prowidesoftware.swift.model.mt.AbstractMT
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, toString, write, write, xml
-
Methods inherited from class com.prowidesoftware.swift.model.AbstractMessage
getMessageStandardType, isMT, isMX
-
-
-
-
Field Detail
-
SRU
public static final int SRU
Constant identifying the SRU to which this class belongs to.- See Also:
- Constant Field Values
-
NAME
public static final String NAME
Constant for MT name, this is part of the classname, afterMT
- See Also:
- Constant Field Values
-
ACCW
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String ACCW
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsA.ACCWConstant for qualifier with value ACCW- See Also:
SchemeConstantsA.ACCW
, Constant Field Values
-
ADTX
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String ADTX
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsA.ADTXConstant for qualifier with value ADTX- See Also:
SchemeConstantsA.ADTX
, Constant Field Values
-
ALTE
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String ALTE
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsA.ALTEConstant for qualifier with value ALTE- See Also:
SchemeConstantsA.ALTE
, Constant Field Values
-
BENM
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String BENM
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsB.BENMConstant for qualifier with value BENM- See Also:
SchemeConstantsB.BENM
, Constant Field Values
-
CASH
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String CASH
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsC.CASHConstant for qualifier with value CASH- See Also:
SchemeConstantsC.CASH
, Constant Field Values
-
CODU
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String CODU
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsC.CODUConstant for qualifier with value CODU- See Also:
SchemeConstantsC.CODU
, Constant Field Values
-
CONT
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String CONT
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsC.CONTConstant for qualifier with value CONT- See Also:
SchemeConstantsC.CONT
, Constant Field Values
-
COPY
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String COPY
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsC.COPYConstant for qualifier with value COPY- See Also:
SchemeConstantsC.COPY
, Constant Field Values
-
CSHPRTY
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String CSHPRTY
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsC.CSHPRTYConstant for qualifier with value CSHPRTY
-
DUPL
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String DUPL
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsD.DUPLConstant for qualifier with value DUPL- See Also:
SchemeConstantsD.DUPL
, Constant Field Values
-
EFFD
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String EFFD
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsE.EFFDConstant for qualifier with value EFFD- See Also:
SchemeConstantsE.EFFD
, Constant Field Values
-
GENL
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String GENL
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsG.GENLConstant for qualifier with value GENL- See Also:
SchemeConstantsG.GENL
, Constant Field Values
-
INT1
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String INT1
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsI.INT1Constant for qualifier with value INT1- See Also:
SchemeConstantsI.INT1
, Constant Field Values
-
INT2
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String INT2
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsI.INT2Constant for qualifier with value INT2- See Also:
SchemeConstantsI.INT2
, Constant Field Values
-
LINK
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String LINK
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsL.LINKConstant for qualifier with value LINK- See Also:
SchemeConstantsL.LINK
, Constant Field Values
-
MARK
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String MARK
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsM.MARKConstant for qualifier with value MARK- See Also:
SchemeConstantsM.MARK
, Constant Field Values
-
NEWM
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String NEWM
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsN.NEWMConstant for qualifier with value NEWM- See Also:
SchemeConstantsN.NEWM
, Constant Field Values
-
OTHRDET
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String OTHRDET
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsO.OTHRDETConstant for qualifier with value OTHRDET
-
PMTH
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String PMTH
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsP.PMTHConstant for qualifier with value PMTH- See Also:
SchemeConstantsP.PMTH
, Constant Field Values
-
PREV
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String PREV
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsP.PREVConstant for qualifier with value PREV- See Also:
SchemeConstantsP.PREV
, Constant Field Values
-
RELA
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String RELA
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsR.RELAConstant for qualifier with value RELA- See Also:
SchemeConstantsR.RELA
, Constant Field Values
-
SAFE
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String SAFE
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsS.SAFEConstant for qualifier with value SAFE- See Also:
SchemeConstantsS.SAFE
, Constant Field Values
-
SEME
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String SEME
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsS.SEMEConstant for qualifier with value SEME- See Also:
SchemeConstantsS.SEME
, Constant Field Values
-
SETT
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String SETT
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsS.SETTConstant for qualifier with value SETT- See Also:
SchemeConstantsS.SETT
, Constant Field Values
-
SSIDET
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String SSIDET
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsS.SSIDETConstant for qualifier with value SSIDET- See Also:
SchemeConstantsS.SSIDET
, Constant Field Values
-
SSIP
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String SSIP
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsS.SSIPConstant for qualifier with value SSIP- See Also:
SchemeConstantsS.SSIP
, Constant Field Values
-
SSIR
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String SSIR
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsS.SSIRConstant for qualifier with value SSIR- See Also:
SchemeConstantsS.SSIR
, Constant Field Values
-
SUBM
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String SUBM
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsS.SUBMConstant for qualifier with value SUBM- See Also:
SchemeConstantsS.SUBM
, Constant Field Values
-
TRAD
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String TRAD
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsT.TRADConstant for qualifier with value TRAD- See Also:
SchemeConstantsT.TRAD
, Constant Field Values
-
UDTP
@Deprecated @ProwideDeprecated(phase2=_2017) public static final String UDTP
Deprecated. use instead com.prowidesoftware.swift.SchemeConstantsU.UDTPConstant for qualifier with value UDTP- See Also:
SchemeConstantsU.UDTP
, Constant Field Values
-
-
Constructor Detail
-
MT671
public MT671(SwiftMessage m)
Creates an MT671 initialized with the parameter SwiftMessage- Parameters:
m
- swift message with the MT671 content
-
MT671
public MT671(MtSwiftMessage m)
Creates an MT671 initialized with the parameter MtSwiftMessage.- Parameters:
m
- swift message with the MT671 content, the parameter can not benull
- See Also:
MT671(String)
-
MT671
public MT671()
Creates and initializes a new MT671 input message setting TEST BICS as sender and receiver.
All mandatory header attributes are completed with default values.- Since:
- 7.6
-
MT671
public MT671(String sender, String receiver)
Creates and initializes a new MT671 input message from sender to receiver.
All mandatory header attributes are completed with default values. In particular the sender and receiver addresses will be filled with proper default LT identifier and branch codes if not provided,- Parameters:
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- Since:
- 7.7
-
MT671
@Deprecated public MT671(int messageType, String sender, String receiver)
Deprecated.DO NOT USE THIS METHOD It is kept for compatibility but will be removed very soon, since themessageType
parameter is actually ignored. Use insteadnew MT671(sender, receiver)
- See Also:
MT671(String, String)
-
MT671
public MT671(String fin)
Creates a new MT671 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.- Parameters:
fin
- a string with the MT message in its FIN swift format- Since:
- 7.7
-
MT671
public MT671(InputStream stream) throws IOException
Creates a new MT671 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.- Parameters:
stream
- an input stream in UTF-8 encoding with the MT message in its FIN swift format.- Throws:
IOException
- Since:
- 7.7
-
MT671
public MT671(File file) throws IOException
Creates a new MT671 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.- Parameters:
file
- a file with the MT message in its FIN swift format.- Throws:
IOException
- Since:
- 7.7
-
-
Method Detail
-
parse
public static MT671 parse(MtSwiftMessage m)
Creates an MT671 initialized with the parameter MtSwiftMessage.- Parameters:
m
- swift message with the MT671 content- Returns:
- the created object or
null
if the parameter isnull
- Since:
- 7.7
- See Also:
MT671(String)
-
parse
public static MT671 parse(String fin)
Creates a new MT671 by parsing a String with the message content in its swift FIN format.
If the fin parameter cannot be parsed, the returned MT671 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.- Parameters:
fin
- a string with the MT message in its FIN swift format. fin may benull
in which case this method returns null- Returns:
- a new instance of MT671 or null if fin is null
- Since:
- 7.7
-
parse
public static MT671 parse(InputStream stream) throws IOException
Creates a new MT671 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.- Parameters:
stream
- an input stream in UTF-8 encoding with the MT message in its FIN swift format.- Returns:
- a new instance of MT671 or null if stream is null or the message cannot be parsed
- Throws:
IOException
- Since:
- 7.7
-
parse
public static MT671 parse(File file) throws IOException
Creates a new MT671 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.- Parameters:
file
- a file with the MT message in its FIN swift format.- Returns:
- a new instance of MT671 or null if; file is null, does not exist, can't be read, is not a file or the message cannot be parsed
- Throws:
IOException
- Since:
- 7.7
-
getMessageType
public String getMessageType()
Returns this MT number- Specified by:
getMessageType
in classAbstractMT
- Returns:
- the message type number of this MT
- Since:
- 6.4
-
append
public MT671 append(SwiftTagListBlock block)
Add all tags from block to the end of the block4.- Overrides:
append
in classAbstractMT
- Parameters:
block
- to append- Returns:
- this object to allow method chaining
- Since:
- 7.6
-
append
public MT671 append(Tag... tags)
Add all tags to the end of the block4.- Overrides:
append
in classAbstractMT
- Parameters:
tags
- to append- Returns:
- this object to allow method chaining
- Since:
- 7.6
-
append
public MT671 append(Field... fields)
Add all the fields to the end of the block4.- Overrides:
append
in classAbstractMT
- Parameters:
fields
- to append- Returns:
- this object to allow method chaining
- Since:
- 7.6
-
getField23G
public Field23G getField23G()
Iterates through block4 fields and return the first one whose name matches 23G, ornull
if none is found.
The first occurrence of field 23G at MT671 is expected to be the only one.- Returns:
- a Field23G object or
null
if the field is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagByName(String)
-
getField16R
public List<Field16R> getField16R()
Iterates through block4 fields and return all occurrences of fields whose names matches 16R, orCollections.emptyList()
if none is found.
Multiple occurrences of field 16R at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field16R objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getField20C
public List<Field20C> getField20C()
Iterates through block4 fields and return all occurrences of fields whose names matches 20C, orCollections.emptyList()
if none is found.
Multiple occurrences of field 20C at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field20C objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getField16S
public List<Field16S> getField16S()
Iterates through block4 fields and return all occurrences of fields whose names matches 16S, orCollections.emptyList()
if none is found.
Multiple occurrences of field 16S at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field16S objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getField95P
public List<Field95P> getField95P()
Iterates through block4 fields and return all occurrences of fields whose names matches 95P, orCollections.emptyList()
if none is found.
Multiple occurrences of field 95P at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field95P objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getField95Q
public List<Field95Q> getField95Q()
Iterates through block4 fields and return all occurrences of fields whose names matches 95Q, orCollections.emptyList()
if none is found.
Multiple occurrences of field 95Q at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field95Q objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getField95R
public List<Field95R> getField95R()
Iterates through block4 fields and return all occurrences of fields whose names matches 95R, orCollections.emptyList()
if none is found.
Multiple occurrences of field 95R at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field95R objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getField22H
public List<Field22H> getField22H()
Iterates through block4 fields and return all occurrences of fields whose names matches 22H, orCollections.emptyList()
if none is found.
Multiple occurrences of field 22H at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field22H objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getField11A
public List<Field11A> getField11A()
Iterates through block4 fields and return all occurrences of fields whose names matches 11A, orCollections.emptyList()
if none is found.
Multiple occurrences of field 11A at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field11A objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getField98A
public List<Field98A> getField98A()
Iterates through block4 fields and return all occurrences of fields whose names matches 98A, orCollections.emptyList()
if none is found.
Multiple occurrences of field 98A at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field98A objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getField22F
public List<Field22F> getField22F()
Iterates through block4 fields and return all occurrences of fields whose names matches 22F, orCollections.emptyList()
if none is found.
Multiple occurrences of field 22F at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field22F objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getField95S
public List<Field95S> getField95S()
Iterates through block4 fields and return all occurrences of fields whose names matches 95S, orCollections.emptyList()
if none is found.
Multiple occurrences of field 95S at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field95S objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getField97A
public List<Field97A> getField97A()
Iterates through block4 fields and return all occurrences of fields whose names matches 97A, orCollections.emptyList()
if none is found.
Multiple occurrences of field 97A at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field97A objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getField70E
public List<Field70E> getField70E()
Iterates through block4 fields and return all occurrences of fields whose names matches 70E, orCollections.emptyList()
if none is found.
Multiple occurrences of field 70E at MT671 are expected at one sequence or across several sequences.- Returns:
- a List of Field70E objects or
Collections.emptyList()
if none is not found - Throws:
IllegalStateException
- if SwiftMessage object is not initialized- See Also:
SwiftTagListBlock.getTagsByName(String)
-
getSequenceA
@SequenceStyle(value=GENERATED_16RS) public MT671.SequenceA getSequenceA()
Get the single occurrence of SequenceA delimited by 16R/16S the value of SequenceA#START_END_16RS. The presence of this methods indicates that this sequence can occur only once according to the Standard. NOTE: this method never returnsnull
. If the sequence is not found an empty instance ofSequenceA
is returned- See Also:
MT671.SequenceA.START_END_16RS
-
getSequenceA
@SequenceStyle(value=GENERATED_16RS) public static MT671.SequenceA getSequenceA(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceA delimited by 16R/16S the value of SequenceA#START_END_16RS. The presence of this methods indicates that this sequence can occur only once according to the Standard. NOTE: this method never returnsnull
. If the sequence is not found an empty instance ofSequenceA
is returned- Parameters:
parentSequence
- an optional parent sequence ornull
to find SequenceA within the complete message- Since:
- 7.7
- See Also:
MT671.SequenceA.START_END_16RS
-
getSequenceA1List
@SequenceStyle(value=GENERATED_16RS) public List<MT671.SequenceA1> getSequenceA1List()
Get the list of SequenceA1 delimited by 16R/16S with value specified in SequenceA1#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard. If message is empty or nor sequences are found an empty list is returned.- See Also:
MT671.SequenceA1.START_END_16RS
-
getSequenceA1List
@SequenceStyle(value=GENERATED_16RS) public static List<MT671.SequenceA1> getSequenceA1List(SwiftTagListBlock parentSequence)
Get the list of SequenceA1 delimited by 16R/16S with value specified in SequenceA1#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard. If message is empty or nor sequences are found an empty list is returned.- Parameters:
parentSequence
- an optional parent sequence ornull
to find SequenceA1 within the complete message- Since:
- 7.7
- See Also:
MT671.SequenceA1.START_END_16RS
-
getSequenceBList
@SequenceStyle(value=GENERATED_16RS) public List<MT671.SequenceB> getSequenceBList()
Get the list of SequenceB delimited by 16R/16S with value specified in SequenceB#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard. If message is empty or nor sequences are found an empty list is returned.- See Also:
MT671.SequenceB.START_END_16RS
-
getSequenceBList
@SequenceStyle(value=GENERATED_16RS) public static List<MT671.SequenceB> getSequenceBList(SwiftTagListBlock parentSequence)
Get the list of SequenceB delimited by 16R/16S with value specified in SequenceB#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard. If message is empty or nor sequences are found an empty list is returned.- Parameters:
parentSequence
- an optional parent sequence ornull
to find SequenceB within the complete message- Since:
- 7.7
- See Also:
MT671.SequenceB.START_END_16RS
-
getSequenceB1List
@SequenceStyle(value=GENERATED_16RS) public List<MT671.SequenceB1> getSequenceB1List()
Get the list of SequenceB1 delimited by 16R/16S with value specified in SequenceB1#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard. If message is empty or nor sequences are found an empty list is returned.- See Also:
MT671.SequenceB1.START_END_16RS
-
getSequenceB1List
@SequenceStyle(value=GENERATED_16RS) public static List<MT671.SequenceB1> getSequenceB1List(SwiftTagListBlock parentSequence)
Get the list of SequenceB1 delimited by 16R/16S with value specified in SequenceB1#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard. If message is empty or nor sequences are found an empty list is returned.- Parameters:
parentSequence
- an optional parent sequence ornull
to find SequenceB1 within the complete message- Since:
- 7.7
- See Also:
MT671.SequenceB1.START_END_16RS
-
getSequenceB2List
@NonUniqueSeparator @SequenceStyle(value=GENERATED_16RS) public List<MT671.SequenceB2> getSequenceB2List()
Get the list of SequenceB2 delimited by 16R/16S with value specified in SequenceB2#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard. If message is empty or nor sequences are found an empty list is returned.This sequence does not have a unique 16R/S delimiter. In order to be uniquely identified it must be present inside it's parent sequences- See Also:
SequenceUtils
,MT671.SequenceB2.START_END_16RS
-
getSequenceB2List
@NonUniqueSeparator @SequenceStyle(value=GENERATED_16RS) public static List<MT671.SequenceB2> getSequenceB2List(SwiftTagListBlock parentSequence)
Get the list of SequenceB2 delimited by 16R/16S with value specified in SequenceB2#START_END_16RS The presence of this methods indicates that this sequence can occur more than once according to the Standard. If message is empty or nor sequences are found an empty list is returned.This sequence does not have a unique 16R/S delimiter. In order to be uniquely identified it must be present inside it's parent sequences- Parameters:
parentSequence
- an optional parent sequence ornull
to find SequenceB2 within the complete message- Since:
- 7.7
- See Also:
SequenceUtils
,MT671.SequenceB2.START_END_16RS
-
getSequenceC
@NonUniqueSeparator @SequenceStyle(value=GENERATED_16RS) public MT671.SequenceC getSequenceC()
Get the single occurrence of SequenceC delimited by 16R/16S the value of SequenceC#START_END_16RS. The presence of this methods indicates that this sequence can occur only once according to the Standard. NOTE: this method never returnsnull
. If the sequence is not found an empty instance ofSequenceC
is returnedThis sequence does not have a unique 16R/S delimiter. In order to be uniquely identified it must be present inside it's parent sequences- See Also:
SequenceUtils
,MT671.SequenceC.START_END_16RS
-
getSequenceC
@NonUniqueSeparator @SequenceStyle(value=GENERATED_16RS) public static MT671.SequenceC getSequenceC(SwiftTagListBlock parentSequence)
Get the single occurrence of SequenceC delimited by 16R/16S the value of SequenceC#START_END_16RS. The presence of this methods indicates that this sequence can occur only once according to the Standard. NOTE: this method never returnsnull
. If the sequence is not found an empty instance ofSequenceC
is returned- Parameters:
parentSequence
- an optional parent sequence ornull
to find SequenceC within the complete message- Since:
- 7.7
This sequence does not have a unique 16R/S delimiter. In order to be uniquely identified it must be present inside it's parent sequences
- See Also:
MT671.SequenceC.START_END_16RS
,SequenceUtils
-
-