|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.generator.impl.GeneratorImpl
The Generator is reading an input schema. The schema is converted into a DOM tree. Finally one or more source writers are executed.
| Constructor Summary | |
GeneratorImpl()
Creates a new GeneratorImpl |
|
| Method Summary | |
SchemaSG |
generate(java.io.File pFile)
Opens the given file, calls the specified SchemaReaders () method and SourceWriters write() method. |
SchemaSG |
generate(org.xml.sax.InputSource pSource)
Generates java source from the given URL.
|
SchemaSG |
generate(java.net.URL pURL)
Opens the given URL, calls the specified SchemaReaders () method and SourceWriters write() method. |
org.xml.sax.EntityResolver |
getEntityResolver()
Returns the EntityResolver being used to import external
schemata. |
java.lang.String |
getKey()
Returns a key for getting and setting custom data. |
java.lang.String |
getProperty(java.lang.String pName)
Returns the given property value or null, if the property is not set. |
java.lang.String |
getProperty(java.lang.String pName,
java.lang.String pDefault)
Returns the given property value. |
SchemaReader |
getSchemaReader()
Returns the SchemaReader. |
java.io.File |
getTargetDirectory()
Returns the directory where to create files. |
boolean |
isForcingOverwrite()
Returns whether the generator is forcing an overwrite of files. |
boolean |
isSettingReadOnly()
Returns whether the generator will create files in read-only mode. |
boolean |
isValidating()
Returns whether the generator is using a validating XML schema parser. |
void |
setEntityResolver(org.xml.sax.EntityResolver pEntityResolver)
Sets the EntityResolver being used to import external
schemata. |
void |
setForcingOverwrite(boolean pIsForcingOverwrite)
Sets whether the generator is forcing an overwrite of files. |
void |
setProperty(java.lang.String pName,
java.lang.String pValue)
Sets the given property value. |
void |
setSchemaReader(SchemaReader pReader)
Sets the SchemaReader. |
void |
setSettingReadOnly(boolean pIsSettingReadOnly)
Sets whether the generator will create files in read-only mode. |
void |
setTargetDirectory(java.io.File pDirectory)
Sets the directory where to create files. |
void |
setValidating(boolean pIsValidating)
Sets whether the generator is using a validating XML schema parser. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GeneratorImpl()
| Method Detail |
public void setEntityResolver(org.xml.sax.EntityResolver pEntityResolver)
Sets the EntityResolver being used to import external
schemata.
setEntityResolver in interface Generatorpublic org.xml.sax.EntityResolver getEntityResolver()
Returns the EntityResolver being used to import external
schemata.
getEntityResolver in interface Generatorpublic boolean isForcingOverwrite()
Returns whether the generator is forcing an overwrite of files.
isForcingOverwrite in interface Generatorpublic void setForcingOverwrite(boolean pIsForcingOverwrite)
Sets whether the generator is forcing an overwrite of files.
setForcingOverwrite in interface Generatorpublic boolean isSettingReadOnly()
Returns whether the generator will create files in read-only mode.
isSettingReadOnly in interface Generatorpublic void setSettingReadOnly(boolean pIsSettingReadOnly)
Sets whether the generator will create files in read-only mode.
setSettingReadOnly in interface Generatorpublic boolean isValidating()
GeneratorReturns whether the generator is using a validating XML schema parser. Defaults to false.
isValidating in interface Generatorpublic void setValidating(boolean pIsValidating)
GeneratorSets whether the generator is using a validating XML schema parser. Defaults to false.
setValidating in interface Generatorpublic void setSchemaReader(SchemaReader pReader)
Sets the SchemaReader.
setSchemaReader in interface Generatorpublic SchemaReader getSchemaReader()
Returns the SchemaReader.
getSchemaReader in interface Generatorpublic void setTargetDirectory(java.io.File pDirectory)
GeneratorSets the directory where to create files.
setTargetDirectory in interface Generatorpublic java.io.File getTargetDirectory()
GeneratorReturns the directory where to create files.
getTargetDirectory in interface Generator
public SchemaSG generate(org.xml.sax.InputSource pSource)
throws java.lang.Exception
Generator
Generates java source from the given URL.
generate in interface GeneratorpSource - reads the schema (from which the source is to be generated)
from the SAX Input Source. The System ID should be (if possible) set.
SchemaSG describing the source generated
java.lang.Exception
public SchemaSG generate(java.io.File pFile)
throws java.lang.Exception
Opens the given file, calls the specified SchemaReaders () method and SourceWriters write() method.
generate in interface GeneratorpFile - reads the schema (from which the source is to be generated)
from the given file.
SchemaSG describing the source generated
java.lang.Exception
public SchemaSG generate(java.net.URL pURL)
throws java.lang.Exception
Opens the given URL, calls the specified SchemaReaders () method and SourceWriters write() method.
generate in interface GeneratorpURL - reads the schema (from which the source is to be generated)
from the given URL.
SchemaSG describing the source generated
java.lang.Exceptionpublic java.lang.String getProperty(java.lang.String pName)
PropertySourceReturns the given property value or null, if the property is not set.
getProperty in interface PropertySource
public java.lang.String getProperty(java.lang.String pName,
java.lang.String pDefault)
PropertySourceReturns the given property value. If the property is not set, returns the given default value.
getProperty in interface PropertySource
public void setProperty(java.lang.String pName,
java.lang.String pValue)
PropertySourceSets the given property value.
setProperty in interface PropertySourcepublic java.lang.String getKey()
GeneratorReturns a key for getting and setting custom data.
getKey in interface Generator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||