|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1.6.2) E10663-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.rules.sdk2.datamodel.Browser
oracle.rules.sdk2.datamodel.SchemaBrowser
public final class SchemaBrowser
Provides for browsing of XML Schemas by mapping the schema to JAXB classes. The JAXB classes may be loaded into the RuleDictionary to serve as FactTypes in Rule definitions.
Generated JAXB Classes are visible to the SchemaBrowser after the schema has been added to SchemaBrowser's schemapath using the JAXB schema compiler.
After adding or removing schemas, the NodeTable must be re-retrieved using the getNodeTable method.
The jaxb schema compiler is invoked when the schema is added to the schema path list of the schema browser. The jaxb classes are contained in a user specified package name.
Each element of the schema is an an instance of a JaxbNodes or JavaPackages.
The JaxbNode and JavaPackageNode instances are organized into a collection that is returned by the NodeTable property. A NodeTable is collection the immedidate children of the top level of generated package names. The generated package names are created when schemas are added to the schema path.
The class hierarchy is represented by the nestedNodeTable property. A NodeTable contains the children of each subsequent level in the hierarchy. A JavaPackageNode has a NodeTable representing its children. The children of a JPackage are other JPackage's and JaxbNode's. A JaxbNode has no children and therefore does not have a node table.
Loading of a browsed schema into the datamodel is the responsibility of JaxbNode and JPackageNode classes.
Nested Class Summary | |
---|---|
static class |
SchemaBrowser.FailedSchemaAdd |
Constructor Summary | |
---|---|
SchemaBrowser(RuleDictionary rd, java.lang.String srcOutdir, java.lang.String classOutdir) |
|
SchemaBrowser(RuleDictionary rd, java.lang.String srcOutdir, java.lang.String classOutdir, java.net.URI schemaPathRoot) Creates a Schema browser that is tied to a RuleDictionary instance. |
|
SchemaBrowser(RuleDictionary rd, java.lang.String srcOutdir, java.lang.String classOutdir, java.net.URI schemaPathRoot, java.lang.String jaxblib, java.lang.String parserlib) Creates a Schema browser that is tied to a RuleDictionary instance. |
Method Summary | |
---|---|
void |
addFailedAdd(java.lang.String pathToAdd, java.lang.String targetPackage, SDKException ex) |
oracle.rules.sdk2.datamodel.impt.JaxbModel |
addSchemaPath(java.net.URI pathToAdd) |
oracle.rules.sdk2.datamodel.impt.JaxbModel |
addSchemaPath(java.net.URI pathToAdd, java.lang.String targetPackage) |
oracle.rules.sdk2.datamodel.impt.JaxbModel |
addSchemaPath(java.net.URI pathToAdd, java.lang.String targetPackage, java.lang.String customFile) Deprecated. |
oracle.rules.sdk2.datamodel.impt.JaxbModel |
addSchemaPath(java.net.URI pathToAdd, java.lang.String targetPackage, java.net.URI customFile) |
void |
addWSDL(java.net.URI wsdlPath, java.lang.String targetPackage) |
oracle.rules.sdk2.datamodel.impt.JaxbModel |
addWSDL(java.net.URI wsdlPath, java.lang.String targetPackage, java.lang.String customFile) Deprecated. |
oracle.rules.sdk2.datamodel.impt.JaxbModel |
addWSDL(java.net.URI wsdlPath, java.lang.String targetPackage, java.net.URI customUri) import WSDL inline schemas |
void |
clearSchemaPath() Remove all user created entries from the schema path list. |
java.lang.String |
getClassOutputDir() |
java.util.List<SchemaBrowser.FailedSchemaAdd> |
getFailedSchemaAdds() |
java.lang.String |
getJaxbLib() |
java.lang.String |
getParserLib() |
java.util.List<java.net.URI> |
getSchemaPath() Return an array of schema paths (each entry created by a previous addSchemaPath invocation). |
java.lang.String |
getSchemaPathRoot() |
java.lang.String |
getSourceOutputDir() |
void |
removeSchemaPath(java.net.URI uri) |
void |
setClassOutputDir(java.lang.String cod) Set the directory in which to put compiled JAXB class files in |
void |
setJaxbLib(java.lang.String jaxblib) Set the fully-qualified path of the JAXB library to use when compiling JAXB generated classes when using JAXB 1.0. |
void |
setParserLib(java.lang.String parserlib) Set the fully-qualified path of the XML parser library to use when compiling JAXB generated classes using JAXB 1.0. |
void |
setSchemaPathRoot(java.net.URI spr) |
void |
setSourceOutputDir(java.lang.String sod) Set the directory to generate the JAXB source file into. |
Methods inherited from class oracle.rules.sdk2.datamodel.Browser |
---|
getDictionary, getNodeTable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaBrowser(RuleDictionary rd, java.lang.String srcOutdir, java.lang.String classOutdir, java.net.URI schemaPathRoot) throws SDKException
rd
- a RuleDictionary that contains a datamodel for loadingsrcOutdir
- the directory to generate the JAXB source file intoclassOutdir
- the directory to put the compiled JAXB class files inschemaPathRoot
- the root path for the schemas. If specified, the schema locations will be stored relative to this path, so one can move the entire project a different directory and still have valid references to the schemas, as long as the new root path is specified.SDKException
public SchemaBrowser(RuleDictionary rd, java.lang.String srcOutdir, java.lang.String classOutdir, java.net.URI schemaPathRoot, java.lang.String jaxblib, java.lang.String parserlib) throws SDKException
rd
- a RuleDictionary that contains a datamodel for loadingsrcOutdir
- the directory to generate the JAXB source file intoclassOutdir
- the directory to put the compiled JAXB class files inschemaPathRoot
- the root path for the schemas. If specified, the schema locations will be stored relative to this path, so one can move the entire project a different directory and still have valid references to the schemas, as long as the new root path is specified.jaxblib
- the JAXB 1.0 library location (null if using JAXB 2.0 or on classpath)parserlib
- the JAXB 1.0 parser library location (null if using JAXB 2.0 or on classpath)SDKException
public SchemaBrowser(RuleDictionary rd, java.lang.String srcOutdir, java.lang.String classOutdir) throws SDKException
SDKException
Method Detail |
---|
public oracle.rules.sdk2.datamodel.impt.JaxbModel addSchemaPath(java.net.URI pathToAdd) throws SDKException
SDKException
public oracle.rules.sdk2.datamodel.impt.JaxbModel addSchemaPath(java.net.URI pathToAdd, java.lang.String targetPackage) throws SDKException
SDKException
public oracle.rules.sdk2.datamodel.impt.JaxbModel addSchemaPath(java.net.URI pathToAdd, java.lang.String targetPackage, java.net.URI customFile) throws SDKException
SDKException
@Deprecated
public oracle.rules.sdk2.datamodel.impt.JaxbModel addSchemaPath(java.net.URI pathToAdd,
java.lang.String targetPackage,
java.lang.String customFile)
throws SDKException
pathToAdd
-targetPackage
-customFile
-SDKException
public oracle.rules.sdk2.datamodel.impt.JaxbModel addWSDL(java.net.URI wsdlPath, java.lang.String targetPackage, java.net.URI customUri) throws SDKException
wsdlPath
- path to a WSDL documenttargetPackage
- a String specifying the top level for generated jaxb classes, optionalcustomUri
- String containing jaxb custom bindings that apply to the schema, optionalSDKException
- - jaxb compiler fails to convert WSDL schemas to jaxbpublic void addWSDL(java.net.URI wsdlPath, java.lang.String targetPackage) throws SDKException
SDKException
@Deprecated
public oracle.rules.sdk2.datamodel.impt.JaxbModel addWSDL(java.net.URI wsdlPath,
java.lang.String targetPackage,
java.lang.String customFile)
throws SDKException
wsdlPath
- path to a WSDL documenttargetPackage
- a String specifying the top level for generated jaxb classes, optionalcustomFile
- String containing jaxb custom bindings that apply to the schema, optionalSDKException
- - jaxb compiler fails to convert WSDL schemas to jaxbpublic void setJaxbLib(java.lang.String jaxblib)
jaxblib
- String containing the necessary path to Oracle JAXB librarypublic void setParserLib(java.lang.String parserlib)
parserlib
- String containing the necessary path to Oracle XML parser librarypublic void setSourceOutputDir(java.lang.String sod)
sod
- the directory to generate the JAXB source file intopublic void setClassOutputDir(java.lang.String cod)
cod
- the directorypublic void setSchemaPathRoot(java.net.URI spr)
public java.lang.String getParserLib()
public java.lang.String getSourceOutputDir()
public java.lang.String getClassOutputDir()
public java.lang.String getJaxbLib()
public java.lang.String getSchemaPathRoot()
public void clearSchemaPath() throws SDKException
SDKException
public java.util.List<java.net.URI> getSchemaPath()
public void removeSchemaPath(java.net.URI uri) throws SDKException
SDKException
public java.util.List<SchemaBrowser.FailedSchemaAdd> getFailedSchemaAdds()
public void addFailedAdd(java.lang.String pathToAdd, java.lang.String targetPackage, SDKException ex)
|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1.6.2) E10663-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |