|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.forms.util.xmltools.XML2Forms
This class takes an XML Form representation and converts it back to a
module and using the Jdapi. It can be used in two ways
1) As a stand alone program which can be called from the command line.
2) As a utility called from another java class which returns the module as an
object of class oracle.forms.jdapi.JdapiModule.
This class is the counterpart to Forms2XML.
The XML is first validated against the Forms XML Schema, using the
oracle.forms.util.xmltools.XMLValidator class then parsed using the Oracle
XDK and converted into an module of appropriate type.
To use this tool the user will need the Forms Jdapi (Java Design-time API) on
their classpath.
Constructor Summary | |
XML2Forms(java.net.URL xmlIn)
Constructor - Takes the URL of the XML ready for parsing. |
Method Summary | |
void |
commandLine(java.lang.Boolean printTree)
Lets the tool know that it's been invoked from the command line, it therefore outputs progress indicators to the System.out. |
void |
connectToDatabase(java.lang.String dbConnectString)
Connects to a database with the given connection string. |
oracle.forms.jdapi.JdapiModule |
createModule()
Parses the XML at the URL given to the Constructor and returns the module. |
void |
endElement(oracle.xml.parser.v2.XMLElement element)
This method is excuted by the parser after every XML element. |
static void |
main(java.lang.String[] args)
Takes an XML filename or set of filenames to process. |
void |
parseXML()
This method is excuted by the parser to start the parsing process. |
void |
startElement(oracle.xml.parser.v2.XMLElement element)
This method is excuted by the parser at the start of every XML element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XML2Forms(java.net.URL xmlIn)
xmlIn
- the URL of the XMLMethod Detail |
public void commandLine(java.lang.Boolean printTree)
printTree
- the tool prints an object tree if true.public void connectToDatabase(java.lang.String dbConnectString)
dbConnectString
- user/pass@databasepublic oracle.forms.jdapi.JdapiModule createModule() throws oracle.xml.parser.v2.XMLParseException, oracle.xml.parser.schema.XSDException, org.xml.sax.SAXException, java.io.IOException
java.io.IOException
- if the URL isn't valid.org.xml.sax.SAXException
- if the XML isn't valid.java.io.UTFDataFormatException
- if the XML isn't a valid format.oracle.xml.parser.v2.XMLParseException
- if the XML isn't valid.oracle.xml.parser.schema.XSDException
- if there was an error in the Schema Builder.public void parseXML() throws java.io.UTFDataFormatException, oracle.xml.parser.v2.XMLParseException, org.xml.sax.SAXException, java.io.IOException, oracle.xml.parser.schema.XSDException
java.io.IOException
- if the URL isn't valid.org.xml.sax.SAXException
- if the XML isn't valid.java.io.UTFDataFormatException
- if the XML isn't a valid format.oracle.xml.parser.v2.XMLParseException
- if the XML isn't valid.oracle.xml.parser.schema.XSDException
- if there was an error in the Schema Builder.public void startElement(oracle.xml.parser.v2.XMLElement element)
public void endElement(oracle.xml.parser.v2.XMLElement element)
public static void main(java.lang.String[] args)
args
- command line arguments
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |