Enhydra 5.1 API

org.enhydra.xml.xmlc.compiler
Class ClassGenerator

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

public class ClassGenerator
extends java.lang.Object

Generate XML classes and interfaces.


Field Summary
static java.lang.String DELEGATE_FIELD_NAME
          Name of field containing delegate reference.
static java.lang.String DOM_FACTORY_FIELD_NAME
          Name for the static field holding the XMLCDomFactory.
 
Constructor Summary
ClassGenerator(MetaData metaData, XMLCDocument xmlcDoc, java.io.PrintWriter methodOutput)
          Construct an object.
 
Method Summary
 void generateJavaSource(java.io.PrintWriter verboseOut)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELEGATE_FIELD_NAME

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

See Also:
Constant Field Values

DOM_FACTORY_FIELD_NAME

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

See Also:
Constant Field Values
Constructor Detail

ClassGenerator

public ClassGenerator(MetaData metaData,
                      XMLCDocument xmlcDoc,
                      java.io.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(java.io.PrintWriter verboseOut)
                        throws XMLCException,
                               java.io.IOException
XMLCException
java.io.IOException

Enhydra 5.1 API