org.cruxframework.crux.tools.compile.preprocessor
Class AbstractDeclarativeUIPreProcessor

java.lang.Object
  extended by org.cruxframework.crux.tools.compile.preprocessor.AbstractDeclarativeUIPreProcessor
All Implemented Interfaces:
CruxPreProcessor
Direct Known Subclasses:
DeclarativeUIPreProcessor

public abstract class AbstractDeclarativeUIPreProcessor
extends Object
implements CruxPreProcessor

Author:
Thiago da Rosa de Bustamante

Field Summary
protected  boolean indent
           
protected  boolean keepGeneratedFiles
           
protected  String outputCharset
           
protected  File outputDir
           
protected  String pageFileExtension
           
 
Constructor Summary
AbstractDeclarativeUIPreProcessor()
           
 
Method Summary
protected abstract  File getDestDir(URL urlFile)
           
 void initialize(URL[] urls)
           
 URL preProcess(URL url, Module module)
           
 void setIndent(boolean indent)
           
 void setKeepGeneratedFiles(boolean keepGeneratedFiles)
           
 void setOutputCharset(String outputCharset)
           
 void setOutputDir(File outputDir)
           
 void setPageFileExtension(String pageFileExtension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keepGeneratedFiles

protected boolean keepGeneratedFiles

pageFileExtension

protected String pageFileExtension

indent

protected boolean indent

outputCharset

protected String outputCharset

outputDir

protected File outputDir
Constructor Detail

AbstractDeclarativeUIPreProcessor

public AbstractDeclarativeUIPreProcessor()
Method Detail

preProcess

public URL preProcess(URL url,
                      Module module)
               throws IOException,
                      InterfaceConfigException
Specified by:
preProcess in interface CruxPreProcessor
Throws:
IOException
InterfaceConfigException
See Also:
org.cruxframework.crux.tools.compile.CruxPreProcessor#preProcess(java.io.File)

getDestDir

protected abstract File getDestDir(URL urlFile)
                            throws IOException
Parameters:
urlFile -
Returns:
Throws:
IOException

setKeepGeneratedFiles

public void setKeepGeneratedFiles(boolean keepGeneratedFiles)

setPageFileExtension

public void setPageFileExtension(String pageFileExtension)

setIndent

public void setIndent(boolean indent)

setOutputCharset

public void setOutputCharset(String outputCharset)

setOutputDir

public void setOutputDir(File outputDir)

initialize

public void initialize(URL[] urls)
Specified by:
initialize in interface CruxPreProcessor


Copyright © 2014. All rights reserved.