public class MT548_MxSese03100201_Translation extends
Modifier | Constructor and Description |
---|---|
|
MT548_MxSese03100201_Translation()
Creates the translation class initializing it with the proper MX identification.
|
protected |
MT548_MxSese03100201_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(MT548 source)
Message criteria check
This method checks the content of the source MT548 and determines if it can be translated to the target MxSese03100201 SELECT CRITERIA MustBe (MT548 Settlement Status and Processing Advice\A\23G Function of the Message\23G\Function IsSameString 'INST') MustBe (MT548 Settlement Status and Processing Advice\A2[*]\25D Status\TPRC IsPresent) MustBe (MT548 Settlement Status and Processing Advice\A1[*]\20C Reference\RELA IsPresent) END |
List<PreconditionError> |
preconditionsCheck(MT548 source)
Precondition check
This method checks the precondition on the content of the source MT548 |
void |
preconditionSR1Check(MT548 source)
Precondition check
This method checks the precondition SR1 on the content of the source MT548 IF ((MT548 Settlement Status and Processing Advice\A2[*]\25D Status\TPRC Count) GreaterThan '1') THEN Fail ('05001', 'Only one status TPRC by message.', MT548 Settlement Status and Processing Advice\A2[*]\25D Status\TPRC) END |
protected Integer |
resolveComponentNumber(String field,
String component)
Static mapping of fields component names into its correspondent component number
|
MxSese03100201 |
translate(MT548 source)
Main entry point for the translation
|
protected void |
translateImpl(MT548 source)
Translation rules implementation
|
protected void |
translateTTR1(String targetElement,
MtPathResult content)
Translate method TTR1
1 TRANSLATE(98A, DateAndDateTimeChoice) 2 RULE 3 NODE (Date) 4 (Date FormatDateTime ('MT_YYYYMMDD', 'MX_Date')) CopyTo Date 5 END 6 END 7 END |
protected void |
translateTTR10(String targetElement,
MtPathResult content)
Translate method TTR10
76 TRANSLATE(97A, SecuritiesAccount17) 77 RULE 78 NODE (Identification) 79 AccountNumber TranslateTo Identification 80 END 81 END 82 END |
protected void |
translateTTR11(String targetElement,
String content)
Translate method TTR11
83 TRANSLATE(Identifier_FIN_35x, RestrictedFINXMax35Text) 84 RULE 85 Identifier_FIN_35x CopyTo RestrictedFINXMax35Text 86 END 87 END |
protected void |
translateTTR12(String targetElement,
MtPathResult content)
Translate method TTR12
88 TRANSLATE(97B_2, SecuritiesAccount17) 89 RULE 90 NODE (Identification) 91 AccountNumber CopyTo Identification 92 END 93 NODE (Type) 94 NODE (Identification) 95 AccountTypeCode CopyTo Type\Identification 96 END 97 DataSourceScheme TranslateTo Type 98 NODE (Issuer) 99 IF (Not (DataSourceScheme IsPresent)) 100 THEN 101 'NONE' CopyTo Type\Issuer 102 END 103 END 104 END 105 END 106 END |
protected void |
translateTTR13(String targetElement,
MtPathResult content)
Translate method TTR13
107 TRANSLATE(Identifier_FIN_8c, GenericIdentification25) 108 RULE 109 NODE (Issuer) 110 (Identifier_FIN_8c Substring ('1', '4')) CopyTo Issuer 111 END 112 NODE (SchemeName) 113 IF (Not (((Identifier_FIN_8c Substring '5') Length) IsSameNumber '0')) 114 THEN 115 (Identifier_FIN_8c Substring '5') CopyTo SchemeName 116 END 117 END 118 END 119 END |
protected void |
translateTTR14(String targetElement,
MtPathResult content)
Translate method TTR14
120 TRANSLATE(24B_10, AcknowledgementReason8Choice) 121 RULE 122 NODE (Code) 123 IF (Not (DataSourceScheme IsPresent)) 124 THEN 125 ReasonCode TranslateTo Code 126 END 127 END 128 NODE (Proprietary) 129 DataSourceScheme TranslateTo Proprietary 130 NODE (Identification) 131 IF (DataSourceScheme IsPresent) 132 THEN 133 ReasonCode CopyTo Proprietary\Identification 134 END 135 END 136 END 137 END 138 END |
protected void |
translateTTR15(String targetElement,
String content)
Translate method TTR15
139 TRANSLATE(OptionalCode_4!c_85, AcknowledgementReason5Code) 140 RULE 141 'ADEA' EquivalentTo 'ADEA' 142 'NARR' EquivalentTo 'OTHR' 143 'SMPG' EquivalentTo 'SMPG' 144 END 145 END |
protected void |
translateTTR16(String targetElement,
MtPathResult content)
Translate method TTR16
146 TRANSLATE(70D, RestrictedFINXMax210Text) 147 RULE 148 (Narrative\Line[*] Concatenate) CopyTo RestrictedFINXMax210Text 149 END 150 END |
protected void |
translateTTR17(String targetElement,
MtPathResult content)
Translate method TTR17
151 TRANSLATE(24B_62, RejectionAndRepairReason7Choice) 152 RULE 153 NODE (Code) 154 IF (Not (DataSourceScheme IsPresent)) 155 THEN 156 ReasonCode TranslateTo Code 157 END 158 END 159 NODE (Proprietary) 160 NODE (Identification) 161 IF (DataSourceScheme IsPresent) 162 THEN 163 ReasonCode CopyTo Proprietary\Identification 164 END 165 END 166 DataSourceScheme TranslateTo Proprietary 167 END 168 END 169 END |
protected void |
translateTTR18(String targetElement,
String content)
Translate method TTR18
170 TRANSLATE(OptionalCode_4!c_382, RejectionReason23Code) 171 RULE 172 'ADEA' EquivalentTo 'ADEA' 173 'NARR' EquivalentTo 'OTHR' 174 'SAFE' EquivalentTo 'SAFE' 175 'REFE' EquivalentTo 'REFE' 176 'LATE' EquivalentTo 'LATE' 177 'DDAT' EquivalentTo 'DDAT' 178 END 179 END |
protected void |
translateTTR19(String targetElement,
MtPathResult content)
Translate method TTR19
180 TRANSLATE(24B_8, DeniedReason6Choice) 181 RULE 182 NODE (Code) 183 IF (Not (DataSourceScheme IsPresent)) 184 THEN 185 ReasonCode TranslateTo Code 186 END 187 END 188 NODE (Proprietary) 189 DataSourceScheme TranslateTo Proprietary 190 NODE (Identification) 191 IF (DataSourceScheme IsPresent) 192 THEN 193 ReasonCode CopyTo Proprietary\Identification 194 END 195 END 196 END 197 END 198 END |
protected void |
translateTTR2(String targetElement,
MtPathResult content)
Translate method TTR2
8 TRANSLATE(98C, DateAndDateTimeChoice) 9 RULE 10 NODE (DateTime) 11 (Date FormatDateTime ('MT_YYYYMMDD', 'MX_Date')) CopyTo DateTime 12 'T' CopyTo DateTime 13 (Time FormatDateTime ('MT_HHMMSS', 'MX_Time')) CopyTo DateTime 14 END 15 END 16 END |
protected void |
translateTTR20(String targetElement,
String content)
Translate method TTR20
199 TRANSLATE(OptionalCode_4!c_83, DeniedReason4Code) 200 RULE 201 'ADEA' EquivalentTo 'ADEA' 202 'DCAN' EquivalentTo 'DCAN' 203 'DPRG' EquivalentTo 'DPRG' 204 'DREP' EquivalentTo 'DREP' 205 'DSET' EquivalentTo 'DSET' 206 'LATE' EquivalentTo 'LATE' 207 'NARR' EquivalentTo 'OTHR' 208 END 209 END |
protected void |
translateTTR21(String targetElement,
MtPathResult content)
Translate method TTR21
210 TRANSLATE(Identifier_FIN_8c, GenericIdentification25) 211 RULE 212 NODE (Issuer) 213 (Identifier_FIN_8c Substring ('1', '4')) CopyTo Issuer 214 END 215 NODE (SchemeName) 216 IF (Not (((Identifier_FIN_8c Substring '5') Length) IsSameNumber '0')) 217 THEN 218 (Identifier_FIN_8c Substring '5') CopyTo SchemeName 219 END 220 END 221 END 222 END |
protected void |
translateTTR22(String targetElement,
MtPathResult content)
Translate method TTR22
223 TRANSLATE(24B_61, PendingReason9Choice) 224 RULE 225 NODE (Code) 226 IF (Not (DataSourceScheme IsPresent)) 227 THEN 228 ReasonCode TranslateTo Code 229 END 230 END 231 NODE (Proprietary) 232 DataSourceScheme TranslateTo Proprietary 233 NODE (Identification) 234 IF (DataSourceScheme IsPresent) 235 THEN 236 ReasonCode CopyTo Proprietary\Identification 237 END 238 END 239 END 240 END 241 END |
protected void |
translateTTR23(String targetElement,
String content)
Translate method TTR23
242 TRANSLATE(OptionalCode_4!c_367, PendingReason6Code) 243 RULE 244 'CONF' EquivalentTo 'CONF' 245 'NARR' EquivalentTo 'OTHR' 246 END 247 END |
protected void |
translateTTR24(String targetElement,
MtPathResult content)
Translate method TTR24
248 TRANSLATE(95P_2, PartyIdentification16Choice) 249 RULE 250 NODE (BICOrBEI) 251 IdentifierCode TranslateTo BICOrBEI 252 END 253 END 254 END |
protected void |
translateTTR25(String targetElement,
MtPathResult content)
Translate method TTR25
255 TRANSLATE(95Q, PartyIdentification16Choice) 256 RULE 257 NODE (NameAndAddress) 258 NameAndAddress TranslateTo NameAndAddress 259 END 260 END 261 END |
protected void |
translateTTR26(String targetElement,
String content)
Translate method TTR26
262 TRANSLATE(Text_FIN_4M35x, NameAndAddress12) 263 RULE 264 NODE (Name) 265 ((Line[*] ConcatenateWithSeparator '-') ReplaceAll ('/', '-')) CopyTo Name 266 END 267 END 268 END |
protected void |
translateTTR27(String targetElement,
MtPathResult content)
Translate method TTR27
269 TRANSLATE(95R, PartyIdentification16Choice) 270 RULE 271 NODE (ProprietaryIdentification) 272 NODE (Identification) 273 ProprietaryCode TranslateTo ProprietaryIdentification\Identification 274 END 275 DataSourceScheme TranslateTo ProprietaryIdentification 276 END 277 END 278 END |
protected void |
translateTTR3(String targetElement,
MtPathResult content)
Translate method TTR3
17 TRANSLATE(98E_1, DateAndDateTimeChoice) 18 RULE 19 NODE (DateTime) 20 IF (Decimals IsPresent) 21 THEN 22 ((((((Date FormatDateTime ('MT_YYYYMMDD', 'MX_Date')) Concatenate 'T') Concatenate (Time FormatDateTime ('MT_HHMMSS', 'MX_Time'))) Concatenate '.') Concatenate Decimals) Concatenate (UTCIndicator FormatDateTime ('MT_UTCIndicator', 'MX_TimeOffset'))) CopyTo DateTime 23 ELSE 24 ((((Date FormatDateTime ('MT_YYYYMMDD', 'MX_Date')) Concatenate 'T') Concatenate (Time FormatDateTime ('MT_HHMMSS', 'MX_Time'))) Concatenate (UTCIndicator FormatDateTime ('MT_UTCIndicator', 'MX_TimeOffset'))) CopyTo DateTime 25 END 26 END 27 END 28 END |
protected void |
translateTTR4(String targetElement,
MtPathResult content)
Translate method TTR4
29 TRANSLATE(Code_4!c_4, CopyDuplicate1Code) 30 RULE 31 'CODU' EquivalentTo 'CODU' 32 'COPY' EquivalentTo 'COPY' 33 'DUPL' EquivalentTo 'DUPL' 34 END 35 END |
protected void |
translateTTR5(String targetElement,
MtPathResult content)
Translate method TTR5
36 TRANSLATE(95P_2, PartyIdentification18Choice) 37 RULE 38 NODE (BICOrBEI) 39 IdentifierCode TranslateTo BICOrBEI 40 END 41 END 42 END |
protected void |
translateTTR6(String targetElement,
String content)
Translate method TTR6
43 TRANSLATE(Identifier_BICBEI, AnyBICIdentifier) 44 RULE 45 Identifier_BICBEI CopyTo AnyBICIdentifier 46 END 47 END |
protected void |
translateTTR7(String targetElement,
MtPathResult content)
Translate method TTR7
48 TRANSLATE(95R, PartyIdentification18Choice) 49 RULE 50 NODE (ProprietaryIdentification) 51 NODE (Identification) 52 ProprietaryCode TranslateTo ProprietaryIdentification\Identification 53 END 54 DataSourceScheme TranslateTo ProprietaryIdentification 55 END 56 END 57 END |
protected void |
translateTTR8(String targetElement,
String content)
Translate method TTR8
58 TRANSLATE(Text_FIN_34x, RestrictedFINXMax34Text) 59 RULE 60 Text_FIN_34x CopyTo RestrictedFINXMax34Text 61 END 62 END |
protected void |
translateTTR9(String targetElement,
String content)
Translate method TTR9
63 TRANSLATE(Identifier_FIN_8c, GenericIdentification24) 64 RULE 65 NODE (Issuer) 66 (Identifier_FIN_8c Substring ('1', '4')) CopyTo Issuer 67 END 68 NODE (SchemeName) 69 IF (Not (((Identifier_FIN_8c Substring '5') Length) IsSameNumber '0')) 70 THEN 71 (Identifier_FIN_8c Substring '5') CopyTo SchemeName 72 END 73 END 74 END 75 END |
public MT548_MxSese03100201_Translation()
public final MxSese03100201 translate(MT548 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MT548 objectLogicalMessageCriteriaException
TranslationPreconditionException
protected final void translateImpl(MT548 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MT548 objectLogicalMessageCriteriaException
TranslationPreconditionException
protected void translateTTR1(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 translateTTR2(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 translateTTR3(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 translateTTR4(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 translateTTR5(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 translateTTR6(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 translateTTR7(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 translateTTR8(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 translateTTR9(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 translateTTR10(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 translateTTR11(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 translateTTR12(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 translateTTR13(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 translateTTR14(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 translateTTR15(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 translateTTR16(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 translateTTR17(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 translateTTR18(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 translateTTR19(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 translateTTR20(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 translateTTR21(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 translateTTR22(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 translateTTR23(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 translateTTR24(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 translateTTR25(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 translateTTR26(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 translateTTR27(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(MT548 source)
source
- a well formed MT548 objectpublic final void preconditionSR1Check(MT548 source) throws TranslationPreconditionException
source
- a well formed MT548 objectTranslationPreconditionException
public final List<PreconditionError> preconditionsCheck(MT548 source)