public class MxSemt02000201_MT578_Translation extends
Modifier | Constructor and Description |
---|---|
|
MxSemt02000201_MT578_Translation()
Creates the translation class initializing it with the proper MX identification.
|
protected |
MxSemt02000201_MT578_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(MxSemt02000201 source)
Message criteria check
This method checks the content of the source MxSemt02000201 and determines if it can be translated to the target MT578 SELECT CRITERIA MustBe (Details\Reference\SecuritiesSettlementTransactionAllegementNotificationTransactionIdentification IsPresent) END |
List<PreconditionError> |
preconditionsCheck(MxSemt02000201 source)
Precondition check
This method checks the precondition on the content of the source MxSemt02000201 return a list with a precondition errors for each failed check, or an empty list if all preconditions are satisfied |
MT578 |
translate(MxSemt02000201 source)
Main entry point for the translation
|
protected void |
translateImpl(MxSemt02000201 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(PartyIdentification16Choice, 95P_2) 159 RULE 160 NODE (IdentifierCode) 161 BICOrBEI CopyTo IdentifierCode 162 END 163 END 164 END |
protected void |
translateTTR18(String targetElement,
XmlNode node)
Translate method TTR18
165 TRANSLATE(PartyIdentification16Choice, 95Q) 166 RULE 167 NODE (NameAndAddress) 168 NameAndAddress TranslateTo NameAndAddress 169 END 170 END 171 END |
protected void |
translateTTR19(String targetElement,
XmlNode node)
Translate method TTR19
172 TRANSLATE(NameAndAddress12, Text_FIN_4M35x) 173 RULE 174 NODE (Line) 175 (Name Substring ('1', '35')) CopyTo Line[1] 176 END 177 NODE (Line) 178 (Name Substring ('36', '35')) CopyTo Line[2] 179 END 180 NODE (Line) 181 (Name Substring ('71', '35')) CopyTo Line[3] 182 END 183 NODE (Line) 184 (Name Substring ('106', '35')) CopyTo Line[4] 185 END 186 END 187 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
188 TRANSLATE(PartyIdentification16Choice, 95R) 189 RULE 190 ProprietaryIdentification TranslateTo 95R 191 END 192 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 MxSemt02000201_MT578_Translation()
public final MT578 translate(MxSemt02000201 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MxSemt02000201 objectLogicalMessageCriteriaException
TranslationPreconditionException
protected final void translateImpl(MxSemt02000201 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MxSemt02000201 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 addedpublic final Boolean logicalMessageCriteriaCheck(MxSemt02000201 source)
source
- a well formed MxSemt02000201 objectpublic final List<PreconditionError> preconditionsCheck(MxSemt02000201 source)