public class ConversionService extends java.lang.Object implements IConversionService
This class may be used as a serializer.
All methods in this class are threadsafe.
Constructor and Description |
---|
ConversionService() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFIN(java.lang.String xml)
Given a String containing a message in its Wife XML internal representation, returns a String
containing its SWIFT message representation.
|
java.lang.String |
getFIN(SwiftMessage msg)
Given a SwiftMessage object returns a String containing its SWIFT message representation.
|
SwiftMessage |
getMessageFromFIN(java.lang.String fin)
Given a Swift message String returns a SwiftMessage object.
|
SwiftMessage |
getMessageFromXML(java.lang.String xml)
Given a String containing a message in its WIFE internal XML representation, returns a SwiftMessage object.
|
java.lang.String |
getXml(java.lang.String fin)
Given a Swift message String returns a String containing WIFE internal XML representation of the message.
|
java.lang.String |
getXml(java.lang.String fin,
boolean useField)
Given a Swift message String returns a String containing WIFE internal XML representation of the message, use field (true) or tag (false) depending on the value of useField
|
java.lang.String |
getXml(SwiftMessage msg)
Given a SwiftMessage objects returns a String containing WIFE internal XML representation of the message.
|
java.lang.String |
getXml(SwiftMessage msg,
boolean useField)
Given a SwiftMessage objects returns a String containing WIFE internal XML representation of the message.
|
public java.lang.String getFIN(SwiftMessage msg)
getFIN
in interface IConversionService
msg
- an object containing the message to convertIConversionService.getFIN(com.prowidesoftware.swift.model.SwiftMessage)
public java.lang.String getFIN(java.lang.String xml)
getFIN
in interface IConversionService
xml
- the string with the internal XML message to readIConversionService.getFIN(java.lang.String)
public java.lang.String getXml(SwiftMessage msg)
getXml
in interface IConversionService
msg
- an object containing the message to convertIConversionService.getXml(com.prowidesoftware.swift.model.SwiftMessage)
public java.lang.String getXml(SwiftMessage msg, boolean useField)
public java.lang.String getXml(java.lang.String fin)
getXml
in interface IConversionService
fin
- a string containing the FIN message to convertIConversionService.getXml(java.lang.String)
public java.lang.String getXml(java.lang.String fin, boolean useField)
getXml(String)
public SwiftMessage getMessageFromFIN(java.lang.String fin)
getMessageFromFIN
in interface IConversionService
fin
- a string containing the FIN message to convertIConversionService.getMessageFromFIN(java.lang.String)
public SwiftMessage getMessageFromXML(java.lang.String xml)
getMessageFromXML
in interface IConversionService
xml
- the string with the internal XML message to readIConversionService.getMessageFromXML(java.lang.String)