com.prowidesoftware.swift.io
Interface IConversionService

All Known Implementing Classes:
ConversionService

public interface IConversionService

This interface provides a general conversion service between three different formats:

Version:
$Id: IConversionService.java,v 1.1.1.1 2013/04/10 17:04:50 mgriffa Exp $
Author:
www.prowidesoftware.com

Method Summary
 java.lang.String getFIN(java.lang.String xml)
          Gets a String containing the FIN message from the XML representation passed as a String argument.
 java.lang.String getFIN(SwiftMessage msg)
          Gets a String containing the FIN message from the msg object argument, using FIN writer.
 SwiftMessage getMessageFromFIN(java.lang.String fin)
          Gets a message object containing the message data from the FIN string message passed as argument.
 SwiftMessage getMessageFromXML(java.lang.String xml)
          Gets a message object containing the message data from the XML representation passed as a String argument.
 java.lang.String getXml(java.lang.String fin)
          Gets a String containing the XML internal representation of the message from the FIN string message passed as argument.
 java.lang.String getXml(SwiftMessage msg)
          Gets a String containing the XML internal representation of the message from the msg object argument.
 

Method Detail

getFIN

java.lang.String getFIN(SwiftMessage msg)
Gets a String containing the FIN message from the msg object argument, using FIN writer.

Parameters:
msg - an object containing the message to convert
Returns:
a string with the FIN format representation of the message
Throws:
java.lang.IllegalArgumentException - if msg is null

getFIN

java.lang.String getFIN(java.lang.String xml)
Gets a String containing the FIN message from the XML representation passed as a String argument.

Parameters:
xml - the string with the internal XML message to read
Returns:
a string with the FIN format representation of the message
Throws:
java.lang.IllegalArgumentException - if XML is null

getXml

java.lang.String getXml(SwiftMessage msg)
Gets a String containing the XML internal representation of the message from the msg object argument.

Parameters:
msg - an object containing the message to convert
Returns:
a string with the internal XML representation of the message
Throws:
java.lang.IllegalArgumentException - if msg is null

getXml

java.lang.String getXml(java.lang.String fin)
Gets a String containing the XML internal representation of the message from the FIN string message passed as argument.

Parameters:
fin - a string containing the FIN message to convert
Returns:
a string with the internal XML representation of the message
Throws:
java.lang.IllegalArgumentException - if fin is null

getMessageFromFIN

SwiftMessage getMessageFromFIN(java.lang.String fin)
Gets a message object containing the message data from the FIN string message passed as argument.

Parameters:
fin - a string containing the FIN message to convert
Returns:
a swift object containing the message data
Throws:
java.lang.IllegalArgumentException - if fin is null

getMessageFromXML

SwiftMessage getMessageFromXML(java.lang.String xml)
Gets a message object containing the message data from the XML representation passed as a String argument.

Parameters:
xml - the string with the internal XML message to read
Returns:
a swift object containing the message data
Throws:
java.lang.IllegalArgumentException - if XML is null