oracle.forms.util.xmltools
Class SchemaGenerator
java.lang.Object
|
+--oracle.forms.util.xmltools.SchemaGenerator
- public class SchemaGenerator
- extends java.lang.Object
Generates an XML Schema for the Forms model from the Jdapi metadata.
This class can be called from the command line where it will generate the Schema as an .xsd
file, or called in Java to return an object of class oracle.xml.parser.schema.XMLSchema
or oracle.xml.parser.v2.XMLDocument (see methods below).
To use this tool the user will need the Forms Jdapi (Java Design-time API) on
their classpath.
Constructor Summary |
SchemaGenerator()
Creates a new SchemaGenerator object ready to generate the Forms XML Schema. |
Method Summary |
oracle.xml.parser.v2.XMLDocument |
generateSchema()
Generates the XML Schema for the Forms model and returns it
as an XMLDocument object. |
static oracle.xml.parser.schema.XMLSchema |
getSchemaObject()
Generates the XML Schema for the Forms model and returns it
as an XMLSchema object. |
static void |
main(java.lang.String[] args)
Generates the XML Schema for the Forms model and writes it to
file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORMSSCHEMA_FILENAME
public static final java.lang.String FORMSSCHEMA_FILENAME
- Filename for the Forms XMLSchema
XMLSCHEMA_URI
public static final java.lang.String XMLSCHEMA_URI
- URI for XMLSchema
FORMSSCHEMA_URI
public static final java.lang.String FORMSSCHEMA_URI
- URI for the Forms XMLSchema
SchemaGenerator
public SchemaGenerator()
- Creates a new SchemaGenerator object ready to generate the Forms XML Schema.
generateSchema
public oracle.xml.parser.v2.XMLDocument generateSchema()
- Generates the XML Schema for the Forms model and returns it
as an XMLDocument object.
- Returns:
- XMLDocument
getSchemaObject
public static oracle.xml.parser.schema.XMLSchema getSchemaObject()
- Generates the XML Schema for the Forms model and returns it
as an XMLSchema object. This object can then be set directly on an
XML Parser object. This class uses the Oracle XDK Schema Builder
(oracle.xml.parser.schema.XSDBuilder) class to build
the schema object.
- Returns:
- the Forms XML Schema Object.
main
public static void main(java.lang.String[] args)
- Generates the XML Schema for the Forms model and writes it to
file.