The Generator is reading an input schema. The schema is
converted into a DOM tree. Finally one or more source
writers are executed.
addBindings
public void addBindings(InputSource pSource)
throws ParserConfigurationException,
SAXException,
IOException
- addBindings in interface Generator
generate
public SchemaSG generate(File pFile)
throws Exception
Opens the given file, calls the specified SchemaReaders
() method and SourceWriters write() method.
- generate in interface Generator
generate
public SchemaSG generate(java.net.URL pURL)
throws Exception
Opens the given URL, calls the specified SchemaReaders
() method and SourceWriters write() method.
getEntityResolver
public EntityResolver getEntityResolver()
Returns the EntityResolver
being used to import external
schemata.
- getEntityResolver in interface Generator
getProperty
public String getProperty(String pName)
Returns the given property value or null, if the property is not
set.
- getProperty in interface PropertySource
getProperty
public String getProperty(String pName,
String pDefault)
Returns the given property value. If the property is not set, returns
the given default value.
- getProperty in interface PropertySource
isForcingOverwrite
public boolean isForcingOverwrite()
Returns whether the generator is forcing an overwrite of files.
- isForcingOverwrite in interface Generator
isSettingReadOnly
public boolean isSettingReadOnly()
Returns whether the generator will create files in read-only mode.
- isSettingReadOnly in interface Generator
setEntityResolver
public void setEntityResolver(EntityResolver pEntityResolver)
Sets the EntityResolver
being used to import external
schemata.
- setEntityResolver in interface Generator
setForcingOverwrite
public void setForcingOverwrite(boolean pIsForcingOverwrite)
Sets whether the generator is forcing an overwrite of files.
- setForcingOverwrite in interface Generator
setProperty
public void setProperty(String pName,
String pValue)
Sets the given property value.
- setProperty in interface PropertySource
setSettingReadOnly
public void setSettingReadOnly(boolean pIsSettingReadOnly)
Sets whether the generator will create files in read-only mode.
- setSettingReadOnly in interface Generator