Genny

Simple library for generating Java classes from text files
Download

Genny Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Apache
  • Publisher Name:
  • Martin Dobmeier
  • Publisher web site:
  • https://github.com/martido
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 44 KB

Genny Tags


Genny Description

Genny is a small, open source, simple library for generating Java classes from text files. Genny provides several ways to customize the generated class:· A FieldProvider provides Genny with the data for each field of the generated class. · Genny comes with a ready-to-use PropertyFileProvider to work with plain old property files, but for example you could also write your own FieldProvider that would read data from a custom XML file.· Fields may be transformed using a FieldMapper. In the example above all dots have been replaced with underscores to transform field names to valid Java identifiers.· Fields may be filtered using a FieldFilter, e.g. you could exlude certain fields.· Genny relies on an external template engine to generate source files. Currently there are SourceFileGenerators based on StringTemplate and Apache Velocity. · The default templates generate code as seen above, but you can also provide your own template.


Genny Related Software