Prowide Core
Overview
Prowide Core implements the foundation classes to handle SWIFT MT (FIN) messages in Java.
The library provides a comprehensive model for all MT message categories. The API features include parsing messages from FIN format to Java, serializing Java model objects into the FIN format and the conversion between FIN messages and XML and JSON formats.
The library implements the general ISO 20022 standard. Complementary packages with restricted ISO versions such as CBPR+, SEPA, and SIC are provided in the complementary, proprietary (not open source) library Prowide Integrator.
Finally, this library is based on some components from the Prowide Core library. So in order to use this, you will also need the dependency for Prowide Core.
Quick API reference
The tables below synthesizes, by pseudocode, the entry point for common MT read/write use case scenarios.
The use case is usually determined by whether you are creating a new SWIFT message or reading an existing SWIFT message. And in the case of reading, different API exists depending on whether you are processing messages generically, or if you are reading specific known type.
Use Case | API |
---|---|
Parse a known MT message into a specific message model | new MT103(String/InputStream fin) MT103.parse(String/File/InputStream fin) |
Read specific MT message content | MT103 + getters |
Parse unknown MT message into generic swift model | AbstractMT.parse(String/InputStream fin) |
Specialize generic MT message | new MT103(MtSwiftMessage) MT103.parse(MtSwiftMessage) (MT103) AbstractMT |
Load and persist an unknown MT message | new MtSwiftMessage(String/InputStream fin) MtSwiftMessage.parse(String/InputStream fin) |
Build a new MT message | new MT103() + append(Field) |
Write a new MT message to swift string | MT103 + message() -> fin |
Write a new MT message to swift file or stream | MT103 + write(OutputStream fin) |
Javadoc
Online javadoc