public class MT549_MxSese02100201_Translation extends
Modifier | Constructor and Description |
---|---|
|
MT549_MxSese02100201_Translation()
Creates the translation class initializing it with the proper MX identification.
|
protected |
MT549_MxSese02100201_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(MT549 source)
Message criteria check
This method checks the content of the source MT549 and determines if it can be translated to the target MxSese02100201 SELECT CRITERIA FOREACH MT549 Request for Statement/Status Advice\C[*] DO MustBe (20C Reference\PREV[*] IsPresent) END MustBe (((((MT549 Request for Statement/Status Advice\A\13A Number Identification\REQU\13A\NumberId IsSameString '507') Or ((MT549 Request for Statement/Status Advice\A\13A Number Identification\REQU\13A\NumberId IsSameString '509') Or (MT549 Request for Statement/Status Advice\A\13A Number Identification\REQU\13A\NumberId IsSameString '510'))) Or (MT549 Request for Statement/Status Advice\A\13A Number Identification\REQU\13A\NumberId IsSameString '548')) Or (MT549 Request for Statement/Status Advice\A\13A Number Identification\REQU\13A\NumberId IsSameString '558')) Or (MT549 Request for Statement/Status Advice\A\13A Number Identification\REQU\13A\NumberId IsSameString '567')) END |
List<PreconditionError> |
preconditionsCheck(MT549 source)
Precondition check
This method checks the precondition on the content of the source MT549 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
|
MxSese02100201 |
translate(MT549 source)
Main entry point for the translation
|
protected void |
translateImpl(MT549 source)
Translation rules implementation
|
protected void |
translateTTR1(String targetElement,
MtPathResult content)
Translate method TTR1
1 TRANSLATE(98A, DateAndDateTimeChoice) 2 RULE 3 NODE (Date) 4 (Date FormatDateTime ('MT_YYYYMMDD', 'MX_Date')) CopyTo Date 5 END 6 END 7 END |
protected void |
translateTTR10(String targetElement,
String content)
Translate method TTR10
71 TRANSLATE(Identifier_FIN_35x, RestrictedFINXMax35Text) 72 RULE 73 Identifier_FIN_35x CopyTo RestrictedFINXMax35Text 74 END 75 END |
protected void |
translateTTR11(String targetElement,
MtPathResult content)
Translate method TTR11
76 TRANSLATE(97B_2, SecuritiesAccount17) 77 RULE 78 NODE (Identification) 79 AccountNumber CopyTo Identification 80 END 81 NODE (Type) 82 NODE (Identification) 83 AccountTypeCode CopyTo Type\Identification 84 END 85 DataSourceScheme TranslateTo Type 86 NODE (Issuer) 87 IF (Not (DataSourceScheme IsPresent)) 88 THEN 89 'NONE' CopyTo Type\Issuer 90 END 91 END 92 END 93 END 94 END |
protected void |
translateTTR12(String targetElement,
String content)
Translate method TTR12
95 TRANSLATE(Identifier_FIN_8c, GenericIdentification25) 96 RULE 97 NODE (Issuer) 98 (Identifier_FIN_8c Substring ('1', '4')) CopyTo Issuer 99 END 100 NODE (SchemeName) 101 IF (Not (((Identifier_FIN_8c Substring '5') Length) IsSameNumber '0')) 102 THEN 103 (Identifier_FIN_8c Substring '5') CopyTo SchemeName 104 END 105 END 106 END 107 END |
protected void |
translateTTR13(String targetElement,
MtPathResult content)
Translate method TTR13
108 TRANSLATE(95P_2, PartyIdentification16Choice) 109 RULE 110 NODE (BICOrBEI) 111 IdentifierCode TranslateTo BICOrBEI 112 END 113 END 114 END |
protected void |
translateTTR14(String targetElement,
MtPathResult content)
Translate method TTR14
115 TRANSLATE(95Q, PartyIdentification16Choice) 116 RULE 117 NODE (NameAndAddress) 118 NameAndAddress TranslateTo NameAndAddress 119 END 120 END 121 END |
protected void |
translateTTR15(String targetElement,
String content)
Translate method TTR15
122 TRANSLATE(Text_FIN_4M35x, NameAndAddress12) 123 RULE 124 NODE (Name) 125 ((Line[*] ConcatenateWithSeparator '-') ReplaceAll ('/', '-')) CopyTo Name 126 END 127 END 128 END |
protected void |
translateTTR16(String targetElement,
MtPathResult content)
Translate method TTR16
129 TRANSLATE(95R, PartyIdentification16Choice) 130 RULE 131 NODE (ProprietaryIdentification) 132 NODE (Identification) 133 ProprietaryCode TranslateTo ProprietaryIdentification\Identification 134 END 135 DataSourceScheme TranslateTo ProprietaryIdentification 136 END 137 END 138 END |
protected void |
translateTTR2(String targetElement,
MtPathResult content)
Translate method TTR2
8 TRANSLATE(98C, DateAndDateTimeChoice) 9 RULE 10 NODE (DateTime) 11 (Date FormatDateTime ('MT_YYYYMMDD', 'MX_Date')) CopyTo DateTime 12 'T' CopyTo DateTime 13 (Time FormatDateTime ('MT_HHMMSS', 'MX_Time')) CopyTo DateTime 14 END 15 END 16 END |
protected void |
translateTTR3(String targetElement,
MtPathResult content)
Translate method TTR3
17 TRANSLATE(Code_4!c_4, CopyDuplicate1Code) 18 RULE 19 'CODU' EquivalentTo 'CODU' 20 'COPY' EquivalentTo 'COPY' 21 'DUPL' EquivalentTo 'DUPL' 22 END 23 END |
protected void |
translateTTR4(String targetElement,
MtPathResult content)
Translate method TTR4
24 TRANSLATE(95P_2, PartyIdentification18Choice) 25 RULE 26 NODE (BICOrBEI) 27 IdentifierCode TranslateTo BICOrBEI 28 END 29 END 30 END |
protected void |
translateTTR5(String targetElement,
String content)
Translate method TTR5
31 TRANSLATE(Identifier_BICBEI, AnyBICIdentifier) 32 RULE 33 Identifier_BICBEI CopyTo AnyBICIdentifier 34 END 35 END |
protected void |
translateTTR6(String targetElement,
MtPathResult content)
Translate method TTR6
36 TRANSLATE(95R, PartyIdentification18Choice) 37 RULE 38 NODE (ProprietaryIdentification) 39 NODE (Identification) 40 ProprietaryCode TranslateTo ProprietaryIdentification\Identification 41 END 42 DataSourceScheme TranslateTo ProprietaryIdentification 43 END 44 END 45 END |
protected void |
translateTTR7(String targetElement,
String content)
Translate method TTR7
46 TRANSLATE(Text_FIN_34x, RestrictedFINXMax34Text) 47 RULE 48 Text_FIN_34x CopyTo RestrictedFINXMax34Text 49 END 50 END |
protected void |
translateTTR8(String targetElement,
String content)
Translate method TTR8
51 TRANSLATE(Identifier_FIN_8c, GenericIdentification24) 52 RULE 53 NODE (Issuer) 54 (Identifier_FIN_8c Substring ('1', '4')) CopyTo Issuer 55 END 56 NODE (SchemeName) 57 IF (Not (((Identifier_FIN_8c Substring '5') Length) IsSameNumber '0')) 58 THEN 59 (Identifier_FIN_8c Substring '5') CopyTo SchemeName 60 END 61 END 62 END 63 END |
protected void |
translateTTR9(String targetElement,
MtPathResult content)
Translate method TTR9
64 TRANSLATE(97A, SecuritiesAccount17) 65 RULE 66 NODE (Identification) 67 AccountNumber TranslateTo Identification 68 END 69 END 70 END |
public MT549_MxSese02100201_Translation()
public final MxSese02100201 translate(MT549 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MT549 objectLogicalMessageCriteriaException
TranslationPreconditionException
protected final void translateImpl(MT549 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MT549 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, 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 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, 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 translateTTR9(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 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, 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 translateTTR15(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 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 addedpublic final Boolean logicalMessageCriteriaCheck(MT549 source)
source
- a well formed MT549 objectpublic final List<PreconditionError> preconditionsCheck(MT549 source)