Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.127.057 Times

Template::Plugin::Java 0.4

  Date Added: February 02, 2010  |  Visits: 662

Template::Plugin::Java

Report Broken Link
Printer Friendly Version


Product Homepage
Download (73 downloads)

Template::Plugin::Java is a Perl module that can generate Java Classes from XML description files and templates. SYNOPSIS From 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 [options] [file.xml ...] Via a template, such as: [% USE Java %] package $package; public class $class { [% FOREACH Java.variables %] $type $name = $initializer; [% END %] //... etc } To generated Java source code in the appropriate directory as determined by the package of the .xml files directory, specified package option if any, and CLASSPATH. OPTIONS Any 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, dont use the -- dashes) as attributes or elements, or on the command line. --template Name of the template to process. No extension is assumed by default unlike in the previous version. --package Destination package to put the generated classes, otherwise will be determined from how the current directory relates to the CLASSPATH. --class Class name to use, otherwise will infer from the root tag of the XML file. --templatePath Colon separated path where the templates can be found, overrides the environment variable TEMPLATEPATH. This doesnt work right now, so use the TEMPLATEPATH environment variable. --genContainers If set to 0, classes for subcontainers will not be generated. This is generally not useful. --containerTemplate By default set to Container, this is the default template, as well as the template used for sub-containers. --containerNamePrefix By default, if generating class Foo that needs to have a sub container wrapped in tag < bar >, its name will be FooBar. This is safe and wont 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 "". --interface Interface 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. --append Text to insert in the generated class body. --appendFile Will insert text read from the file specified into the generated class body. This option and the --append option are mutually exclusive. --file[s] The 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 thats not an option will be assumed to be a file..

Requirements: No special requirements
Platforms: Linux
Keyword: Class Classes File Java Java Classes Libraries Name Option Perl Module Programming Templatepluginjava Will Be Xml Description Xml File
Users rating: 0/10

License: Freeware Size: 18.43 KB
TEMPLATE::PLUGIN::JAVA RELATED
Libraries  -  Mobile::Wurfl 1.06
Mobile::Wurfl is a Perl module interface to WURFL (the Wireless Universal Resource File. SYNOPSIS my $wurfl = Mobile::Wurfl->new( wurfl_home => "/path/to/wurfl/home", db_descriptor => "DBI:mysql:database=wurfl:host=localhost", db_username...
102.4 KB  
Libraries  -  Bio::NEXUS::TreesBlock 0.67
Bio::NEXUS::TreesBlock is a Perl module that represents TREES block of a NEXUS file. SYNOPSIS if ( $type =~ /trees/i ) { $block_object = new Bio::NEXUS::TreesBlock( $block_type, $block, $verbose ); } If a NEXUS block is a Trees Block, this...
153.6 KB  
Libraries  -  Test::Manifest 1.17
Test::Manifest is a Perl module created to interact with a t/test_manifest file. SYNOPSIS # in Makefile.PL eval "use Test::Manifest"; # in the file t/test_manifest, list the tests you want # to run Test::Harness assumes that you want to...
7.17 KB  
Libraries  -  Language::Zcode::Parser 0.8
Language::Zcode::Parser is a Perl module that reads and parses a Z-code file into a big Perl hash. SYNOPSIS # Create a Pure Perl Parser my $pParser = new Language::Zcode::Parser "Perl"; # If they didnt put ".z5" at the end, find it anyway...
296.96 KB  
Libraries  -  Image::MetaData::JPEG::Structures 0.15
Image::MetaData::JPEG::Structures is a Perl module that describes the structure of a JPEG file; it is an appendix to the main manual page of the Image::MetaData::JPEG module, which the reader should refer to for further details and the general...
286.72 KB  
Libraries  -  Bio::NEXUS::TaxaBlock 0.67
Bio::NEXUS::TaxaBlock is a Perl module that represents TAXA block of a NEXUS file. SYNOPSIS if ( $type =~ /taxa/i ) { $block_object = new Bio::NEXUS::TaxaBlock($type, $block, $verbose); } If a NEXUS block is a taxa block, this module...
153.6 KB  
Libraries  -  Tie::FormA 0.02
Tie::FormA is a Perl module that can access a machine readable database file that minics a hardcopy form. SYNOPSIS require Tie::FormA; ##### # Using support methods and file handle with # the file subroutines such as open(), readline() #...
100.35 KB  
Libraries  -  Bio::NEXUS::SetsBlock 0.67
Bio::NEXUS::SetsBlock is a Perl module that represents SETS block of a NEXUS file. SYNOPSIS $block_object = new Bio::NEXUS::SetsBlock($block_type, $block, $verbose); Parses Sets block of NEXUS file and stores Sets data. METHODS new...
153.6 KB  
Libraries  -  SVG::Metadata 0.28
SVG::Metadata is a Perl module to capture metadata info about an SVG file. SYNOPSIS use SVG::Metadata; my $svgmeta = new SVG::Metadata; $svgmeta->parse($filename) or die "Could not parse $filename: " . $svgmeta->errormsg();...
25.6 KB  
Libraries  -  TeX::DVI 0.110
TeX::DVI is a Perl module to write out TeXs DVI (DeVice Independent) file. SYNOPSIS use TeX::DVI; use Font::TFM; my $dvi = new TeX::DVI "texput.dvi"; my $font = new_at Font::TFM "cmr10", 12 or die "Error loading cmr10 at 12 pt:...
9.22 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB