public class MT545_MxSemt02000201_Translation extends
Modifier | Constructor and Description |
---|---|
|
MT545_MxSemt02000201_Translation()
Creates the translation class initializing it with the proper MX identification.
|
protected |
MT545_MxSemt02000201_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(MT545 source)
Message criteria check
This method checks the content of the source MT545 and determines if it can be translated to the target MxSemt02000201 SELECT CRITERIA MustBe (MT545 Receive Against Payment Confirmation\A\23G Function of the Message\23G\Function IsSameString 'CANC') END |
List<PreconditionError> |
preconditionsCheck(MT545 source)
Precondition check
This method checks the precondition on the content of the source MT545 return a list with a precondition errors for each failed check, or an empty list if all preconditions are satisfied |
protected Integer |
resolveComponentNumber(String field,
String component)
Static mapping of fields component names into its correspondent component number
|
MxSemt02000201 |
translate(MT545 source)
Main entry point for the translation
|
protected void |
translateImpl(MT545 source)
Translation rules implementation
|
protected void |
translateTTR1(String targetElement,
MtPathResult content)
Translate method TTR1
1 TRANSLATE(Text_FIN_16x, RestrictedFINXMax16Text) 2 RULE 3 Text_FIN_16x CopyTo RestrictedFINXMax16Text 4 END 5 END |
protected void |
translateTTR10(String targetElement,
String content)
Translate method TTR10
68 TRANSLATE(Identifier_FIN_8c, GenericIdentification24) 69 RULE 70 NODE (Issuer) 71 (Identifier_FIN_8c Substring ('1', '4')) CopyTo Issuer 72 END 73 NODE (SchemeName) 74 IF (Not (((Identifier_FIN_8c Substring '5') Length) IsSameNumber '0')) 75 THEN 76 (Identifier_FIN_8c Substring '5') CopyTo SchemeName 77 END 78 END 79 END 80 END |
protected void |
translateTTR11(String targetElement,
MtPathResult content)
Translate method TTR11
81 TRANSLATE(97A, SecuritiesAccount17) 82 RULE 83 NODE (Identification) 84 AccountNumber TranslateTo Identification 85 END 86 END 87 END |
protected void |
translateTTR12(String targetElement,
String content)
Translate method TTR12
88 TRANSLATE(Identifier_FIN_35x, RestrictedFINXMax35Text) 89 RULE 90 Identifier_FIN_35x CopyTo RestrictedFINXMax35Text 91 END 92 END |
protected void |
translateTTR13(String targetElement,
MtPathResult content)
Translate method TTR13
93 TRANSLATE(97B_2, SecuritiesAccount17) 94 RULE 95 NODE (Identification) 96 AccountNumber CopyTo Identification 97 END 98 NODE (Type) 99 NODE (Identification) 100 AccountTypeCode CopyTo Type\Identification 101 END 102 DataSourceScheme TranslateTo Type 103 NODE (Issuer) 104 IF (Not (DataSourceScheme IsPresent)) 105 THEN 106 'NONE' CopyTo Type\Issuer 107 END 108 END 109 END 110 END 111 END |
protected void |
translateTTR14(String targetElement,
String content)
Translate method TTR14
112 TRANSLATE(Identifier_FIN_8c, GenericIdentification25) 113 RULE 114 NODE (Issuer) 115 (Identifier_FIN_8c Substring ('1', '4')) CopyTo Issuer 116 END 117 NODE (SchemeName) 118 IF (Not (((Identifier_FIN_8c Substring '5') Length) IsSameNumber '0')) 119 THEN 120 (Identifier_FIN_8c Substring '5') CopyTo SchemeName 121 END 122 END 123 END 124 END |
protected void |
translateTTR15(String targetElement,
MtPathResult content)
Translate method TTR15
125 TRANSLATE(95P_2, PartyIdentification16Choice) 126 RULE 127 NODE (BICOrBEI) 128 IdentifierCode TranslateTo BICOrBEI 129 END 130 END 131 END |
protected void |
translateTTR16(String targetElement,
MtPathResult content)
Translate method TTR16
132 TRANSLATE(95Q, PartyIdentification16Choice) 133 RULE 134 NODE (NameAndAddress) 135 NameAndAddress TranslateTo NameAndAddress 136 END 137 END 138 END |
protected void |
translateTTR17(String targetElement,
String content)
Translate method TTR17
139 TRANSLATE(Text_FIN_4M35x, NameAndAddress12) 140 RULE 141 NODE (Name) 142 ((Line[*] ConcatenateWithSeparator '-') ReplaceAll ('/', '-')) CopyTo Name 143 END 144 END 145 END |
protected void |
translateTTR18(String targetElement,
MtPathResult content)
Translate method TTR18
146 TRANSLATE(95R, PartyIdentification16Choice) 147 RULE 148 NODE (ProprietaryIdentification) 149 NODE (Identification) 150 ProprietaryCode TranslateTo ProprietaryIdentification\Identification 151 END 152 DataSourceScheme TranslateTo ProprietaryIdentification 153 END 154 END 155 END |
protected void |
translateTTR2(String targetElement,
MtPathResult content)
Translate method TTR2
6 TRANSLATE(98A, DateAndDateTimeChoice) 7 RULE 8 NODE (Date) 9 (Date FormatDateTime ('MT_YYYYMMDD', 'MX_Date')) CopyTo Date 10 END 11 END 12 END |
protected void |
translateTTR3(String targetElement,
MtPathResult content)
Translate method TTR3
13 TRANSLATE(98C, DateAndDateTimeChoice) 14 RULE 15 NODE (DateTime) 16 (Date FormatDateTime ('MT_YYYYMMDD', 'MX_Date')) CopyTo DateTime 17 'T' CopyTo DateTime 18 (Time FormatDateTime ('MT_HHMMSS', 'MX_Time')) CopyTo DateTime 19 END 20 END 21 END |
protected void |
translateTTR4(String targetElement,
MtPathResult content)
Translate method TTR4
22 TRANSLATE(98E_1, DateAndDateTimeChoice) 23 RULE 24 NODE (DateTime) 25 IF (Decimals IsPresent) 26 THEN 27 ((((((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 28 ELSE 29 ((((Date FormatDateTime ('MT_YYYYMMDD', 'MX_Date')) Concatenate 'T') Concatenate (Time FormatDateTime ('MT_HHMMSS', 'MX_Time'))) Concatenate (UTCIndicator FormatDateTime ('MT_UTCIndicator', 'MX_TimeOffset'))) CopyTo DateTime 30 END 31 END 32 END 33 END |
protected void |
translateTTR5(String targetElement,
MtPathResult content)
Translate method TTR5
34 TRANSLATE(Code_4!c_4, CopyDuplicate1Code) 35 RULE 36 'CODU' EquivalentTo 'CODU' 37 'COPY' EquivalentTo 'COPY' 38 'DUPL' EquivalentTo 'DUPL' 39 END 40 END |
protected void |
translateTTR6(String targetElement,
MtPathResult content)
Translate method TTR6
41 TRANSLATE(95P_2, PartyIdentification18Choice) 42 RULE 43 NODE (BICOrBEI) 44 IdentifierCode TranslateTo BICOrBEI 45 END 46 END 47 END |
protected void |
translateTTR7(String targetElement,
String content)
Translate method TTR7
48 TRANSLATE(Identifier_BICBEI, AnyBICIdentifier) 49 RULE 50 Identifier_BICBEI CopyTo AnyBICIdentifier 51 END 52 END |
protected void |
translateTTR8(String targetElement,
MtPathResult content)
Translate method TTR8
53 TRANSLATE(95R, PartyIdentification18Choice) 54 RULE 55 NODE (ProprietaryIdentification) 56 NODE (Identification) 57 ProprietaryCode TranslateTo ProprietaryIdentification\Identification 58 END 59 DataSourceScheme TranslateTo ProprietaryIdentification 60 END 61 END 62 END |
protected void |
translateTTR9(String targetElement,
String content)
Translate method TTR9
63 TRANSLATE(Text_FIN_34x, RestrictedFINXMax34Text) 64 RULE 65 Text_FIN_34x CopyTo RestrictedFINXMax34Text 66 END 67 END |
public MT545_MxSemt02000201_Translation()
public final MxSemt02000201 translate(MT545 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MT545 objectLogicalMessageCriteriaException
TranslationPreconditionException
protected final void translateImpl(MT545 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MT545 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, 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 translateTTR7(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 translateTTR8(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 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, 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 translateTTR11(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 translateTTR12(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 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, 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 translateTTR15(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 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, 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 translateTTR18(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(MT545 source)
source
- a well formed MT545 objectpublic final List<PreconditionError> preconditionsCheck(MT545 source)