org.jboss.jca.codegenerator
Class BaseGen

java.lang.Object
  extended by org.jboss.jca.codegenerator.BaseGen
Direct Known Subclasses:
AbstractCodeGen, AbstractXmlGen

public class BaseGen
extends Object

Base Generation class.

Version:
$Revision: $
Author:
Jeff Zhang

Constructor Summary
BaseGen()
           
 
Method Summary
 void writeEol(Writer out)
          Output eol
 void writeheader(Definition def, Writer out)
          Output class head, for example license
 void writeIndent(Writer out, int indent)
          Output space
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseGen

public BaseGen()
Method Detail

writeEol

public void writeEol(Writer out)
              throws IOException
Output eol

Parameters:
out - Writer
Throws:
IOException - ioException

writeIndent

public void writeIndent(Writer out,
                        int indent)
                 throws IOException
Output space

Parameters:
out - Writer
indent - space number
Throws:
IOException - ioException

writeheader

public void writeheader(Definition def,
                        Writer out)
                 throws IOException
Output class head, for example license

Parameters:
def - definition
out - Writer
Throws:
IOException - ioException


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)