public class FixmlConverter extends Object
| Constructor and Description |
|---|
FixmlConverter(String schemaPath,
Version fixVersion)
Initializes converter instance.
|
FixmlConverter(Version fixVersion)
Initializes converter instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomMessage(String msgType,
String messageName)
Adds custom message.
|
void |
addCustomRepeatingGroup(int instanceNumberTag,
String groupBlockName)
Adds custom repeating group.
|
String |
fix2fixml(Message fixMsg)
Converts FIX message to FIXML.
|
String |
fix2fixml(Message fixMsg,
boolean formatting)
Converts FIX message to FIXML.
|
Message |
fixml2fix(String fixmlMsg)
Converts FIXML to FIX message without failing on warnings.
|
Message |
fixml2fix(String fixmlMsg,
boolean failOnWarning)
Converts FIXML to FIX message.
|
public FixmlConverter(Version fixVersion) throws Exception
fixVersion - fix version used for vise-versa conversion based on internal schemasException - if an error occurred during creation of FIXML converterpublic FixmlConverter(String schemaPath, Version fixVersion) throws Exception
schemaPath - custom schema used for visa-versa conversionfixVersion - fix version used for visa-versa conversionException - if an error occurred during creation of FIXML converterpublic String fix2fixml(Message fixMsg) throws FixmlConverterException
fixMsg - FIX messageFixmlConverterException - if an error occurred during conversionpublic String fix2fixml(Message fixMsg, boolean formatting) throws FixmlConverterException
fixMsg - FIX messageformatting - whether to format output or notFixmlConverterException - if an error occurred during conversionpublic Message fixml2fix(String fixmlMsg) throws FixmlConverterException
fixmlMsg - FIXML messageFixmlConverterException - if an error occurred during conversionpublic Message fixml2fix(String fixmlMsg, boolean failOnWarning) throws FixmlConverterException
fixmlMsg - FIXML messagefailOnWarning - whether to fail on warning or notFixmlConverterException - if an error occurred during conversionpublic void addCustomMessage(String msgType, String messageName)
msgType - message typemessageName - message namepublic void addCustomRepeatingGroup(int instanceNumberTag,
String groupBlockName)
instanceNumberTag - instance number taggroupBlockName - repeating group nameCopyright © 2005–2025 Onix Solutions. All rights reserved.