farnulfo / xsd2thrift

This tool allows for converting XML Schema files (.xsd) to Thrift (.thrift) and Protocol Buffers (.proto).

Home Page:http://tranchis.github.com/xsd2thrift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XSD2THRIFT Build Status

This tool allows for converting XML Schema files (.xsd) to Thrift (.thrift) and Protocol Buffers (.proto).

Binary download

Version 1.0

Importing from Maven

<repositories>
  <repository>
    <id>xsd2thrift</id>
    <url>http://dl.bintray.com/content/tranchis/xsd2thrift</url>
  </repository>
</repositories>

<dependency>
  <groupid>com.github.tranchis</groupid>
  <artifactid>xsd2thrift</artifactid>
  <version>1.0</version>
  <type>jar</type>
</dependency>

Building

To build xsd2thrift, you need Maven (http://maven.apache.org/) installed. To build xsd2thrift, run mvn install.

xsd2thrift has been tested on Java SE 6.

Usage

java xsd2thrift-1.0.jar [--thrift] [--protobuf] [--output=FILENAME] [--package=NAME]
                        [--nestEnums=true|false] [--splitBySchema=true|false] filename.xsd
  --thrift                   : convert to Thrift
  --protobuf                 : convert to Protocol Buffers
  --filename=FILENAME        : store the result in FILENAME instead of standard output
  --package=NAME             : set namespace/package of the output file
  --nestEnums=true|false     : nest enum declaration within messages that reference them, only supported by protobuf, defaults to true
  --splitBySchema=true|false : split output into namespace-specific files, defaults to false

License

The code contributed for this package is licensed under LGPL v3 (see LICENSE).

XSOM is covered by GPL v2 with classpath exception (see LICENSE-xsom.1).

XSOM internally uses an URI class, which is copyrighted by Thai Open Source Center (see LICENSE-xsom.2).

Contact

Any feedback will be greatly appreciated, at the GitHub project page (http://github.com/tranchis/xsd2thrift) or at tranchis_-AT-_gmail.com.

Contributors (@github.com)

  • tranchis
  • p14n
  • Fred-dy-
  • pfisterer
  • wesyoung
  • dabble
  • ae589

About

This tool allows for converting XML Schema files (.xsd) to Thrift (.thrift) and Protocol Buffers (.proto).

http://tranchis.github.com/xsd2thrift

License:GNU Lesser General Public License v3.0


Languages

Language:Java 36.6%Language:Protocol Buffer 27.4%Language:Thrift 24.1%Language:Groff 11.8%