Class AbstractMessage

  • Direct Known Subclasses:
    AbstractMT

    public abstract class AbstractMessage
    extends java.lang.Object
    Base class for hierarchy of specific MT and MX classes.
    • Method Detail

      • message

        public abstract java.lang.String message()
        Serialize this message into its raw SWIFT format: FIN for MT and XML for MX
        Returns:
        the message content
        Since:
        8.0.2
      • isMT

        public boolean isMT()
        Returns:
        true if the message is an MT, false otherwise
      • isMX

        public boolean isMX()
        Returns:
        true if the message is an MX, false otherwise
      • getMessageStandardType

        public MessageStandardType getMessageStandardType()
        Returns:
        the standard enumeration value corresponding to this message