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

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

Serving Software Downloads in 956 Categories, Downloaded 50.215.426 Times

Template::Plugin::Java 0.4

  Date Added: February 02, 2010  |  Visits: 968

Template::Plugin::Java

Report Broken Link
Printer Friendly Version


Product Homepage
Download (97 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
USER REVIEWS
More Reviews or Write Review


TEMPLATE::PLUGIN::JAVA RELATED
Libraries  -  Java::JCR::Nodetype 0.08
Java::JCR::Nodetype is a Perl module that can load the JCR node type class wrappers. SYNOPSIS use Java::JCR::Nodetype; This loads the Perl classes mapped to the javax.jcr.nodetype package. You might notice the odd letter case of this...
48.13 KB  
Libraries  -  Java::JVM::Classfile 0.19
Java::JVM::Classfile is a Perl module to parse JVM Classfiles. SYNOPSIS use Java::JVM::Classfile; my $c = Java::JVM::Classfile->new("HelloWorld.class"); print "Class: " . $c->class . "n"; print "Methods: " . scalar(@{$c->methods}) . "n";...
19.46 KB  
Libraries  -  Java::SJ::Config 0.01
Java::SJ::Config is a Perl module that represents SJ Configuration File. It uses XML::XPath to parse configuration files and generates objects to represent the directives. Unless youre working on the module what you really want to know is what...
18.43 KB  
Libraries  -  Java::JCR::Lock 0.08
Java::JCR::Lock is a Perl module that can load JCR lock extension wrappers. SYNOPSIS use Java::JCR::Lock This loads the Perl classes mapped to the Java package named javax.jcr.lock. Installation: Installation can be a bit tricky because...
48.13 KB  
Libraries  -  Java::Build::Tasks 0.05
Java::Build::Tasks is a Perl module that collects common Java build tasks in one place: jar, jarsigner, etc. SYNOPSIS use Java::Build::Tasks; set_logger($log_object); copy_file(source, dest); copy_file(list, of, sources, dest);...
30.72 KB  
Libraries  -  Java::Build::JVM 0.05
Java::Build::JVM is a Perl module that starts one JVM for compiling. SYNOPSIS use Java::Build::JVM; my $compiler = Java::Build::JVM->getCompiler(); $compiler->destination("some/path");...
30.72 KB  
Libraries  -  XML::TiePYX 0.05
XML::TiePYX is a Perl module to read or write XML data in PYX format via tied filehandle SYNOPSIS use XML::TiePYX; tie *XML,XML::TiePYX,file.xml open IN,file.xml or die $!; tie *XML,XML::TiePYX,*IN,Condense=>0; my $text=< tag...
7.17 KB  
Libraries  -  Parse::Java 0.01
Parse::Java is a Perl module that acts like a parser for Java code. SYNOPSIS use Parse::Java; my $ast = Parse::Java->parse_file(MyClass.java); Parse::Java parses Java code into an Abstract Syntax Tree which can be used for many things like...
18.43 KB  
Libraries  -  Net::IPMessenger::MessageCommand 0.06
Net::IPMessenger::MessageCommand is a Perl module for message command definition and accessor class. SYNOPSIS use Net::IPMessenger::MessageCommand; my $command = Net::IPMessenger::MessageCommand->new(SENDMSG)->set_secret; This defines IP...
12.29 KB  
Libraries  -  Java::Import 0.03
Java::Import is Perl module to use Java classes in Perl. SYNOPSIS use Java::Import qw( some.package.SomeClass ); my $instance = new some.package.SomeClass(); $instance->someMethod(); my $ret_val =...
28.67 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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