public class MxSese02000201_MT524_Translation extends
Modifier | Constructor and Description |
---|---|
|
MxSese02000201_MT524_Translation()
Creates the translation class initializing it with the proper MX identification.
|
protected |
MxSese02000201_MT524_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 MT524 SELECT CRITERIA MustBe (Details\AccountOwnerTransactionIdentification\IntraPositionMovementIdentification 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 |
MT524 |
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_4) 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(PartyIdentification18Choice, 95P_2) 101 RULE 102 NODE (IdentifierCode) 103 BICOrBEI CopyTo IdentifierCode 104 END 105 END 106 END |
protected void |
translateTTR11(String targetElement,
XmlNode node)
Translate method TTR11
107 TRANSLATE(PartyIdentification18Choice, 95R) 108 RULE 109 ProprietaryIdentification TranslateTo 95R 110 END 111 END |
protected void |
translateTTR12(String targetElement,
XmlNode node)
Translate method TTR12
112 TRANSLATE(GenericIdentification24, 95R) 113 RULE 114 NODE (DataSourceScheme) 115 GenericIdentification24 TranslateTo DataSourceScheme 116 END 117 NODE (ProprietaryCode) 118 Identification CopyTo ProprietaryCode 119 END 120 END 121 END |
protected void |
translateTTR13(String targetElement,
XmlNode node)
Translate method TTR13
122 TRANSLATE(GenericIdentification24, Identifier_FIN_8c) 123 RULE 124 (Issuer Concatenate SchemeName) CopyTo Identifier_FIN_8c 125 END 126 END |
protected void |
translateTTR14(String targetElement,
XmlNode node)
Translate method TTR14
127 TRANSLATE(SecuritiesAccount17, 97A) 128 RULE 129 NODE (AccountNumber) 130 IF (Not ((Type IsPresent) Or (Name IsPresent))) 131 THEN 132 Identification CopyTo AccountNumber 133 END 134 END 135 END 136 END |
protected void |
translateTTR15(String targetElement,
XmlNode node)
Translate method TTR15
137 TRANSLATE(SecuritiesAccount17, 97B_2) 138 RULE 139 NODE (DataSourceScheme) 140 Type TranslateTo DataSourceScheme 141 END 142 NODE (AccountTypeCode) 143 Type\Identification CopyTo AccountTypeCode 144 END 145 NODE (AccountNumber) 146 IF (Type IsPresent) 147 THEN 148 Identification CopyTo AccountNumber 149 END 150 END 151 END 152 END |
protected void |
translateTTR16(String targetElement,
XmlNode node)
Translate method TTR16
153 TRANSLATE(GenericIdentification25, Identifier_FIN_8c) 154 RULE 155 (Issuer Concatenate SchemeName) CopyTo Identifier_FIN_8c 156 END 157 END |
protected void |
translateTTR17(String targetElement,
XmlNode node)
Translate method TTR17
158 TRANSLATE(FinancialInstrumentQuantity15Choice, 36B) 159 RULE 160 NODE (QuantityTypeCode) 161 IF (Unit IsPresent) 162 THEN 163 'UNIT' CopyTo QuantityTypeCode 164 END 165 IF (FaceAmount IsPresent) 166 THEN 167 'FAMT' CopyTo QuantityTypeCode 168 END 169 IF (AmortisedValue IsPresent) 170 THEN 171 'AMOR' CopyTo QuantityTypeCode 172 END 173 END 174 NODE (Quantity) 175 IF ((Unit IsPresent) And ((Unit Substring ('1', '1')) IsSameString '-')) 176 THEN 177 ((Unit Substring '2') FormatDecimal 'MT') CopyTo Quantity 178 ELSE 179 IF ((Unit Substring ('1', '1')) IsSameString '+') 180 THEN 181 ((Unit Substring '2') FormatDecimal 'MT') CopyTo Quantity 182 ELSE 183 (Unit FormatDecimal 'MT') CopyTo Quantity 184 END 185 END 186 (FaceAmount FormatDecimal 'MT') CopyTo Quantity 187 (AmortisedValue FormatDecimal 'MT') CopyTo Quantity 188 END 189 END 190 END |
protected void |
translateTTR18(String targetElement,
XmlNode node)
Translate method TTR18
191 TRANSLATE(RestrictedFINImpliedCurrencyAndAmount, 36B) 192 RULE 193 NODE (QuantityTypeCode) 194 'FAMT' CopyTo QuantityTypeCode 195 END 196 NODE (Quantity) 197 IF ((RestrictedFINImpliedCurrencyAndAmount IsPresent) And ((RestrictedFINImpliedCurrencyAndAmount Substring ('1', '1')) IsSameString '-')) 198 THEN 199 ((RestrictedFINImpliedCurrencyAndAmount Substring '2') FormatDecimal 'MT') CopyTo Quantity 200 ELSE 201 IF ((RestrictedFINImpliedCurrencyAndAmount Substring ('1', '1')) IsSameString '+') 202 THEN 203 ((RestrictedFINImpliedCurrencyAndAmount Substring '2') FormatDecimal 'MT') CopyTo Quantity 204 ELSE 205 (RestrictedFINImpliedCurrencyAndAmount FormatDecimal 'MT') CopyTo Quantity 206 END 207 END 208 END 209 END 210 END |
protected void |
translateTTR19(String targetElement,
XmlNode node)
Translate method TTR19
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 |
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
255 TRANSLATE(ISINIdentifier, Identifier_Isin) 256 RULE 257 ('ISIN ' Concatenate ISINIdentifier) CopyTo Identifier_Isin 258 END 259 END |
protected void |
translateTTR21(String targetElement,
XmlNode node)
Translate method TTR21
260 TRANSLATE(SettlementDate4Choice, 98A) 261 RULE 262 Date TranslateTo 98A 263 END 264 END |
protected void |
translateTTR22(String targetElement,
XmlNode node)
Translate method TTR22
265 TRANSLATE(SettlementDate4Choice, 98C) 266 RULE 267 Date TranslateTo 98C 268 END 269 END |
protected void |
translateTTR23(String targetElement,
XmlNode node)
Translate method TTR23
270 TRANSLATE(PartyIdentification16Choice, 95P_2) 271 RULE 272 NODE (IdentifierCode) 273 BICOrBEI CopyTo IdentifierCode 274 END 275 END 276 END |
protected void |
translateTTR24(String targetElement,
XmlNode node)
Translate method TTR24
277 TRANSLATE(PartyIdentification16Choice, 95Q) 278 RULE 279 NODE (NameAndAddress) 280 NameAndAddress TranslateTo NameAndAddress 281 END 282 END 283 END |
protected void |
translateTTR25(String targetElement,
XmlNode node)
Translate method TTR25
284 TRANSLATE(NameAndAddress12, Text_FIN_4M35x) 285 RULE 286 NODE (Line) 287 (Name Substring ('1', '35')) CopyTo Line[1] 288 END 289 NODE (Line) 290 (Name Substring ('36', '35')) CopyTo Line[2] 291 END 292 NODE (Line) 293 (Name Substring ('71', '35')) CopyTo Line[3] 294 END 295 NODE (Line) 296 (Name Substring ('106', '35')) CopyTo Line[4] 297 END 298 END 299 END |
protected void |
translateTTR26(String targetElement,
XmlNode node)
Translate method TTR26
300 TRANSLATE(PartyIdentification16Choice, 95R) 301 RULE 302 ProprietaryIdentification TranslateTo 95R 303 END 304 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 |
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 |
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_MT524_Translation()
public final MT524 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 addedpublic final Boolean logicalMessageCriteriaCheck(MxSese02000201 source)
source
- a well formed MxSese02000201 objectpublic final List<PreconditionError> preconditionsCheck(MxSese02000201 source)