com.prowidesoftware.swift.model
Class SwiftMessageUtils

java.lang.Object
  extended by com.prowidesoftware.swift.model.SwiftMessageUtils

public class SwiftMessageUtils
extends java.lang.Object

Utility methods that provide higher level access to SwiftMessage

Since:
6.0
Author:
www.prowidesoftware.com

Constructor Summary
SwiftMessageUtils()
           
SwiftMessageUtils(SwiftMessage m)
           
 
Method Summary
static java.lang.String calculateChecksum(SwiftMessage model)
           
 java.util.List<java.lang.String> currencyStrings()
           
static java.util.List<java.lang.String> currencyStrings(SwiftMessage m)
          Mirrors logic on CurrencyContainer.currencyStrings() including all fields
 java.util.Calendar valueDate()
           
static java.util.Calendar valueDate(SwiftMessage m)
          Get the value date for for the current message or null if non found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwiftMessageUtils

public SwiftMessageUtils()

SwiftMessageUtils

public SwiftMessageUtils(SwiftMessage m)
Method Detail

currencyStrings

public java.util.List<java.lang.String> currencyStrings()

currencyStrings

public static java.util.List<java.lang.String> currencyStrings(SwiftMessage m)
Mirrors logic on CurrencyContainer.currencyStrings() including all fields

Parameters:
m -
Returns:
an empty list if none found

valueDate

public java.util.Calendar valueDate()

valueDate

public static java.util.Calendar valueDate(SwiftMessage m)
Get the value date for for the current message or null if non found. If more than one the first found is returned.

Parameters:
m -
Returns:

calculateChecksum

public static java.lang.String calculateChecksum(SwiftMessage model)