org.enhydra.xml.xmlc.compiler
Class ClassGenerator

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.compiler.ClassGenerator

public class ClassGenerator
extends Object

Generate XML classes and interfaces.


Field Summary
static String DELEGATE_FIELD_NAME
          Name of field containing delegate reference.
static String DOC_LOADER_CLASS_NAME
          Class name of the document loader for deferred parsing.
static String DOC_LOADER_FIELD_NAME
          Name of field containing document loader reference for deferred parsing.
static String DOM_FACTORY_FIELD_NAME
          Name for the static field holding the XMLCDomFactory.
(package private)  JavaClass fDocClass
          Class being constructed.
 
Constructor Summary
ClassGenerator(MetaData metaData, XMLCDocument xmlcDoc, PrintWriter methodOutput)
          Construct an object.
 
Method Summary
 void generateJavaSource(PrintWriter verboseOut)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOC_LOADER_FIELD_NAME

public static final String DOC_LOADER_FIELD_NAME
Name of field containing document loader reference for deferred parsing.

DOC_LOADER_CLASS_NAME

public static final String DOC_LOADER_CLASS_NAME
Class name of the document loader for deferred parsing.

DELEGATE_FIELD_NAME

public static final String DELEGATE_FIELD_NAME
Name of field containing delegate reference.

DOM_FACTORY_FIELD_NAME

public static final String DOM_FACTORY_FIELD_NAME
Name for the static field holding the XMLCDomFactory.

fDocClass

JavaClass fDocClass
Class being constructed.
Constructor Detail

ClassGenerator

public ClassGenerator(MetaData metaData,
                      XMLCDocument xmlcDoc,
                      PrintWriter methodOutput)
               throws XMLCException
Construct an object.
Parameters:
metaData - Document metadata.
xmlcDoc - XMLC DOM object containing the document.
methodOutput - Write information about the generated methods to this file if not NULL.
Throws:
XMLCException - If an error is detected.
Method Detail

generateJavaSource

public void generateJavaSource(PrintWriter verboseOut)
                        throws XMLCException,
                               IOException


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.