|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A SourceWriter is called by the Generator. It's task is creating some sources. Examples are
JavaGenerator | Creates Java classes that are responsible for the actual XML mapping. |
---|---|
DtdGenerator | Creates a DTD matching the schema. |
Method Summary | |
java.io.File |
getDirectory()
Returns the directory where the SourceWriter will generate files. |
java.lang.String |
getJavaPackage()
Returns the default Java package for generated sources. |
void |
setDirectory(java.io.File pDirectory)
Sets the directory where the SourceWriter will generate files. |
void |
setJavaPackage(java.lang.String pPackage)
Sets the default Java package for generated sources. |
void |
setSchemaDate(java.util.Date pDate)
Sets time and date when the schema was created. |
void |
write(Schema pSchema)
Called for writing a complete schema. |
void |
write(SchemaElement pElement)
Called for writing a single schema element. |
Methods inherited from interface de.ispsoft.jaxme.generator.Configurable |
getOption, getOptions, getOptionValue, setOption |
Method Detail |
public java.io.File getDirectory()
Returns the directory where the SourceWriter will generate files. The actual generation may happen in subdirectories, for example in the case of the JavaGenerator the package structure will be considered.
setDirectory(java.io.File)
public void setDirectory(java.io.File pDirectory)
Sets the directory where the SourceWriter will generate files. The actual generation may happen in subdirectories, for example in the case of the JavaGenerator the package structure will be considered.
pDirectory
- The target directory or null (current directory, default)getDirectory()
public void write(Schema pSchema) throws java.lang.Exception
Called for writing a complete schema.
java.lang.Exception
public void write(SchemaElement pElement) throws java.lang.Exception
Called for writing a single schema element.
java.lang.Exception
public void setJavaPackage(java.lang.String pPackage) throws java.lang.Exception
Sets the default Java package for generated sources. Probably useful for the JavaSourceWriter only.
java.lang.Exception
public java.lang.String getJavaPackage() throws java.lang.Exception
Returns the default Java package for generated sources. Probably useful for the JavaSourceWriter only.
java.lang.Exception
public void setSchemaDate(java.util.Date pDate)
Sets time and date when the schema was created. May be null, if unknown.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |