Package 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:- FIN: SWIFT message format as used by SWIFTNet (ISO 15022 compliance).
- XML: WIFE's XML representation of SWIFT messages.
- SwiftMessage: WIFE's java object model of SWIFT messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getFIN(SwiftMessage msg)
Gets a String containing the FIN message from the msg object argument, using FIN writer.java.lang.String
getFIN(java.lang.String xml)
Gets a String containing the FIN message from the XML representation passed as a String argument.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(SwiftMessage msg)
Gets a String containing the XML internal representation of the message from the msg object 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.
-
-
-
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
-
-