Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.cantaloop.cgimlet.lang
Class AbstractCodeWriter  view AbstractCodeWriter download AbstractCodeWriter.java

java.lang.Object
  extended byorg.cantaloop.cgimlet.lang.AbstractCodeWriter
All Implemented Interfaces:
CodeWriter

public abstract class AbstractCodeWriter
extends java.lang.Object
implements CodeWriter

Abstract class that contains useful method for code writers.

Version:
@version@ ($Revision: 1.1 $)

Field Summary
protected  java.io.File m_baseDir
           
protected  java.io.File m_prettyPrintConfig
           
protected  boolean m_prettyPrinting
           
 
Constructor Summary
protected AbstractCodeWriter()
          Creates a new AbstractCodeWriter instance.
protected AbstractCodeWriter(java.io.File baseDir, boolean prettyPrinting)
          Creates a new AbstractCodeWriter instance.
 
Method Summary
 java.io.File getBaseDir()
          Get the base directory of the generated files.
 java.io.File getPrettyPrintConfiguration()
          Get the configuration file for the pretty printer.
 boolean isPrettyPrinting()
          Check if pretty printing is enabled or not.
 void setBaseDir(java.io.File f)
          Set the base directory of the generated files.
 void setPrettyPrintConfiguration(java.io.File f)
          Set the configuration file for the pretty printer.
 void setPrettyPrinting(boolean b)
          Specify if generated files should be pretty-printed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.cantaloop.cgimlet.lang.CodeWriter
write, write
 

Field Detail

m_prettyPrinting

protected boolean m_prettyPrinting

m_baseDir

protected java.io.File m_baseDir

m_prettyPrintConfig

protected java.io.File m_prettyPrintConfig
Constructor Detail

AbstractCodeWriter

protected AbstractCodeWriter()
Creates a new AbstractCodeWriter instance.


AbstractCodeWriter

protected AbstractCodeWriter(java.io.File baseDir,
                             boolean prettyPrinting)
Creates a new AbstractCodeWriter instance.

Method Detail

setPrettyPrintConfiguration

public void setPrettyPrintConfiguration(java.io.File f)
Description copied from interface: CodeWriter
Set the configuration file for the pretty printer.

Specified by:
setPrettyPrintConfiguration in interface CodeWriter

getPrettyPrintConfiguration

public java.io.File getPrettyPrintConfiguration()
Description copied from interface: CodeWriter
Get the configuration file for the pretty printer.

Specified by:
getPrettyPrintConfiguration in interface CodeWriter

setPrettyPrinting

public void setPrettyPrinting(boolean b)
Description copied from interface: CodeWriter
Specify if generated files should be pretty-printed.

Specified by:
setPrettyPrinting in interface CodeWriter

isPrettyPrinting

public boolean isPrettyPrinting()
Description copied from interface: CodeWriter
Check if pretty printing is enabled or not.

Specified by:
isPrettyPrinting in interface CodeWriter

setBaseDir

public void setBaseDir(java.io.File f)
Description copied from interface: CodeWriter
Set the base directory of the generated files.

Specified by:
setBaseDir in interface CodeWriter

getBaseDir

public java.io.File getBaseDir()
Description copied from interface: CodeWriter
Get the base directory of the generated files.

Specified by:
getBaseDir in interface CodeWriter