org.exolab.castor.builder.printing
Class TemplateJClassPrinter

java.lang.Object
  extended by org.exolab.castor.builder.printing.TemplateJClassPrinter
All Implemented Interfaces:
JClassPrinter

public class TemplateJClassPrinter
extends java.lang.Object
implements JClassPrinter

Prints the given JClass to the filesystem using velocity templates.

Since:
1.2

Field Summary
static java.lang.String TEMPLATE_PACKAGE
          The package that contains the velocity templates.
 
Constructor Summary
TemplateJClassPrinter()
           
 
Method Summary
 void printClass(JClass jClass, java.lang.String outputDir, java.lang.String lineSeparator, java.lang.String header)
          Prints the given JClass instance to the given output directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPLATE_PACKAGE

public static final java.lang.String TEMPLATE_PACKAGE
The package that contains the velocity templates.

See Also:
Constant Field Values
Constructor Detail

TemplateJClassPrinter

public TemplateJClassPrinter()
Method Detail

printClass

public void printClass(JClass jClass,
                       java.lang.String outputDir,
                       java.lang.String lineSeparator,
                       java.lang.String header)
Prints the given JClass instance to the given output directory.

Specified by:
printClass in interface JClassPrinter
Parameters:
jClass - The JClass to print.
outputDir - The target directory.
lineSeparator - The line separator to use.
header - The standard header to print.
See Also:
JClassPrinter.printClass( org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com