public class SwiftMessageUtils extends Object
SwiftMessage
Constructor and Description |
---|
SwiftMessageUtils() |
SwiftMessageUtils(SwiftMessage m) |
Modifier and Type | Method and Description |
---|---|
static String |
calculateChecksum(SwiftMessage model)
Proprietary checksum for message integrity verification.
|
List<String> |
currencyStrings() |
static List<String> |
currencyStrings(SwiftMessage m)
Mirrors logic on
CurrencyContainer.currencyStrings() including all fields |
static Map<String,SwiftTagListBlock> |
splitByField15(SwiftMessage msg)
Split the given message by the field 15, returning the letter option in the field 15 as the key in the map.
|
static List<SwiftTagListBlock> |
splitByField15(SwiftMessage msg,
String letterOption)
Helper method to retrieve all sequences starting with 15X where X is the letterOption parameter
|
static Map<String,SwiftTagListBlock> |
splitByField15(SwiftTagListBlock block)
Split the given block content by the field 15, returning the letter option in the field 15 as the key in the map
|
static List<SwiftTagListBlock> |
splitByField15(SwiftTagListBlock block,
String letterOption)
Helper method to retrieve all sequences starting with 15X where X is the letterOption parameter.
|
Calendar |
valueDate() |
static Calendar |
valueDate(SwiftMessage m)
Gets the value date of a message.
The value date is meaningful and defined by the standard only for a subset of message types. |
public SwiftMessageUtils()
public SwiftMessageUtils(SwiftMessage m)
public static List<String> currencyStrings(SwiftMessage m)
CurrencyContainer.currencyStrings()
including all fieldsm
- public Calendar valueDate()
valueDate(SwiftMessage)
public static Calendar valueDate(SwiftMessage m)
m
- the message where the value date is to be foundnull
if the message does not defines a value date, or if the defined value date field is not present in the messagepublic static String calculateChecksum(SwiftMessage model)
model
- public static Map<String,SwiftTagListBlock> splitByField15(SwiftMessage msg)
splitByField15(SwiftTagListBlock)
public static Map<String,SwiftTagListBlock> splitByField15(SwiftTagListBlock block)
block
- the content to splitpublic static List<SwiftTagListBlock> splitByField15(SwiftMessage msg, String letterOption)
splitByField15(SwiftTagListBlock, String)
public static List<SwiftTagListBlock> splitByField15(SwiftTagListBlock block, String letterOption)
block
- the content to split into subsequencesletterOption
- a letter option for the field boundary