|
|||||||||||
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.parselets.ParseletWriter
Generates source code for working with Parselets.
Field Summary |
Fields inherited from class de.ispsoft.jaxme.generator.SourceWriterImpl |
directory, generator, javaPackage |
Constructor Summary | |
ParseletWriter(ParseletDecoratorFactory pPdf)
Creates a new instance of ParseletWriter. |
Method Summary | |
protected JavaSource |
createParseletClass(SchemaComplexElement pElement)
Creates the Parselet class for a complex element. |
protected JavaConstructor |
getDefaultConstructor(JavaSource pJs,
SchemaComplexElement pElement,
ParseletDecorator pDecorator)
Creates the Parselets default constructor. |
protected JavaMethod |
getParseMethod(JavaSource pJs,
SchemaComplexElement pElement,
ParseletDecorator pDecorator)
Creates the "parse" method. |
protected JavaMethod |
getSerializeMethod(JavaSource pJs,
SchemaComplexElement pElement,
ParseletDecorator pDecorator)
|
void |
write(SchemaElement pElement)
Called for 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 |
public ParseletWriter(ParseletDecoratorFactory pPdf)
Creates a new instance of ParseletWriter.
Method Detail |
protected JavaConstructor getDefaultConstructor(JavaSource pJs, SchemaComplexElement pElement, ParseletDecorator pDecorator)
Creates the Parselets default constructor.
protected JavaMethod getParseMethod(JavaSource pJs, SchemaComplexElement pElement, ParseletDecorator pDecorator)
Creates the "parse" method.
protected JavaMethod getSerializeMethod(JavaSource pJs, SchemaComplexElement pElement, ParseletDecorator pDecorator)
protected JavaSource createParseletClass(SchemaComplexElement pElement)
Creates the Parselet class for a complex element.
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |