public class PLDoc extends Object
2006-05-16 - Matthias Hendler - Rewritten execption handling in Methode run and processPackage. Now the program ignores not only exceptions thrown by the parser but also thrown errors. Also a summary of skipped packages will be written to stderr at the program end. User can specify if he wants to get a generator summary in which he can see errors encountered during processing packages. Creation date is also added to the XML document (application.xml) for further XSLT processing.
| Modifier and Type | Field and Description |
|---|---|
static ResourceLoader |
resLoader |
static ResourceResolver |
resResolver |
Settings |
settings |
| Constructor and Description |
|---|
PLDoc(Settings settings)
Create using collected or defaulted settings.
|
| Modifier and Type | Method and Description |
|---|---|
static URIResolver |
getResourceResolver() |
static InputStream |
getResourceStream(String path) |
static void |
main(String[] args)
Generate PLDoc from the command-line - all settings are passed as command-line parameters
|
Throwable |
processPackage(BufferedReader packageSpec,
XMLWriter xmlOut,
String pPackageName,
String pSchemaName,
String pGlobalPackageName)
Processes a package.
|
void |
resultSetToXml(ResultSet resultSet,
OutputStream outputStream,
String documentRootName,
String rowElementName,
String dtd)
Write ResultSet to Output As XML using the specified settings.
|
void |
run()
Run PLDoc using the specified settings.
|
public static final ResourceResolver resResolver
public static final ResourceLoader resLoader
public Settings settings
public PLDoc(Settings settings)
settings - the collected settings from command-line, ANt task or Maven mojo.public static void main(String[] args) throws Exception
args - all command-line settingsException - on errorpublic void run()
throws Exception
Exception - on error
2006-05-16 - Matthias Hendler - Collect some status information during the processing
and add them to the application.xml.
More verbose output to console added.public void resultSetToXml(ResultSet resultSet, OutputStream outputStream, String documentRootName, String rowElementName, String dtd) throws Exception
resultSet - the database information to writeoutputStream - outputStreamdocumentRootName - the root Element of the XML documentrowElementName - the element containing each row documentdtd - Optional DTD that the XML should validate againstException - on errorpublic Throwable processPackage(BufferedReader packageSpec, XMLWriter xmlOut, String pPackageName, String pSchemaName, String pGlobalPackageName) throws net.sourceforge.pldoc.PLDoc.SystemExitException
packageSpec - Package specification to parsexmlOut - XML writerpPackageName - The name of the package which is processedpSchemaName - The name of the package ownerpGlobalPackageName - The name of the default package name to contain function, procedure and trigger PLDoc if pSchemaName is not providedSystemExitException - Thrown if an error occurred and the user specified the halt on errors option.
All other throwables will be caught.net.sourceforge.pldoc.PLDoc.SystemExitExceptionpublic static InputStream getResourceStream(String path) throws IOException
IOExceptionpublic static URIResolver getResourceResolver()
Copyright © 2019. All rights reserved.