public class MT567_MxSeev03200202_Translation extends
Modifier | Constructor and Description |
---|---|
|
MT567_MxSeev03200202_Translation()
Creates the translation class initializing it with the proper MX identification.
|
protected |
MT567_MxSeev03200202_Translation(MxId mxId,
String mxDescription)
This constructor is intended for subclasses to override the translation rules for other versions of MX.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
logicalMessageCriteriaCheck(MT567 source)
Message criteria check
This method checks the content of the source MT567 and determines if it can be translated to the target MxSeev03200202 SELECT CRITERIA MustBe (A\23G Function of the Message\23G\Function IsSameString 'EVST') FOREACH A2[*] DO MustBe (25D Status Code\EPRC IsPresent) END END |
List<PreconditionError> |
preconditionsCheck(MT567 source)
Precondition check
This method checks the precondition on the content of the source MT567 return a list with a precondition errors for each failed check, or an empty list if all preconditions are satisfied |
protected Integer |
resolveComponentNumber(String field,
String component)
Static mapping of fields component names into its correspondent component number
|
MxSeev03200202 |
translate(MT567 source)
Main entry point for the translation
|
protected void |
translate13A_DocumentNumber2Choice_Default(String targetElement,
MtPathResult content)
Translate method 13A -> DocumentNumber2Choice : Default
99 TRANSLATE(13A, DocumentNumber2Choice) 100 RULE 101 NODE (ShortNumber) 102 Number Id CopyTo ShortNumber 103 END 104 END 105 END |
protected void |
translate13B_DocumentNumber2Choice_Default(String targetElement,
MtPathResult content)
Translate method 13B -> DocumentNumber2Choice : Default
106 TRANSLATE(13B, DocumentNumber2Choice) 107 RULE 108 NODE (LongNumber) 109 IF (Not (Data Source Scheme IsPresent)) 110 THEN 111 Number CopyTo LongNumber 112 END 113 END 114 NODE (ProprietaryNumber) 115 NODE (Identification) 116 IF (Data Source Scheme IsPresent) 117 THEN 118 Number CopyTo ProprietaryNumber\Identification 119 END 120 END 121 Data Source Scheme TranslateTo ProprietaryNumber 122 END 123 END 124 END |
protected void |
translate20C_Max35Text_Default(String targetElement,
MtPathResult content)
Translate method 20C -> Max35Text : Default
62 TRANSLATE(20C, Max35Text) 63 RULE 64 Reference TranslateTo Max35Text 65 END 66 END |
protected void |
translate20C_RestrictedFINXMax16Text_Default(String targetElement,
MtPathResult content)
Translate method 20C -> RestrictedFINXMax16Text : Default
89 TRANSLATE(20C, RestrictedFINXMax16Text) 90 RULE 91 Reference TranslateTo RestrictedFINXMax16Text 92 END 93 END |
protected void |
translate22F_243_CorporateActionEventType4Choice_Default(String targetElement,
MtPathResult content)
Translate method 22F_243 -> CorporateActionEventType4Choice : Default
138 TRANSLATE(22F_243, CorporateActionEventType4Choice) 139 RULE 140 NODE (Code) 141 IF (Not (Data Source Scheme IsPresent)) 142 THEN 143 Indicator TranslateTo Code 144 END 145 END 146 NODE (Proprietary) 147 Data Source Scheme TranslateTo Proprietary 148 NODE (Identification) 149 IF (Data Source Scheme IsPresent) 150 THEN 151 Indicator CopyTo Proprietary\Identification 152 END 153 END 154 END 155 END 156 END |
protected void |
translate24B_59_PendingReason5Choice_Default(String targetElement,
MtPathResult content)
Translate method 24B_59 -> PendingReason5Choice : Default
237 TRANSLATE(24B_59, PendingReason5Choice) 238 RULE 239 NODE (Code) 240 IF (Not (Data Source Scheme IsPresent)) 241 THEN 242 Reason Code TranslateTo Code 243 END 244 END 245 NODE (Proprietary) 246 Data Source Scheme TranslateTo Proprietary 247 NODE (Identification) 248 IF (Data Source Scheme IsPresent) 249 THEN 250 Reason Code CopyTo Proprietary\Identification 251 END 252 END 253 END 254 END 255 END |
protected void |
translate70D_RestrictedFINXMax210Text_Default(String targetElement,
MtPathResult content)
Translate method 70D -> RestrictedFINXMax210Text : Default
265 TRANSLATE(70D, RestrictedFINXMax210Text) 266 RULE 267 (Narrative\Line[*] Concatenate) CopyTo RestrictedFINXMax210Text 268 END 269 END |
protected void |
translate70E_RestrictedFINXMax350Text_Default(String targetElement,
MtPathResult content)
Translate method 70E -> RestrictedFINXMax350Text : Default
270 TRANSLATE(70E, RestrictedFINXMax350Text) 271 RULE 272 (Narrative\Line[*] Concatenate) CopyTo RestrictedFINXMax350Text 273 END 274 END |
protected void |
translate95P_4_Party9Choice_Default(String targetElement,
MtPathResult content)
Translate method 95P_4 -> Party9Choice : Default
1 TRANSLATE(95P_4, Party9Choice) 2 RULE 3 NODE (FinancialInstitutionIdentification) 4 NODE (FinancialInstitutionIdentification) 5 NODE (BICFI) 6 Identifier Code TranslateTo FinancialInstitutionIdentification\FinancialInstitutionIdentification\BICFI 7 END 8 END 9 END 10 END 11 END |
protected void |
translate95Q_Party9Choice_Default(String targetElement,
MtPathResult content)
Translate method 95Q -> Party9Choice : Default
17 TRANSLATE(95Q, Party9Choice) 18 RULE 19 NODE (FinancialInstitutionIdentification) 20 NODE (FinancialInstitutionIdentification) 21 Name and Address TranslateTo FinancialInstitutionIdentification\FinancialInstitutionIdentification 22 END 23 END 24 END 25 END |
protected void |
translate95R_1_Party9Choice_Default(String targetElement,
MtPathResult content)
Translate method 95R_1 -> Party9Choice : Default
33 TRANSLATE(95R_1, Party9Choice) 34 RULE 35 NODE (FinancialInstitutionIdentification) 36 NODE (FinancialInstitutionIdentification) 37 NODE (Other) 38 NODE (Identification) 39 Proprietary Code TranslateTo FinancialInstitutionIdentification\FinancialInstitutionIdentification\Other\Identification 40 END 41 NODE (SchemeName) 42 NODE (Proprietary) 43 IF (Not (((Data Source Scheme Substring '5') Length) IsSameNumber '0')) 44 THEN 45 (Data Source Scheme Substring '5') CopyTo FinancialInstitutionIdentification\FinancialInstitutionIdentification\Other\SchemeName\Proprietary 46 END 47 END 48 END 49 NODE (Issuer) 50 (Data Source Scheme Substring ('1', '4')) CopyTo FinancialInstitutionIdentification\FinancialInstitutionIdentification\Other\Issuer 51 END 52 END 53 END 54 END 55 END 56 END |
protected void |
translate98A_ISONormalisedDateTime_Default(String targetElement,
MtPathResult content)
Translate method 98A -> ISONormalisedDateTime : Default
72 TRANSLATE(98A, ISONormalisedDateTime) 73 RULE 74 ((Date FormatDateTime ('MT_YYYYMMDD', 'MX_Date')) Concatenate 'T00:00:00Z') CopyTo ISONormalisedDateTime 75 END 76 END |
protected void |
translate98C_ISONormalisedDateTime_Default(String targetElement,
MtPathResult content)
Translate method 98C -> ISONormalisedDateTime : Default
77 TRANSLATE(98C, ISONormalisedDateTime) 78 RULE 79 (((Date FormatDateTime ('MT_YYYYMMDD', 'MX_Date')) Concatenate 'T') Concatenate ((Time FormatDateTime ('MT_HHMMSS', 'MX_Time')) Concatenate 'Z')) CopyTo ISONormalisedDateTime 80 END 81 END |
protected void |
translateCode_4c_171_CopyDuplicate1Code_Default(String targetElement,
MtPathResult content)
Translate method Code_4!c_171 -> CopyDuplicate1Code : Default
82 TRANSLATE(Code_4!c_171, CopyDuplicate1Code) 83 RULE 84 'CODU' EquivalentTo 'CODU' 85 'COPY' EquivalentTo 'COPY' 86 'DUPL' EquivalentTo 'DUPL' 87 END 88 END |
protected void |
translateIdentifier_BICFIOrNonFI_BICFIIdentifier_Default(String targetElement,
String content)
Translate method Identifier_BICFIOrNonFI -> BICFIIdentifier : Default
12 TRANSLATE(Identifier_BICFIOrNonFI, BICFIIdentifier) 13 RULE 14 Identifier_BICFIOrNonFI CopyTo BICFIIdentifier 15 END 16 END |
protected void |
translateIdentifier_FIN_8c_GenericIdentification23_Default(String targetElement,
String content)
Translate method Identifier_FIN_8c -> GenericIdentification23 : Default
125 TRANSLATE(Identifier_FIN_8c, GenericIdentification23) 126 RULE 127 NODE (Issuer) 128 (Identifier_FIN_8c Substring ('1', '4')) CopyTo Issuer 129 END 130 NODE (SchemeName) 131 IF (Not (((Identifier_FIN_8c Substring '5') Length) IsSameNumber '0')) 132 THEN 133 (Identifier_FIN_8c Substring '5') CopyTo SchemeName 134 END 135 END 136 END 137 END |
protected void |
translateIdentifier_FIN_8c_GenericIdentification25_Default(String targetElement,
MtPathResult content)
Translate method Identifier_FIN_8c -> GenericIdentification25 : Default
224 TRANSLATE(Identifier_FIN_8c, GenericIdentification25) 225 RULE 226 NODE (Issuer) 227 (Identifier_FIN_8c Substring ('1', '4')) CopyTo Issuer 228 END 229 NODE (SchemeName) 230 IF (Not (((Identifier_FIN_8c Substring '5') Length) IsSameNumber '0')) 231 THEN 232 (Identifier_FIN_8c Substring '5') CopyTo SchemeName 233 END 234 END 235 END 236 END |
protected void |
translateImpl(MT567 source)
Translation rules implementation
|
protected void |
translateOptionalCode_4c_332_PendingReason4Code_Default(String targetElement,
String content)
Translate method OptionalCode_4!c_332 -> PendingReason4Code : Default
256 TRANSLATE(OptionalCode_4!c_332, PendingReason4Code) 257 RULE 258 'AUTH' EquivalentTo 'AUTH' 259 'NSEC' EquivalentTo 'NSEC' 260 'NPAY' EquivalentTo 'NPAY' 261 'NARR' EquivalentTo 'OTHR' 262 'VLDA' EquivalentTo 'VLDA' 263 END 264 END |
protected void |
translateOptionalCode_4c_410_CorporateActionEventType6Code_Default(String targetElement,
String content)
Translate method OptionalCode_4!c_410 -> CorporateActionEventType6Code : Default
157 TRANSLATE(OptionalCode_4!c_410, CorporateActionEventType6Code) 158 RULE 159 'ACTV' EquivalentTo 'ACTV' 160 'ATTI' EquivalentTo 'ATTI' 161 'BIDS' EquivalentTo 'BIDS' 162 'BONU' EquivalentTo 'BONU' 163 'BPUT' EquivalentTo 'BPUT' 164 'BRUP' EquivalentTo 'BRUP' 165 'CAPG' EquivalentTo 'CAPG' 166 'CAPI' EquivalentTo 'CAPI' 167 'CERT' EquivalentTo 'CERT' 168 'CHAN' EquivalentTo 'CHAN' 169 'CLSA' EquivalentTo 'CLSA' 170 'CONS' EquivalentTo 'CONS' 171 'CONV' EquivalentTo 'CONV' 172 'COOP' EquivalentTo 'COOP' 173 'DECR' EquivalentTo 'DECR' 174 'DETI' EquivalentTo 'DETI' 175 'DFLT' EquivalentTo 'DFLT' 176 'DLST' EquivalentTo 'DLST' 177 'DRAW' EquivalentTo 'DRAW' 178 'DRIP' EquivalentTo 'DRIP' 179 'DSCL' EquivalentTo 'DSCL' 180 'DTCH' EquivalentTo 'DTCH' 181 'DVCA' EquivalentTo 'DVCA' 182 'DVOP' EquivalentTo 'DVOP' 183 'DVSC' EquivalentTo 'DVSC' 184 'DVSE' EquivalentTo 'DVSE' 185 'EXOF' EquivalentTo 'EXOF' 186 'EXRI' EquivalentTo 'EXRI' 187 'EXTM' EquivalentTo 'EXTM' 188 'EXWA' EquivalentTo 'EXWA' 189 'CAPD' EquivalentTo 'CAPD' 190 'INCR' EquivalentTo 'INCR' 191 'INTR' EquivalentTo 'INTR' 192 'LIQU' EquivalentTo 'LIQU' 193 'MCAL' EquivalentTo 'MCAL' 194 'MRGR' EquivalentTo 'MRGR' 195 'ODLT' EquivalentTo 'ODLT' 196 'OTHR' EquivalentTo 'OTHR' 197 'PARI' EquivalentTo 'PARI' 198 'PCAL' EquivalentTo 'PCAL' 199 'PDEF' EquivalentTo 'PDEF' 200 'PINK' EquivalentTo 'PINK' 201 'PLAC' EquivalentTo 'PLAC' 202 'PPMT' EquivalentTo 'PPMT' 203 'PRED' EquivalentTo 'PRED' 204 'PRII' EquivalentTo 'PRII' 205 'PRIO' EquivalentTo 'PRIO' 206 'REDM' EquivalentTo 'REDM' 207 'REDO' EquivalentTo 'REDO' 208 'REMK' EquivalentTo 'REMK' 209 'RHDI' EquivalentTo 'RHDI' 210 'RHTS' EquivalentTo 'RHTS' 211 'SHPR' EquivalentTo 'SHPR' 212 'SMAL' EquivalentTo 'SMAL' 213 'SOFF' EquivalentTo 'SOFF' 214 'SPLF' EquivalentTo 'SPLF' 215 'SPLR' EquivalentTo 'SPLR' 216 'SUSP' EquivalentTo 'SUSP' 217 'TEND' EquivalentTo 'TEND' 218 'TREC' EquivalentTo 'TREC' 219 'WRTH' EquivalentTo 'WRTH' 220 'WTRC' EquivalentTo 'WTRC' 221 'CREV' EquivalentTo 'CREV' 222 END 223 END |
protected void |
translateText_FIN_16x_Max35Text_Default(String targetElement,
String content)
Translate method Text_FIN_16x -> Max35Text : Default
67 TRANSLATE(Text_FIN_16x, Max35Text) 68 RULE 69 Text_FIN_16x CopyTo Max35Text 70 END 71 END |
protected void |
translateText_FIN_16x_RestrictedFINXMax16Text_Default(String targetElement,
String content)
Translate method Text_FIN_16x -> RestrictedFINXMax16Text : Default
94 TRANSLATE(Text_FIN_16x, RestrictedFINXMax16Text) 95 RULE 96 Text_FIN_16x CopyTo RestrictedFINXMax16Text 97 END 98 END |
protected void |
translateText_FIN_34x_Max35Text_Default(String targetElement,
String content)
Translate method Text_FIN_34x -> Max35Text : Default
57 TRANSLATE(Text_FIN_34x, Max35Text) 58 RULE 59 Text_FIN_34x CopyTo Max35Text 60 END 61 END |
protected void |
translateText_FIN_4M35x_FinancialInstitutionIdentification8_Default(String targetElement,
String content)
Translate method Text_FIN_4M35x -> FinancialInstitutionIdentification8 : Default
26 TRANSLATE(Text_FIN_4M35x, FinancialInstitutionIdentification8) 27 RULE 28 NODE (Name) 29 (Line[*] Concatenate) CopyTo Name 30 END 31 END 32 END |
public MT567_MxSeev03200202_Translation()
public final MxSeev03200202 translate(MT567 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MT567 objectLogicalMessageCriteriaException
TranslationPreconditionException
protected final void translateImpl(MT567 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MT567 objectLogicalMessageCriteriaException
TranslationPreconditionException
protected void translate95P_4_Party9Choice_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translateIdentifier_BICFIOrNonFI_BICFIIdentifier_Default(String targetElement, String content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translate95Q_Party9Choice_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translateText_FIN_4M35x_FinancialInstitutionIdentification8_Default(String targetElement, String content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translate95R_1_Party9Choice_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translateText_FIN_34x_Max35Text_Default(String targetElement, String content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translate20C_Max35Text_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translateText_FIN_16x_Max35Text_Default(String targetElement, String content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translate98A_ISONormalisedDateTime_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translate98C_ISONormalisedDateTime_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translateCode_4c_171_CopyDuplicate1Code_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translate20C_RestrictedFINXMax16Text_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translateText_FIN_16x_RestrictedFINXMax16Text_Default(String targetElement, String content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translate13A_DocumentNumber2Choice_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translate13B_DocumentNumber2Choice_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translateIdentifier_FIN_8c_GenericIdentification23_Default(String targetElement, String content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translate22F_243_CorporateActionEventType4Choice_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translateOptionalCode_4c_410_CorporateActionEventType6Code_Default(String targetElement, String content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translateIdentifier_FIN_8c_GenericIdentification25_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translate24B_59_PendingReason5Choice_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translateOptionalCode_4c_332_PendingReason4Code_Default(String targetElement, String content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translate70D_RestrictedFINXMax210Text_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedprotected void translate70E_RestrictedFINXMax350Text_Default(String targetElement, MtPathResult content)
source
- translation source message to read content fromcontent
- content to translate, gathered from a source selectortargetElement
- selector in target class where translated code will be addedpublic final Boolean logicalMessageCriteriaCheck(MT567 source)
source
- a well formed MT567 objectpublic final List<PreconditionError> preconditionsCheck(MT567 source)