public class MT900_MxCamt05400102_Translation extends
Modifier | Constructor and Description |
---|---|
|
MT900_MxCamt05400102_Translation()
Creates the translation class initializing it with the proper MX identification.
|
protected |
MT900_MxCamt05400102_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(MT900 source)
Message criteria check
This method checks the content of the source MT900 and determines if it can be translated to the target MxCamt05400102 |
List<PreconditionError> |
preconditionsCheck(MT900 source)
Precondition check
This method checks the precondition on the content of the source MT900 |
void |
preconditionSR1Check(MT900 source)
Precondition check
This method checks the precondition SR1 on the content of the source MT900 IF (25 Account Identification IsPresent) THEN IF ((25 Account Identification\25 Length) GreaterThan '34') THEN Fail ('01053', 'Account Identification must be less than 35 characters.', 25 Account Identification\25) END END |
protected Integer |
resolveComponentNumber(String field,
String component)
Static mapping of fields component names into its correspondent component number
|
MxCamt05400102 |
translate(MT900 source)
Main entry point for the translation
|
protected void |
translate52A_2_PartyIdentification32_Default(String targetElement,
MtPathResult content)
Translate method 52A_2 -> PartyIdentification32 : Default
21 TRANSLATE(52A_2, PartyIdentification32) 22 RULE 23 NODE (Identification) 24 NODE (OrganisationIdentification) 25 NODE (BICOrBEI) 26 Identifier Code CopyTo Identification\OrganisationIdentification\BICOrBEI 27 END 28 END 29 END 30 END 31 END |
protected void |
translate52D_4_PartyIdentification32_Default(String targetElement,
MtPathResult content)
Translate method 52D_4 -> PartyIdentification32 : Default
32 TRANSLATE(52D_4, PartyIdentification32) 33 RULE 34 NODE (Name) 35 Name and Address\Line[1] CopyTo Name 36 END 37 NODE (PostalAddress) 38 Name and Address TranslateTo PostalAddress 39 END 40 END 41 END |
protected void |
translateAmount_FIN_15d_ActiveOrHistoricCurrencyAndAmountAmount_Default(String targetElement,
MtPathResult content)
Translate method Amount_FIN_15d -> ActiveOrHistoricCurrencyAndAmount\Amount : Default
11 TRANSLATE(Amount_FIN_15d, ActiveOrHistoricCurrencyAndAmount\Amount) 12 RULE 13 (Amount_FIN_15d FormatDecimal 'MX') CopyTo ActiveOrHistoricCurrencyAndAmount\Amount 14 END 15 END |
protected void |
translateDateTime_YYMMDD_ISODate_Default(String targetElement,
MtPathResult content)
Translate method DateTime_YYMMDD -> ISODate : Default
16 TRANSLATE(DateTime_YYMMDD, ISODate) 17 RULE 18 (DateTime_YYMMDD FormatDateTime ('MT_YYMMDD', 'MX_Date')) CopyTo ISODate 19 END 20 END |
protected void |
translateDestinationAddress_AnyBICIdentifier_Default(String targetElement,
MtPathResult content)
Translate method DestinationAddress -> AnyBICIdentifier : Default
1 TRANSLATE(DestinationAddress, AnyBICIdentifier) 2 RULE 3 ((DestinationAddress Substring ('1', '8')) Concatenate (DestinationAddress Substring '10')) CopyTo AnyBICIdentifier 4 END 5 END |
protected void |
translateImpl(MT900 source)
Translation rules implementation
|
protected void |
translateLogicalTerminalAddress_BICIdentifier_Default(String targetElement,
MtPathResult content)
Translate method LogicalTerminalAddress -> BICIdentifier : Default
6 TRANSLATE(LogicalTerminalAddress, BICIdentifier) 7 RULE 8 ((LogicalTerminalAddress Substring ('1', '8')) Concatenate (LogicalTerminalAddress Substring '10')) CopyTo BICIdentifier 9 END 10 END |
protected void |
translateText_FIN_4M35x_PostalAddress6_Default(String targetElement,
String content)
Translate method Text_FIN_4M35x -> PostalAddress6 : Default
42 TRANSLATE(Text_FIN_4M35x, PostalAddress6) 43 RULE 44 NODE (AddressLine) 45 IF ((Line[2] Length) GreaterThan '0') 46 THEN 47 Line[2] CopyTo AddressLine[1] 48 END 49 END 50 NODE (AddressLine) 51 IF ((Line[3] Length) GreaterThan '0') 52 THEN 53 Line[3] CopyTo AddressLine[2] 54 END 55 END 56 NODE (AddressLine) 57 IF ((Line[4] Length) GreaterThan '0') 58 THEN 59 Line[4] CopyTo AddressLine[3] 60 END 61 END 62 END 63 END |
public MT900_MxCamt05400102_Translation()
public final MxCamt05400102 translate(MT900 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MT900 objectLogicalMessageCriteriaException
TranslationPreconditionException
protected final void translateImpl(MT900 source) throws LogicalMessageCriteriaException, TranslationPreconditionException
source
- a well formed MT900 objectLogicalMessageCriteriaException
TranslationPreconditionException
protected void translateDestinationAddress_AnyBICIdentifier_Default(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 translateLogicalTerminalAddress_BICIdentifier_Default(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 translateAmount_FIN_15d_ActiveOrHistoricCurrencyAndAmountAmount_Default(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 translateDateTime_YYMMDD_ISODate_Default(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 translate52A_2_PartyIdentification32_Default(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 translate52D_4_PartyIdentification32_Default(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 translateText_FIN_4M35x_PostalAddress6_Default(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 addedpublic final Boolean logicalMessageCriteriaCheck(MT900 source)
source
- a well formed MT900 objectpublic final void preconditionSR1Check(MT900 source) throws TranslationPreconditionException
source
- a well formed MT900 objectTranslationPreconditionException
public final List<PreconditionError> preconditionsCheck(MT900 source)