uic.output
Interface OutputterInterface

All Known Implementing Classes:
JavaFileWriter

public interface OutputterInterface

Each outputer has to implement this interface to be pluggable into UIC. An Outputter is the one that interprets the structure build according to the plugins after reading the input file. The Outputter decides what do to with the output; so far a Instanciator and JavaFileWriter have been created.

The outputter has to make sure he does not alter the contents of the builder in his run, another outputter may be run afterwards.


Method Summary
 Object run(String workingDir, UIC.BuildSettings buildSettings)
          Run the outputter.
 void setBuilder(UICBuilder builder)
          The UICBuilder contains the structure and info like the classname needed when 'outputting'.
 

Method Detail

setBuilder

public void setBuilder(UICBuilder builder)
The UICBuilder contains the structure and info like the classname needed when 'outputting'.


run

public Object run(String workingDir,
                  UIC.BuildSettings buildSettings)
           throws CompilerException
Run the outputter.

Parameters:
workingDir - is the (relative) path to the directory where the input file lives.
buildSettings - variables used to create the build.
Throws:
CompilerException - when something fails.


Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence