public class MxSemt02000201_MT586_Translation extends
Modifier | Constructor and Description |
---|---|
|
MxSemt02000201_MT586_Translation()
Creates the translation class initializing it with the proper MX identification.
|
protected |
MxSemt02000201_MT586_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 MT586 SELECT CRITERIA MustBe ((Details\Reference\SecuritiesSettlementTransactionAllegementReportIdentification IsPresent) Or (Details\Reference\PortfolioTransferNotificationIdentification 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 |
MT586 |
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_133) 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
68 TRANSLATE(GenericIdentification24, Identifier_FIN_8c) 69 RULE 70 (Issuer Concatenate SchemeName) CopyTo Identifier_FIN_8c 71 END 72 END |
protected void |
translateTTR11(String targetElement,
XmlNode node)
Translate method TTR11
73 TRANSLATE(SecuritiesAccount17, 97A) 74 RULE 75 NODE (AccountNumber) 76 IF (Not ((Type IsPresent) Or (Name IsPresent))) 77 THEN 78 Identification CopyTo AccountNumber 79 END 80 END 81 END 82 END |
protected void |
translateTTR12(String targetElement,
XmlNode node)
Translate method TTR12
83 TRANSLATE(SecuritiesAccount17, 97B_2) 84 RULE 85 NODE (DataSourceScheme) 86 Type TranslateTo DataSourceScheme 87 END 88 NODE (AccountTypeCode) 89 Type\Identification CopyTo AccountTypeCode 90 END 91 NODE (AccountNumber) 92 IF (Type IsPresent) 93 THEN 94 Identification CopyTo AccountNumber 95 END 96 END 97 END 98 END |
protected void |
translateTTR13(String targetElement,
XmlNode node)
Translate method TTR13
99 TRANSLATE(GenericIdentification25, Identifier_FIN_8c) 100 RULE 101 (Issuer Concatenate SchemeName) CopyTo Identifier_FIN_8c 102 END 103 END |
protected void |
translateTTR14(String targetElement,
XmlNode node)
Translate method TTR14
104 TRANSLATE(PartyIdentification16Choice, 95P_2) 105 RULE 106 NODE (IdentifierCode) 107 BICOrBEI CopyTo IdentifierCode 108 END 109 END 110 END |
protected void |
translateTTR15(String targetElement,
XmlNode node)
Translate method TTR15
111 TRANSLATE(PartyIdentification16Choice, 95Q) 112 RULE 113 NODE (NameAndAddress) 114 NameAndAddress TranslateTo NameAndAddress 115 END 116 END 117 END |
protected void |
translateTTR16(String targetElement,
XmlNode node)
Translate method TTR16
118 TRANSLATE(NameAndAddress12, Text_FIN_4M35x) 119 RULE 120 NODE (Line) 121 (Name Substring ('1', '35')) CopyTo Line[1] 122 END 123 NODE (Line) 124 (Name Substring ('36', '35')) CopyTo Line[2] 125 END 126 NODE (Line) 127 (Name Substring ('71', '35')) CopyTo Line[3] 128 END 129 NODE (Line) 130 (Name Substring ('106', '35')) CopyTo Line[4] 131 END 132 END 133 END |
protected void |
translateTTR17(String targetElement,
XmlNode node)
Translate method TTR17
134 TRANSLATE(PartyIdentification16Choice, 95R) 135 RULE 136 ProprietaryIdentification TranslateTo 95R 137 END 138 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 |
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(PartyIdentification18Choice, 95P_2) 47 RULE 48 NODE (IdentifierCode) 49 BICOrBEI CopyTo IdentifierCode 50 END 51 END 52 END |
protected void |
translateTTR8(String targetElement,
XmlNode node)
Translate method TTR8
53 TRANSLATE(PartyIdentification18Choice, 95R) 54 RULE 55 ProprietaryIdentification TranslateTo 95R 56 END 57 END |
protected void |
translateTTR9(String targetElement,
XmlNode node)
Translate method TTR9
58 TRANSLATE(GenericIdentification24, 95R) 59 RULE 60 NODE (DataSourceScheme) 61 GenericIdentification24 TranslateTo DataSourceScheme 62 END 63 NODE (ProprietaryCode) 64 Identification CopyTo ProprietaryCode 65 END 66 END 67 END |
public MxSemt02000201_MT586_Translation()
public final MT586 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 addedpublic final Boolean logicalMessageCriteriaCheck(MxSemt02000201 source)
source
- a well formed MxSemt02000201 objectpublic final List<PreconditionError> preconditionsCheck(MxSemt02000201 source)