Class DefaultMxMetadataStrategy

  • All Implemented Interfaces:
    com.prowidesoftware.swift.model.MessageMetadataStrategy

    public class DefaultMxMetadataStrategy
    extends java.lang.Object
    implements com.prowidesoftware.swift.model.MessageMetadataStrategy
    Default implementation of MT messages metadata extraction.

    This implementation just sets the main reference. A comprehensive implementation must be provided per message types to extract content as needed. For example in a pacs.008 the main amount should be extracted from the //GrpHdr/TtlIntrBkSttlmAmt in a multiple payment, or from //CdtTrfTxInf[*]/IntrBkSttlmAmt in a single payment.

    Since:
    9.1.6
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<com.prowidesoftware.swift.model.Money> amount​(com.prowidesoftware.swift.model.AbstractMessage message)  
      java.util.Optional<java.lang.String> reference​(com.prowidesoftware.swift.model.AbstractMessage message)  
      java.util.Optional<java.util.Calendar> tradeDate​(com.prowidesoftware.swift.model.AbstractMessage message)  
      java.util.Optional<java.util.Calendar> valueDate​(com.prowidesoftware.swift.model.AbstractMessage message)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMxMetadataStrategy

        public DefaultMxMetadataStrategy()
    • Method Detail

      • reference

        public java.util.Optional<java.lang.String> reference​(com.prowidesoftware.swift.model.AbstractMessage message)
        Specified by:
        reference in interface com.prowidesoftware.swift.model.MessageMetadataStrategy
      • amount

        public java.util.Optional<com.prowidesoftware.swift.model.Money> amount​(com.prowidesoftware.swift.model.AbstractMessage message)
        Specified by:
        amount in interface com.prowidesoftware.swift.model.MessageMetadataStrategy
      • valueDate

        public java.util.Optional<java.util.Calendar> valueDate​(com.prowidesoftware.swift.model.AbstractMessage message)
        Specified by:
        valueDate in interface com.prowidesoftware.swift.model.MessageMetadataStrategy
      • tradeDate

        public java.util.Optional<java.util.Calendar> tradeDate​(com.prowidesoftware.swift.model.AbstractMessage message)
        Specified by:
        tradeDate in interface com.prowidesoftware.swift.model.MessageMetadataStrategy