Package com.prowidesoftware.swift.model
Class AbstractMessage
- java.lang.Object
-
- com.prowidesoftware.swift.model.AbstractMessage
-
- Direct Known Subclasses:
AbstractMT
public abstract class AbstractMessage extends java.lang.ObjectBase class for hierarchy of specific MT and MX classes.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMessage()Protected constructor necessary for jaxb in MX.protectedAbstractMessage(MessageStandardType type)Constructor for anMessageStandardType.MTorMessageStandardType.MXmessage.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MessageStandardTypegetMessageStandardType()booleanisMT()booleanisMX()abstract java.lang.Stringmessage()Serialize this message into its raw SWIFT format: FIN for MT and XML for MX
-
-
-
Constructor Detail
-
AbstractMessage
protected AbstractMessage()
Protected constructor necessary for jaxb in MX.
-
AbstractMessage
protected AbstractMessage(MessageStandardType type)
Constructor for anMessageStandardType.MTorMessageStandardType.MXmessage.- Parameters:
type- message type
-
-
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
-
-