RichFaces CDK Generator 4.2.0.CR1

org.richfaces.cdk.generate.freemarker
Class FreeMarkerWriter<C>

java.lang.Object
  extended by org.richfaces.cdk.generate.freemarker.FreeMarkerWriter<C>
All Implemented Interfaces:
CdkWriter
Direct Known Subclasses:
BehaviorClassGenerator, ComponentClassGenerator, ConverterClassGenerator, EventSourceInterfaceGenerator, ListenerTagHandlerGenerator, ValidatorClassGenerator

public abstract class FreeMarkerWriter<C>
extends Object
implements CdkWriter

Base class for all output file buildes that use FreeMarker as template engine.

Author:
asmirnov@exadel.com

Constructor Summary
FreeMarkerWriter(FreeMarkerRenderer configuration, FileManager output)
           
 
Method Summary
 void generate(ComponentLibrary library, C c)
           
protected  String getJavaFileName(ClassName targetClass)
           
protected  Writer getOutput(ComponentLibrary library, C c)
           
protected  String getOutputFileName(C c)
           
protected abstract  String getTemplateName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.richfaces.cdk.CdkWriter
render
 

Constructor Detail

FreeMarkerWriter

public FreeMarkerWriter(FreeMarkerRenderer configuration,
                        FileManager output)
Method Detail

generate

public void generate(ComponentLibrary library,
                     C c)
              throws CdkException
Throws:
CdkException

getOutput

protected Writer getOutput(ComponentLibrary library,
                           C c)
                    throws CdkException
Throws:
CdkException

getOutputFileName

protected String getOutputFileName(C c)
                            throws CdkException
Throws:
CdkException

getJavaFileName

protected String getJavaFileName(ClassName targetClass)

getTemplateName

protected abstract String getTemplateName()

RichFaces CDK Generator 4.2.0.CR1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.