org.exolab.castor.builder.printing
Class TemplateJClassPrinter
java.lang.Object
org.exolab.castor.builder.printing.TemplateJClassPrinter
- All Implemented Interfaces:
- JClassPrinter
public class TemplateJClassPrinter
- extends Object
- implements JClassPrinter
Prints the given JClass to the filesystem using velocity templates.
- Since:
- 1.2
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEMPLATE_PACKAGE
public static final String TEMPLATE_PACKAGE
- The package that contains the velocity templates.
- See Also:
- Constant Field Values
TemplateJClassPrinter
public TemplateJClassPrinter()
printClass
public void printClass(JClass jClass,
String outputDir,
String lineSeparator,
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)
Copyright © 2012. All Rights Reserved.