Template::Plugin::Java

Template::Plugin::Java is a Perl module that can generate Java Classes from XML description files and templates.
Download

Template::Plugin::Java Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Rafael Kitover
  • Publisher web site:
  • http://search.cpan.org/~rkitover/

Template::Plugin::Java Tags


Template::Plugin::Java Description

Template::Plugin::Java is a Perl module that can generate Java Classes from XML description files and templates. Template::Plugin::Java is a Perl module that can generate Java Classes from XML description files and templates.SYNOPSISFrom an xml file such as: < aBean > < java: option1="value1" > < option2 >value2< /option2 > < /java: > < foo >10< /foo > < bar >String< /bar > < container > < baz >20< /baz > < /container > < /aBean >Through the program "tjava":tjava Via a template, such as: package $package; public class $class { $type $name = $initializer; //... etc }To generated Java source code in the appropriate directory as determined by the package of the .xml file's directory, specified package option if any, and CLASSPATH.OPTIONSAny options may be given besides those listed, these are passed directly to the Templates being processed in the stash (the variable table at time of processing). They can be given in the < java: > ... < /java: > section of an XML file (in which case, don't use the -- dashes) as attributes or elements, or on the command line.--templateName of the template to process. No extension is assumed by default unlike in the previous version.--packageDestination package to put the generated classes, otherwise will be determined from how the current directory relates to the CLASSPATH.--classClass name to use, otherwise will infer from the root tag of the XML file.--templatePathColon separated path where the templates can be found, overrides the environment variable TEMPLATEPATH. This doesn't work right now, so use the TEMPLATEPATH environment variable.--genContainersIf set to 0, classes for subcontainers will not be generated. This is generally not useful.--containerTemplateBy default set to Container, this is the default template, as well as the template used for sub-containers.--containerNamePrefixBy default, if generating class Foo that needs to have a sub container wrapped in tag < bar >, it's name will be FooBar. This is safe and won't cause collisions with different classes having sub containers of the same name (until some sort of dependency checking code is introduced). To turn this off, set it to the empty string "".--interfaceInterface to add to list of implemented interfaces, can be supplied multiple times. Make sure you append any necessary code to implement any of these interfaces.--appendText to insert in the generated class body.--appendFileWill insert text read from the file specified into the generated class body. This option and the --append option are mutually exclusive.--fileThe XML file(s) to parse. This is useful for when the Plugin is instantiated from a custom script, not via tjava or inside a template.Any other option will be placed into the stash for the templates to use, making tjava very useful with your custom templates.Anything that's not an option will be assumed to be a file. Requirements: · Perl


Template::Plugin::Java Related Software