oracle.forms.util.xmltools
Class Forms2XML
java.lang.Object
|
+--oracle.forms.util.xmltools.Forms2XML
- public class Forms2XML
- extends java.lang.Object
This class takes a module (Form Module, Object Library or Menu Module)
and uses the Jdapi to convert it to XML. The format of the XML is specified by
the Forms XML Schema, generated by the class
oracle.forms.util.xmltools.SchemaGenerator.
It can be used in two ways:
1) As a stand alone class invoked from the command line.
2) As a utility called from another Java class.
It's counterpart is the class XML2Forms which performs reverse conversion.
To use this tool the user will need the Forms Jdapi (Java Design-time API) on
their classpath.
Constructor Summary |
Forms2XML(java.io.File moduleFile)
Constructor - Takes a form ready for dumping. |
Forms2XML(oracle.forms.jdapi.JdapiModule module)
Constructor - Takes a form ready for dumping. |
Method Summary |
oracle.xml.parser.v2.XMLDocument |
dumpModule()
Dumps the form passed to the constructor and returns the XML as an object. |
static void |
main(java.lang.String[] args)
Takes a filename or set of filenames to process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Forms2XML
public Forms2XML(oracle.forms.jdapi.JdapiModule module)
- Constructor - Takes a form ready for dumping.
- Parameters:
module
- the module to dump
Forms2XML
public Forms2XML(java.io.File moduleFile)
- Constructor - Takes a form ready for dumping.
- Parameters:
moduleFile
- the module to dump
dumpModule
public oracle.xml.parser.v2.XMLDocument dumpModule()
- Dumps the form passed to the constructor and returns the XML as an object.
- Returns:
- the XML represention of the Form
main
public static void main(java.lang.String[] args)
- Takes a filename or set of filenames to process. Each file is loaded
and dumped to an XML format as filename_moduletype.xml.
Examples:
myform.fmb -> myform_fmb.xml
mylib.olb -> mylib_olb.xml
etc.
- Parameters:
args
- command line arguments