public class MxSese02200201_MT548_Translation extends
Modifier | Constructor and Description |
---|---|
|
MxSese02200201_MT548_Translation()
Creates the translation class initializing it with the proper MX identification.
|
protected |
MxSese02200201_MT548_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(MxSese02200201 source)
Message criteria check
This method checks the content of the source MxSese02200201 and determines if it can be translated to the target MT548 |
List<PreconditionError> |
preconditionsCheck(MxSese02200201 source)
Precondition check
This method checks the precondition on the content of the source MxSese02200201 return a list with a precondition errors for each failed check, or an empty list if all preconditions are satisfied |
MT548 |
translate(MxSese02200201 source)
Main entry point for the translation
|
protected void |
translateImpl(MxSese02200201 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(ProcessingStatus8Choice, OptionalCode_4!c_77) 101 RULE 102 IF ((Rejected IsPresent) Or (Rejected\NoSpecifiedReason IsSameString 'NORE')) 103 THEN 104 'REJT' CopyTo OptionalCode_4!c_77 105 END 106 END 107 END |
protected void |
translateTTR11(String targetElement,
XmlNode node)
Translate method TTR11
108 TRANSLATE(RejectionAndRepairReason5Choice, 24B_62) 109 RULE 110 NODE (DataSourceScheme) 111 Proprietary TranslateTo DataSourceScheme 112 END 113 NODE (ReasonCode) 114 Code TranslateTo ReasonCode 115 Proprietary\Identification CopyTo ReasonCode 116 END 117 END 118 END |
protected void |
translateTTR12(String targetElement,
XmlNode node)
Translate method TTR12
119 TRANSLATE(GenericIdentification25, Identifier_FIN_8c) 120 RULE 121 (Issuer Concatenate SchemeName) CopyTo Identifier_FIN_8c 122 END 123 END |
protected void |
translateTTR13(String targetElement,
XmlNode node)
Translate method TTR13
124 TRANSLATE(RejectionReason24Code, OptionalCode_4!c_382) 125 RULE 126 'SAFE' EquivalentTo 'SAFE' 127 'DSEC' EquivalentTo 'DSEC' 128 'LATE' EquivalentTo 'LATE' 129 'REFE' EquivalentTo 'REFE' 130 'ADEA' EquivalentTo 'ADEA' 131 'OTHR' EquivalentTo 'NARR' 132 'MISM' EquivalentTo 'MISM' 133 END 134 END |
protected void |
translateTTR14(String targetElement,
XmlNode node)
Translate method TTR14
135 TRANSLATE(RestrictedFINXMax210Text, 70D) 136 RULE 137 NODE (Narrative) 138 NODE (Line) 139 (RestrictedFINXMax210Text Substring ('1', '35')) CopyTo Narrative\Line[1] 140 END 141 NODE (Line) 142 (RestrictedFINXMax210Text Substring ('36', '35')) CopyTo Narrative\Line[2] 143 END 144 NODE (Line) 145 (RestrictedFINXMax210Text Substring ('71', '35')) CopyTo Narrative\Line[3] 146 END 147 NODE (Line) 148 (RestrictedFINXMax210Text Substring ('106', '35')) CopyTo Narrative\Line[4] 149 END 150 NODE (Line) 151 (RestrictedFINXMax210Text Substring ('141', '35')) CopyTo Narrative\Line[5] 152 END 153 NODE (Line) 154 (RestrictedFINXMax210Text Substring ('176', '35')) CopyTo Narrative\Line[6] 155 END 156 END 157 END 158 END |
protected void |
translateTTR15(String targetElement,
XmlNode node)
Translate method TTR15
159 TRANSLATE(AcknowledgedAcceptedStatus4Choice, 25D_8) 160 RULE 161 NODE (DataSourceScheme) 162 'COEX' CopyTo DataSourceScheme 163 END 164 NODE (StatusCode) 165 IF (NoSpecifiedReason IsSameString 'NORE') 166 THEN 167 'PACK' CopyTo StatusCode 168 END 169 IF (Reason[*] IsPresent) 170 THEN 171 'PACK' CopyTo StatusCode 172 END 173 END 174 END 175 END |
protected void |
translateTTR16(String targetElement,
XmlNode node)
Translate method TTR16
176 TRANSLATE(AcknowledgementReason6Choice, 24B_10) 177 RULE 178 NODE (DataSourceScheme) 179 Proprietary TranslateTo DataSourceScheme 180 END 181 NODE (ReasonCode) 182 Code TranslateTo ReasonCode 183 Proprietary\Identification CopyTo ReasonCode 184 END 185 END 186 END |
protected void |
translateTTR17(String targetElement,
XmlNode node)
Translate method TTR17
187 TRANSLATE(AcknowledgementReason3Code, OptionalCode_4!c_85) 188 RULE 189 'ADEA' EquivalentTo 'ADEA' 190 'OTHR' EquivalentTo 'NARR' 191 'SMPG' EquivalentTo 'SMPG' 192 END 193 END |
protected void |
translateTTR18(String targetElement,
XmlNode node)
Translate method TTR18
194 TRANSLATE(PartyIdentification16Choice, 95P_2) 195 RULE 196 NODE (IdentifierCode) 197 BICOrBEI CopyTo IdentifierCode 198 END 199 END 200 END |
protected void |
translateTTR19(String targetElement,
XmlNode node)
Translate method TTR19
201 TRANSLATE(PartyIdentification16Choice, 95Q) 202 RULE 203 NODE (NameAndAddress) 204 NameAndAddress TranslateTo NameAndAddress 205 END 206 END 207 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
208 TRANSLATE(NameAndAddress12, Text_FIN_4M35x) 209 RULE 210 NODE (Line) 211 (Name Substring ('1', '35')) CopyTo Line[1] 212 END 213 NODE (Line) 214 (Name Substring ('36', '35')) CopyTo Line[2] 215 END 216 NODE (Line) 217 (Name Substring ('71', '35')) CopyTo Line[3] 218 END 219 NODE (Line) 220 (Name Substring ('106', '35')) CopyTo Line[4] 221 END 222 END 223 END |
protected void |
translateTTR21(String targetElement,
XmlNode node)
Translate method TTR21
224 TRANSLATE(PartyIdentification16Choice, 95R) 225 RULE 226 ProprietaryIdentification TranslateTo 95R 227 END 228 END |
protected void |
translateTTR22(String targetElement,
XmlNode node)
Translate method TTR22
229 TRANSLATE(GenericIdentification24, 95R) 230 RULE 231 NODE (DataSourceScheme) 232 GenericIdentification24 TranslateTo DataSourceScheme 233 END 234 NODE (ProprietaryCode) 235 Identification CopyTo ProprietaryCode 236 END 237 END 238 END |
protected void |
translateTTR23(String targetElement,
XmlNode node)
Translate method TTR23
239 TRANSLATE(GenericIdentification24, Identifier_FIN_8c) 240 RULE 241 (Issuer Concatenate SchemeName) CopyTo Identifier_FIN_8c 242 END 243 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 MxSese02200201_MT548_Translation()
public final MT548 translate(MxSese02200201 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MxSese02200201 objectLogicalMessageCriteriaException
TranslationPreconditionException
protected final void translateImpl(MxSese02200201 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MxSese02200201 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 addedpublic final Boolean logicalMessageCriteriaCheck(MxSese02200201 source)
source
- a well formed MxSese02200201 objectpublic final List<PreconditionError> preconditionsCheck(MxSese02200201 source)