Class TemplateJClassPrinter
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description static java.lang.String
TEMPLATE_PACKAGE
The package that contains the velocity templates.
-
Constructor Summary
Constructors Constructor Description TemplateJClassPrinter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
printClass(JClass jClass, java.lang.String outputDir, java.lang.String lineSeparator, java.lang.String header)
Prints the givenJClass
instance to the given output directory.
-
-
-
Field Detail
-
TEMPLATE_PACKAGE
public static final java.lang.String TEMPLATE_PACKAGE
The package that contains the velocity templates.- See Also:
- Constant Field Values
-
-
Method Detail
-
printClass
public void printClass(JClass jClass, java.lang.String outputDir, java.lang.String lineSeparator, java.lang.String header)
Prints the givenJClass
instance to the given output directory.- Specified by:
printClass
in interfaceJClassPrinter
- 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)
-
-