de.ispsoft.jaxme.generator
Class DebugWriter

java.lang.Object
  extended byde.ispsoft.jaxme.generator.ConfigurableImpl
      extended byde.ispsoft.jaxme.generator.SourceWriterImpl
          extended byde.ispsoft.jaxme.generator.DebugWriter
All Implemented Interfaces:
Configurable, SourceWriter

public class DebugWriter
extends SourceWriterImpl

A SourceWriter that emits a structure tree on System.out. Useful for debugging only.

Author:
Jochen Wiedmann

Field Summary
 
Fields inherited from class de.ispsoft.jaxme.generator.SourceWriterImpl
directory, generator, javaPackage
 
Constructor Summary
DebugWriter()
          Creates new DebugWriter
 
Method Summary
 void setOutputWriter(java.io.Writer w)
          Sets the OutputWriter.
 void write(SchemaElement pElement)
          Called for writing a single schema element.
protected  void write(SchemaElement pElement, int indent)
          Actually writing a single schema element.
 
Methods inherited from class de.ispsoft.jaxme.generator.SourceWriterImpl
getDirectory, getGenerator, getJavaPackage, getOption, getSchemaDate, newJavaSource, setDirectory, setGenerator, setJavaPackage, setSchemaDate, write, writeFile, writeJavaSourceFile
 
Methods inherited from class de.ispsoft.jaxme.generator.ConfigurableImpl
getOption, getOptions, getOptionValue, setOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.ispsoft.jaxme.generator.Configurable
getOption, getOptions, getOptionValue, setOption
 

Constructor Detail

DebugWriter

public DebugWriter()
Creates new DebugWriter

Method Detail

write

protected void write(SchemaElement pElement,
                     int indent)
              throws java.lang.Exception

Actually writing a single schema element.

Throws:
java.lang.Exception

write

public void write(SchemaElement pElement)
           throws java.lang.Exception

Called for writing a single schema element.

Specified by:
write in interface SourceWriter
Specified by:
write in class SourceWriterImpl
Throws:
java.lang.Exception

setOutputWriter

public void setOutputWriter(java.io.Writer w)

Sets the OutputWriter.