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.Object
Base class for hierarchy of specific MT and MX classes.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMessage()
Protected constructor necessary for jaxb in MX.protected
AbstractMessage(MessageStandardType type)
Constructor for anMessageStandardType.MT
orMessageStandardType.MX
message.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MessageStandardType
getMessageStandardType()
boolean
isMT()
boolean
isMX()
abstract java.lang.String
message()
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.MT
orMessageStandardType.MX
message.- 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
-
-