|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.generator.ConfigurableImpl de.ispsoft.jaxme.generator.SourceWriterImpl de.ispsoft.jaxme.generator.SampleWriter
The SampleWriter creates sample instances matching the specified XML schema. We use this for automatically creating sample XML documents that stylesheet authors may use as a start.
Field Summary |
Fields inherited from class de.ispsoft.jaxme.generator.SourceWriterImpl |
directory, generator, javaPackage |
Constructor Summary | |
SampleWriter()
Creates a new instance of SampleWriter |
Method Summary | |
void |
write(SchemaElement pElement)
Called for writing a single schema element. |
protected void |
write(SchemaElement pElement,
org.xml.sax.ContentHandler pHandler,
NamespaceSupport pNss)
Writes a simple element to the given writer. |
void |
write(java.io.Writer pWriter,
SchemaElement pElement)
Called for writing a single schema element into the given writer. |
protected void |
writeComplexElement(SchemaComplexElement pElement,
org.xml.sax.ContentHandler pHandler,
NamespaceSupport pNss)
Writes a complex element to the given writer. |
protected void |
writeSimpleElement(SchemaSimpleElement pElement,
org.xml.sax.ContentHandler pHandler,
NamespaceSupport pNss)
Writes a simple element to the given writer. |
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 |
public SampleWriter()
Method Detail |
protected void writeSimpleElement(SchemaSimpleElement pElement, org.xml.sax.ContentHandler pHandler, NamespaceSupport pNss) throws java.lang.Exception
Writes a simple element to the given writer.
java.lang.Exception
protected void writeComplexElement(SchemaComplexElement pElement, org.xml.sax.ContentHandler pHandler, NamespaceSupport pNss) throws java.lang.Exception
Writes a complex element to the given writer.
java.lang.Exception
protected void write(SchemaElement pElement, org.xml.sax.ContentHandler pHandler, NamespaceSupport pNss) throws java.lang.Exception
Writes a simple element to the given writer.
java.lang.Exception
public void write(SchemaElement pElement) throws java.lang.Exception
Called for writing a single schema element. Concrete subclasses must implement this method.
write
in interface SourceWriter
write
in class SourceWriterImpl
java.lang.Exception
public void write(java.io.Writer pWriter, SchemaElement pElement) throws java.lang.Exception
Called for writing a single schema element into the given writer.
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |