public class MxSese02000201_MT542_Translation extends
Modifier | Constructor and Description |
---|---|
|
MxSese02000201_MT542_Translation()
Creates the translation class initializing it with the proper MX identification.
|
protected |
MxSese02000201_MT542_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(MxSese02000201 source)
Message criteria check
This method checks the content of the source MxSese02000201 and determines if it can be translated to the target MT542 SELECT CRITERIA IF ((Details\AccountOwnerTransactionIdentification\SecuritiesSettlementTransactionIdentification IsPresent) Or (Details\AccountOwnerTransactionIdentification\SecuritiesFinancingTransactionIdentification IsPresent)) THEN MustBe ((Details\AccountOwnerTransactionIdentification\SecuritiesSettlementTransactionIdentification\SecuritiesMovementType IsSameString 'DELI') Or (Details\AccountOwnerTransactionIdentification\SecuritiesFinancingTransactionIdentification\SecuritiesMovementType IsSameString 'DELI')) MustBe ((Details\AccountOwnerTransactionIdentification\SecuritiesSettlementTransactionIdentification\Payment IsSameString 'FREE') Or (Details\AccountOwnerTransactionIdentification\SecuritiesFinancingTransactionIdentification\Payment IsSameString 'FREE')) END MustBe ((Details\AccountOwnerTransactionIdentification\SecuritiesSettlementTransactionIdentification IsPresent) Or (Details\AccountOwnerTransactionIdentification\SecuritiesFinancingTransactionIdentification IsPresent)) END |
List<PreconditionError> |
preconditionsCheck(MxSese02000201 source)
Precondition check
This method checks the precondition on the content of the source MxSese02000201 return a list with a precondition errors for each failed check, or an empty list if all preconditions are satisfied |
MT542 |
translate(MxSese02000201 source)
Main entry point for the translation
|
protected void |
translateImpl(MxSese02000201 source)
Translation rules implementation
|
protected void |
translateTTR1(String targetElement,
XmlNode node)
Translate method TTR1
1 TRANSLATE(CopyDuplicate1Code, Code_4!c_93) 2 RULE 3 'CODU' EquivalentTo 'CODU' 4 'COPY' EquivalentTo 'COPY' 5 'DUPL' EquivalentTo 'DUPL' 6 END 7 END |
protected void |
translateTTR10(String targetElement,
XmlNode node)
Translate method TTR10
100 TRANSLATE(SettlementDate4Choice, 98A) 101 RULE 102 Date TranslateTo 98A 103 END 104 END |
protected void |
translateTTR11(String targetElement,
XmlNode node)
Translate method TTR11
105 TRANSLATE(SettlementDate4Choice, 98B_9) 106 RULE 107 NODE (DataSourceScheme) 108 DateCode\Proprietary TranslateTo DataSourceScheme 109 END 110 NODE (DateCode) 111 DateCode\Code TranslateTo DateCode 112 DateCode\Proprietary\Identification CopyTo DateCode 113 END 114 END 115 END |
protected void |
translateTTR12(String targetElement,
XmlNode node)
Translate method TTR12
116 TRANSLATE(GenericIdentification25, Identifier_FIN_8c) 117 RULE 118 (Issuer Concatenate SchemeName) CopyTo Identifier_FIN_8c 119 END 120 END |
protected void |
translateTTR13(String targetElement,
XmlNode node)
Translate method TTR13
121 TRANSLATE(SettlementDate4Code, OptionalCode_4!c_389) 122 RULE 123 'WISS' EquivalentTo 'WISS' 124 END 125 END |
protected void |
translateTTR14(String targetElement,
XmlNode node)
Translate method TTR14
126 TRANSLATE(SettlementDate4Choice, 98C) 127 RULE 128 Date TranslateTo 98C 129 END 130 END |
protected void |
translateTTR15(String targetElement,
XmlNode node)
Translate method TTR15
131 TRANSLATE(TradeDate2Choice, 98A) 132 RULE 133 Date TranslateTo 98A 134 END 135 END |
protected void |
translateTTR16(String targetElement,
XmlNode node)
Translate method TTR16
136 TRANSLATE(TradeDate2Choice, 98B_2) 137 RULE 138 NODE (DataSourceScheme) 139 DateCode\Proprietary TranslateTo DataSourceScheme 140 END 141 NODE (DateCode) 142 DateCode\Code TranslateTo DateCode 143 DateCode\Proprietary\Identification CopyTo DateCode 144 END 145 END 146 END |
protected void |
translateTTR17(String targetElement,
XmlNode node)
Translate method TTR17
147 TRANSLATE(DateType3Code, OptionalCode_4!c_56) 148 RULE 149 'VARI' EquivalentTo 'VARI' 150 END 151 END |
protected void |
translateTTR18(String targetElement,
XmlNode node)
Translate method TTR18
152 TRANSLATE(TradeDate2Choice, 98C) 153 RULE 154 Date\DateTime TranslateTo 98C 155 END 156 END |
protected void |
translateTTR19(String targetElement,
XmlNode node)
Translate method TTR19
157 TRANSLATE(ISODateTime, 98C) 158 RULE 159 NODE (Date) 160 IF (Not ((ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z?') Or (((ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z') Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[+-][0-9]{2}:[0-9]{2}')) Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}')))) 161 THEN 162 ISODateTime TranslateTo Date 163 END 164 END 165 NODE (Time) 166 IF (Not ((ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z?') Or (((ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z') Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[+-][0-9]{2}:[0-9]{2}')) Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}')))) 167 THEN 168 ISODateTime TranslateTo Time 169 END 170 END 171 END 172 END |
protected void |
translateTTR2(String targetElement,
XmlNode node)
Translate method TTR2
8 TRANSLATE(DateAndDateTimeChoice, 98A) 9 RULE 10 NODE (Date) 11 Date TranslateTo Date 12 END 13 END 14 END |
protected void |
translateTTR20(String targetElement,
XmlNode node)
Translate method TTR20
173 TRANSLATE(TradeDate2Choice, 98E_1) 174 RULE 175 Date\DateTime TranslateTo 98E_1 176 END 177 END |
protected void |
translateTTR21(String targetElement,
XmlNode node)
Translate method TTR21
178 TRANSLATE(ISODateTime, 98E_1) 179 RULE 180 NODE (Date) 181 IF ((((ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z?') Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z')) Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[+-][0-9]{2}:[0-9]{2}')) Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}')) 182 THEN 183 ISODateTime TranslateTo Date 184 END 185 END 186 NODE (Time) 187 IF ((((ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z?') Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z')) Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[+-][0-9]{2}:[0-9]{2}')) Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}')) 188 THEN 189 ISODateTime TranslateTo Time 190 END 191 END 192 NODE (Decimals) 193 IF ((ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z?') Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}')) 194 THEN 195 ISODateTime TranslateTo Decimals 196 END 197 END 198 NODE (UTCIndicator) 199 IF ((((ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z?') Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z')) Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[+-][0-9]{2}:[0-9]{2}')) Or (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}')) 200 THEN 201 ISODateTime TranslateTo UTCIndicator 202 END 203 END 204 END 205 END |
protected void |
translateTTR22(String targetElement,
XmlNode node)
Translate method TTR22
206 TRANSLATE(ISINIdentifier, Identifier_Isin) 207 RULE 208 ('ISIN ' Concatenate ISINIdentifier) CopyTo Identifier_Isin 209 END 210 END |
protected void |
translateTTR23(String targetElement,
XmlNode node)
Translate method TTR23
211 TRANSLATE(SecurityIdentification12, 35B) 212 RULE 213 NODE (DescriptionOfSecurity) 214 NODE (Line) 215 IF (Identification\OtherIdentification\IdentificationSource\Domestic IsPresent) 216 THEN 217 ((('/' Concatenate (Identification\OtherIdentification\IdentificationSource\Domestic Concatenate '/')) Concatenate Identification\OtherIdentification\Identification) Substring ('1', '35')) CopyTo DescriptionOfSecurity\Line[1] 218 END 219 IF (Identification\OtherIdentification\IdentificationSource\Proprietary IsPresent) 220 THEN 221 ((('/' Concatenate (Identification\OtherIdentification\IdentificationSource\Proprietary Concatenate '/')) Concatenate Identification\OtherIdentification\Identification) Substring ('1', '35')) CopyTo DescriptionOfSecurity\Line[1] 222 END 223 IF (Identification\ISIN IsPresent) 224 THEN 225 (Description Substring ('1', '35')) CopyTo DescriptionOfSecurity\Line[1] 226 END 227 END 228 NODE (Line) 229 IF (Identification\OtherIdentification IsPresent) 230 THEN 231 (Description Substring ('1', '35')) CopyTo DescriptionOfSecurity\Line[2] 232 ELSE 233 (Description Substring ('36', '35')) CopyTo DescriptionOfSecurity\Line[2] 234 END 235 END 236 NODE (Line) 237 IF (Identification\OtherIdentification IsPresent) 238 THEN 239 (Description Substring ('36', '35')) CopyTo DescriptionOfSecurity\Line[3] 240 ELSE 241 (Description Substring ('71', '35')) CopyTo DescriptionOfSecurity\Line[3] 242 END 243 END 244 NODE (Line) 245 IF (Identification\OtherIdentification IsPresent) 246 THEN 247 (Description Substring ('71', '35')) CopyTo DescriptionOfSecurity\Line[4] 248 ELSE 249 (Description Substring ('106', '35')) CopyTo DescriptionOfSecurity\Line[4] 250 END 251 END 252 END 253 END 254 END |
protected void |
translateTTR24(String targetElement,
XmlNode node)
Translate method TTR24
255 TRANSLATE(FinancialInstrumentQuantity15Choice, 36B) 256 RULE 257 NODE (QuantityTypeCode) 258 IF (Unit IsPresent) 259 THEN 260 'UNIT' CopyTo QuantityTypeCode 261 END 262 IF (FaceAmount IsPresent) 263 THEN 264 'FAMT' CopyTo QuantityTypeCode 265 END 266 IF (AmortisedValue IsPresent) 267 THEN 268 'AMOR' CopyTo QuantityTypeCode 269 END 270 END 271 NODE (Quantity) 272 IF ((Unit IsPresent) And ((Unit Substring ('1', '1')) IsSameString '-')) 273 THEN 274 ((Unit Substring '2') FormatDecimal 'MT') CopyTo Quantity 275 ELSE 276 IF ((Unit Substring ('1', '1')) IsSameString '+') 277 THEN 278 ((Unit Substring '2') FormatDecimal 'MT') CopyTo Quantity 279 ELSE 280 (Unit FormatDecimal 'MT') CopyTo Quantity 281 END 282 END 283 (FaceAmount FormatDecimal 'MT') CopyTo Quantity 284 (AmortisedValue FormatDecimal 'MT') CopyTo Quantity 285 END 286 END 287 END |
protected void |
translateTTR25(String targetElement,
XmlNode node)
Translate method TTR25
288 TRANSLATE(RestrictedFINImpliedCurrencyAndAmount, 36B) 289 RULE 290 NODE (QuantityTypeCode) 291 'FAMT' CopyTo QuantityTypeCode 292 END 293 NODE (Quantity) 294 IF ((RestrictedFINImpliedCurrencyAndAmount IsPresent) And ((RestrictedFINImpliedCurrencyAndAmount Substring ('1', '1')) IsSameString '-')) 295 THEN 296 ((RestrictedFINImpliedCurrencyAndAmount Substring '2') FormatDecimal 'MT') CopyTo Quantity 297 ELSE 298 IF ((RestrictedFINImpliedCurrencyAndAmount Substring ('1', '1')) IsSameString '+') 299 THEN 300 ((RestrictedFINImpliedCurrencyAndAmount Substring '2') FormatDecimal 'MT') CopyTo Quantity 301 ELSE 302 (RestrictedFINImpliedCurrencyAndAmount FormatDecimal 'MT') CopyTo Quantity 303 END 304 END 305 END 306 END 307 END |
protected void |
translateTTR26(String targetElement,
XmlNode node)
Translate method TTR26
308 TRANSLATE(RestrictedFINImpliedCurrencyAndAmount, 36B) 309 RULE 310 NODE (QuantityTypeCode) 311 'AMOR' CopyTo QuantityTypeCode 312 END 313 NODE (Quantity) 314 IF ((RestrictedFINImpliedCurrencyAndAmount IsPresent) And ((RestrictedFINImpliedCurrencyAndAmount Substring ('1', '1')) IsSameString '-')) 315 THEN 316 ((RestrictedFINImpliedCurrencyAndAmount Substring '2') FormatDecimal 'MT') CopyTo Quantity 317 ELSE 318 IF ((RestrictedFINImpliedCurrencyAndAmount Substring ('1', '1')) IsSameString '+') 319 THEN 320 ((RestrictedFINImpliedCurrencyAndAmount Substring '2') FormatDecimal 'MT') CopyTo Quantity 321 ELSE 322 (RestrictedFINImpliedCurrencyAndAmount FormatDecimal 'MT') CopyTo Quantity 323 END 324 END 325 END 326 END 327 END |
protected void |
translateTTR27(String targetElement,
XmlNode node)
Translate method TTR27
328 TRANSLATE(PartyIdentification18Choice, 95P_2) 329 RULE 330 NODE (IdentifierCode) 331 BICOrBEI CopyTo IdentifierCode 332 END 333 END 334 END |
protected void |
translateTTR28(String targetElement,
XmlNode node)
Translate method TTR28
335 TRANSLATE(PartyIdentification18Choice, 95R) 336 RULE 337 ProprietaryIdentification TranslateTo 95R 338 END 339 END |
protected void |
translateTTR29(String targetElement,
XmlNode node)
Translate method TTR29
340 TRANSLATE(GenericIdentification24, 95R) 341 RULE 342 NODE (DataSourceScheme) 343 GenericIdentification24 TranslateTo DataSourceScheme 344 END 345 NODE (ProprietaryCode) 346 Identification CopyTo ProprietaryCode 347 END 348 END 349 END |
protected void |
translateTTR3(String targetElement,
XmlNode node)
Translate method TTR3
15 TRANSLATE(ISODate, DateTime_YYYYMMDD) 16 RULE 17 (ISODate FormatDateTime ('MX_Date', 'MT_YYYYMMDD')) CopyTo DateTime_YYYYMMDD 18 END 19 END |
protected void |
translateTTR30(String targetElement,
XmlNode node)
Translate method TTR30
350 TRANSLATE(GenericIdentification24, Identifier_FIN_8c) 351 RULE 352 (Issuer Concatenate SchemeName) CopyTo Identifier_FIN_8c 353 END 354 END |
protected void |
translateTTR31(String targetElement,
XmlNode node)
Translate method TTR31
355 TRANSLATE(SecuritiesAccount17, 97A) 356 RULE 357 NODE (AccountNumber) 358 IF (Not ((Type IsPresent) Or (Name IsPresent))) 359 THEN 360 Identification CopyTo AccountNumber 361 END 362 END 363 END 364 END |
protected void |
translateTTR32(String targetElement,
XmlNode node)
Translate method TTR32
365 TRANSLATE(SecuritiesAccount17, 97B_2) 366 RULE 367 NODE (DataSourceScheme) 368 Type TranslateTo DataSourceScheme 369 END 370 NODE (AccountTypeCode) 371 Type\Identification CopyTo AccountTypeCode 372 END 373 NODE (AccountNumber) 374 IF (Type IsPresent) 375 THEN 376 Identification CopyTo AccountNumber 377 END 378 END 379 END 380 END |
protected void |
translateTTR33(String targetElement,
XmlNode node)
Translate method TTR33
381 TRANSLATE(FXCancellation2Choice, 22F_89) 382 RULE 383 NODE (DataSourceScheme) 384 Proprietary TranslateTo DataSourceScheme 385 END 386 NODE (Indicator) 387 IF (Indicator IsSameBoolean 'false') 388 THEN 389 'FXNO' CopyTo Indicator 390 END 391 IF (Indicator IsSameBoolean 'true') 392 THEN 393 'FXYE' CopyTo Indicator 394 END 395 Proprietary\Identification CopyTo Indicator 396 END 397 END 398 END |
protected void |
translateTTR34(String targetElement,
XmlNode node)
Translate method TTR34
399 TRANSLATE(PartyIdentification16Choice, 95P_2) 400 RULE 401 NODE (IdentifierCode) 402 BICOrBEI CopyTo IdentifierCode 403 END 404 END 405 END |
protected void |
translateTTR35(String targetElement,
XmlNode node)
Translate method TTR35
406 TRANSLATE(PartyIdentification16Choice, 95Q) 407 RULE 408 NODE (NameAndAddress) 409 NameAndAddress TranslateTo NameAndAddress 410 END 411 END 412 END |
protected void |
translateTTR36(String targetElement,
XmlNode node)
Translate method TTR36
413 TRANSLATE(NameAndAddress12, Text_FIN_4M35x) 414 RULE 415 NODE (Line) 416 (Name Substring ('1', '35')) CopyTo Line[1] 417 END 418 NODE (Line) 419 (Name Substring ('36', '35')) CopyTo Line[2] 420 END 421 NODE (Line) 422 (Name Substring ('71', '35')) CopyTo Line[3] 423 END 424 NODE (Line) 425 (Name Substring ('106', '35')) CopyTo Line[4] 426 END 427 END 428 END |
protected void |
translateTTR37(String targetElement,
XmlNode node)
Translate method TTR37
429 TRANSLATE(PartyIdentification16Choice, 95R) 430 RULE 431 ProprietaryIdentification TranslateTo 95R 432 END 433 END |
protected void |
translateTTR38(String targetElement,
XmlNode node)
Translate method TTR38
434 TRANSLATE(PartyIdentification17Choice, 95C) 435 RULE 436 NODE (CountryCode) 437 Country CopyTo CountryCode 438 END 439 END 440 END |
protected void |
translateTTR39(String targetElement,
XmlNode node)
Translate method TTR39
441 TRANSLATE(PartyIdentification17Choice, 95P_2) 442 RULE 443 NODE (IdentifierCode) 444 BICOrBEI CopyTo IdentifierCode 445 END 446 END 447 END |
protected void |
translateTTR4(String targetElement,
XmlNode node)
Translate method TTR4
20 TRANSLATE(DateAndDateTimeChoice, 98C) 21 RULE 22 NODE (Date) 23 IF (Not ((((DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z?') Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z')) Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[+-][0-9]{2}:[0-9]{2}')) Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}'))) 24 THEN 25 DateTime TranslateTo Date 26 END 27 END 28 NODE (Time) 29 IF (Not ((((DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z?') Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z')) Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[+-][0-9]{2}:[0-9]{2}')) Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}'))) 30 THEN 31 DateTime TranslateTo Time 32 END 33 END 34 END 35 END |
protected void |
translateTTR40(String targetElement,
XmlNode node)
Translate method TTR40
448 TRANSLATE(PartyIdentification17Choice, 95Q) 449 RULE 450 NODE (NameAndAddress) 451 NameAndAddress TranslateTo NameAndAddress 452 END 453 END 454 END |
protected void |
translateTTR41(String targetElement,
XmlNode node)
Translate method TTR41
455 TRANSLATE(AmountAndDirection12, 19A) 456 RULE 457 Amount TranslateTo 19A 458 NODE (Sign) 459 IF (CreditDebitIndicator IsSameString 'DBIT') 460 THEN 461 'N' CopyTo Sign 462 END 463 END 464 END 465 END |
protected void |
translateTTR42(String targetElement,
XmlNode node)
Translate method TTR42
466 TRANSLATE(RestrictedFINActiveCurrencyAndAmount, 19A) 467 RULE 468 NODE (CurrencyCode) 469 IF (((Amount FormatDecimal 'MT') Length) LessThanOrEqualTo '15') 470 THEN 471 Currency CopyTo CurrencyCode 472 END 473 END 474 NODE (Amount) 475 IF (((Amount FormatDecimal 'MT') Length) LessThanOrEqualTo '15') 476 THEN 477 (Amount FormatDecimal 'MT') CopyTo Amount 478 END 479 END 480 END 481 END |
protected void |
translateTTR43(String targetElement,
XmlNode node)
Translate method TTR43
482 TRANSLATE(RestrictedFINActiveOrHistoricCurrencyAndAmount, 19A) 483 RULE 484 NODE (CurrencyCode) 485 Currency CopyTo CurrencyCode 486 END 487 NODE (Amount) 488 (Amount FormatDecimal 'MT') CopyTo Amount 489 END 490 END 491 END |
protected void |
translateTTR44(String targetElement,
XmlNode node)
Translate method TTR44
492 TRANSLATE(PartyIdentification15Choice, 95C) 493 RULE 494 NODE (CountryCode) 495 Country CopyTo CountryCode 496 END 497 END 498 END |
protected void |
translateTTR45(String targetElement,
XmlNode node)
Translate method TTR45
499 TRANSLATE(PartyIdentification15Choice, 95P_2) 500 RULE 501 NODE (IdentifierCode) 502 BICOrBEI CopyTo IdentifierCode 503 END 504 END 505 END |
protected void |
translateTTR46(String targetElement,
XmlNode node)
Translate method TTR46
506 TRANSLATE(PartyIdentification15Choice, 95Q) 507 RULE 508 NODE (NameAndAddress) 509 NameAndAddress TranslateTo NameAndAddress 510 END 511 END 512 END |
protected void |
translateTTR47(String targetElement,
XmlNode node)
Translate method TTR47
513 TRANSLATE(PartyIdentification15Choice, 95R) 514 RULE 515 ProprietaryIdentification TranslateTo 95R 516 END 517 END |
protected void |
translateTTR5(String targetElement,
XmlNode node)
Translate method TTR5
36 TRANSLATE(ISODateTime, DateTime_YYYYMMDD) 37 RULE 38 (ISODateTime FormatDateTime ('MX_DateTime', 'MT_YYYYMMDD')) CopyTo DateTime_YYYYMMDD 39 END 40 END |
protected void |
translateTTR6(String targetElement,
XmlNode node)
Translate method TTR6
41 TRANSLATE(ISODateTime, DateTime_HHMMSS) 42 RULE 43 (ISODateTime FormatDateTime ('MX_DateTime', 'MT_HHMMSS')) CopyTo DateTime_HHMMSS 44 END 45 END |
protected void |
translateTTR7(String targetElement,
XmlNode node)
Translate method TTR7
46 TRANSLATE(DateAndDateTimeChoice, 98E_1) 47 RULE 48 NODE (Date) 49 IF ((((DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z?') Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z')) Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[+-][0-9]{2}:[0-9]{2}')) Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}')) 50 THEN 51 DateTime TranslateTo Date 52 END 53 END 54 NODE (Time) 55 IF ((((DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z?') Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z')) Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[+-][0-9]{2}:[0-9]{2}')) Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}')) 56 THEN 57 DateTime TranslateTo Time 58 END 59 END 60 NODE (Decimals) 61 IF ((DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z?') Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}')) 62 THEN 63 DateTime TranslateTo Decimals 64 END 65 END 66 NODE (UTCIndicator) 67 IF ((((DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[+-][0-9]{2}:[0-9]{2}') Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}')) Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z')) Or (DateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z')) 68 THEN 69 DateTime TranslateTo UTCIndicator 70 END 71 END 72 END 73 END |
protected void |
translateTTR8(String targetElement,
XmlNode node)
Translate method TTR8
74 TRANSLATE(ISODateTime, Quantity_FIN_3n) 75 RULE 76 IF (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*') 77 THEN 78 (ISODateTime Substring (((ISODateTime Find '.') Add '1'), '3')) CopyTo Quantity_FIN_3n 79 END 80 IF (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*[+-][0-9]{2}:[0-9]{2}') 81 THEN 82 (((ISODateTime Substring '1') ExtractPattern ('\.', '[+-]')) Substring ('2', '3')) CopyTo Quantity_FIN_3n 83 END 84 IF (ISODateTime Matches '[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]*Z') 85 THEN 86 (((ISODateTime Substring '1') ExtractPattern ('\.', 'Z')) Substring ('2', '3')) CopyTo Quantity_FIN_3n 87 END 88 END 89 END |
protected void |
translateTTR9(String targetElement,
XmlNode node)
Translate method TTR9
90 TRANSLATE(ISODateTime, DateTime_UTCIndicator_1) 91 RULE 92 IF (ISODateTime Matches '.*-00:00') 93 THEN 94 '0000' CopyTo DateTime_UTCIndicator_1 95 ELSE 96 (ISODateTime FormatDateTime ('MX_DateTime', 'MT_UTCIndicator')) CopyTo DateTime_UTCIndicator_1 97 END 98 END 99 END |
public MxSese02000201_MT542_Translation()
public final MT542 translate(MxSese02000201 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MxSese02000201 objectLogicalMessageCriteriaException
TranslationPreconditionException
protected final void translateImpl(MxSese02000201 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MxSese02000201 objectLogicalMessageCriteriaException
TranslationPreconditionException
protected void translateTTR1(String targetElement, XmlNode node)
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 translateTTR2(String targetElement, XmlNode node)
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 translateTTR3(String targetElement, XmlNode node)
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 translateTTR4(String targetElement, XmlNode node)
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 translateTTR5(String targetElement, XmlNode node)
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 translateTTR6(String targetElement, XmlNode node)
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 translateTTR7(String targetElement, XmlNode node)
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 translateTTR8(String targetElement, XmlNode node)
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 translateTTR9(String targetElement, XmlNode node)
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 translateTTR10(String targetElement, XmlNode node)
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 translateTTR11(String targetElement, XmlNode node)
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 translateTTR12(String targetElement, XmlNode node)
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 translateTTR13(String targetElement, XmlNode node)
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 translateTTR14(String targetElement, XmlNode node)
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 translateTTR15(String targetElement, XmlNode node)
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 translateTTR16(String targetElement, XmlNode node)
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 translateTTR17(String targetElement, XmlNode node)
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 translateTTR18(String targetElement, XmlNode node)
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 translateTTR19(String targetElement, XmlNode node)
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 translateTTR20(String targetElement, XmlNode node)
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 translateTTR21(String targetElement, XmlNode node)
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 translateTTR22(String targetElement, XmlNode node)
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 translateTTR23(String targetElement, XmlNode node)
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 translateTTR24(String targetElement, XmlNode node)
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 translateTTR25(String targetElement, XmlNode node)
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 translateTTR26(String targetElement, XmlNode node)
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 translateTTR27(String targetElement, XmlNode node)
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 translateTTR28(String targetElement, XmlNode node)
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 translateTTR29(String targetElement, XmlNode node)
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 translateTTR30(String targetElement, XmlNode node)
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 translateTTR31(String targetElement, XmlNode node)
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 translateTTR32(String targetElement, XmlNode node)
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 translateTTR33(String targetElement, XmlNode node)
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 translateTTR34(String targetElement, XmlNode node)
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 translateTTR35(String targetElement, XmlNode node)
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 translateTTR36(String targetElement, XmlNode node)
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 translateTTR37(String targetElement, XmlNode node)
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 translateTTR38(String targetElement, XmlNode node)
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 translateTTR39(String targetElement, XmlNode node)
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 translateTTR40(String targetElement, XmlNode node)
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 translateTTR41(String targetElement, XmlNode node)
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 translateTTR42(String targetElement, XmlNode node)
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 translateTTR43(String targetElement, XmlNode node)
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 translateTTR44(String targetElement, XmlNode node)
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 translateTTR45(String targetElement, XmlNode node)
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 translateTTR46(String targetElement, XmlNode node)
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 translateTTR47(String targetElement, XmlNode node)
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(MxSese02000201 source)
source
- a well formed MxSese02000201 objectpublic final List<PreconditionError> preconditionsCheck(MxSese02000201 source)