项目作者: WojciechZankowski

项目描述 :
FIX Dictionaries library
高级语言: Java
项目地址: git://github.com/WojciechZankowski/fix-dictionaries.git
创建时间: 2017-04-12T19:26:06Z
项目社区:https://github.com/WojciechZankowski/fix-dictionaries

开源协议:

下载


FIX Dictionaries - QuickFIX

Table of Contents

Summary

Code Generation

QuickFix/J

To generate code based on XML FIX Dictionary I recommend using maven plugin released by QuickFix/J. I did not find any useful documentation on how to use it, so quick tutorial down below.

In each POM file there is already configurated quickfixj-codegenerator plugin. To make it work just run it trough command line.

  1. <build>
  2. <plugins>
  3. <plugin>
  4. <groupId>org.quickfixj</groupId>
  5. <artifactId>quickfixj-codegenerator</artifactId>
  6. <version>1.6.3</version>
  7. <configuration>
  8. <dictFile>${basedir}/src/main/resources/IB_FIX.xml</dictFile>
  9. <outputDirectory>${basedir}/src/main/java/</outputDirectory>
  10. <packaging>quickfix.ib</packaging>
  11. <fieldPackage>quickfix.ib.field</fieldPackage>
  12. </configuration>
  13. </plugin>
  14. </plugins>
  15. </build>

Available configuration parameters:

  • dictFile - The dictionary file to use for mapping messages to java.
  • schemaDirectory - The source directory containing *.xsd files.
  • outputDirectory - The directory to output the generated sources to.
  • decimal - Enable BigDecimal representation.
  • orderedFields - Enable orderedFields.
  • packaging - The package for the generated source.
  • fieldPackage - The base field class to use.

For more details about implementation, check out org.quickfixj.codegenerator.GenerateMojo class.

License

Code and documentation released under the Apache License, Version 2.0