|
Oracle® Database XML Java API Reference 11g Release 2 (11.2) E10769-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.xml.parser.schema.XSDBuilder
public class XSDBuilder
Builds an XMLSchema object from XMLSchema document. XMLSchema object is a set of objects (Infoset items) corresponding to top-level schema declarations and definitions. The Schema document is parsed as XML and converted to a DOM tree. This schema DOM tree is 'Schema' parsed in the following order: <import> (if any) builds a schema object and makes it visible. <include> (if any) is replaced by corresponding DOM tree. Top-level declarations and definitions are registered as the current schema infoset items. Finally, top-level tree elements (infoset items) are 'Schema' parsed. Those include <element>, <simpleType>, <complexType>, <annotation>, <group>, <attribute>, <attributeGroup>, <notation>, etc. The result XMLSchema object is a set (infoset) of objects (top-level input elements). Object's contents is a tree with nodes corresponding to low-level element/group decls/refs preceded by node/object of type XSDNode containg cardinality info (minOccurs/maxOccurs).
Field Summary | |
---|---|
static java.lang.String |
SCHEMA_ANNOTATION |
static java.lang.String |
SORT_SCHEMA_IMPORTS |
static java.lang.String |
SQL_OFFLINE_SIZE |
static java.lang.String |
XDB_SQLINLINE |
Constructor Summary | |
---|---|
XSDBuilder() XSDBuilder constructor |
Method Summary | |
---|---|
XMLSchema |
build(InputSource source) Build an XMLSchema object |
XMLSchema |
build(java.io.InputStream in, java.net.URL baseurl) Build an XMLSchema object |
XMLSchema |
build(java.io.Reader r, java.net.URL baseurl) Build an XMLSchema object |
XMLSchema |
build(java.lang.String sysId) Build an XMLSchema object |
XMLSchema |
build(java.lang.String ns, java.lang.String sysid) Build an XMLSchema object |
XMLSchema |
build(java.lang.String ns, java.net.URL sysid) Build an XMLSchema object |
XMLSchema |
build(java.net.URL schemaurl) Build an XMLSchema object |
XMLSchema |
build(XMLDocument[] schemaDoc, java.net.URL baseurl) Build XMLSchema from Array of XML documents |
XMLSchema |
build(XMLDocument doc, java.lang.String fragment, java.lang.String ns, java.net.URL sysid) Build an XMLSchema object |
XMLSchema |
build(XMLDocument schemaDoc, java.net.URL baseurl) Build XMLSchema from XML document |
java.lang.Object |
getObject() Returns the schema object. |
void |
setDebugMode(boolean mode) Sets debug mode. |
void |
setEntityResolver(EntityResolver entResolver) Set an EntityResolver for resolving imports/include |
void |
setError(XMLError er) Sets XMLError object. |
void |
setLocale(java.util.Locale locale) Sets locale for error reporting. |
void |
setXMLProperty(java.lang.String name, java.lang.Object value) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SCHEMA_ANNOTATION
public static final java.lang.String XDB_SQLINLINE
public static final java.lang.String SQL_OFFLINE_SIZE
public static final java.lang.String SORT_SCHEMA_IMPORTS
Constructor Detail |
---|
public XSDBuilder() throws XSDException
XSDException
Method Detail |
---|
public void setError(XMLError er)
er
- XMLError objectpublic void setDebugMode(boolean mode)
mode
- booleanpublic void setLocale(java.util.Locale locale)
locale
- Locale objectpublic void setEntityResolver(EntityResolver entResolver)
entResolver
- EntityResolverEntityResolver
public void setXMLProperty(java.lang.String name, java.lang.Object value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.Object getObject()
public XMLSchema build(java.lang.String sysId) throws XSDException
sysId
- Schema locationXSDException
- An XSDException
is thrown if Builder fails to build an XMLSchema object.public XMLSchema build(java.io.InputStream in, java.net.URL baseurl) throws XSDException
in
- Inputstream of Schemabaseurl
- URL used to resolve any relative refs.XSDException
- An XSDException
is thrown if Builder fails to build an XMLSchema object.public XMLSchema build(java.io.Reader r, java.net.URL baseurl) throws XSDException
r
- Reader of Schemabaseurl
- URL used to resolve any relative refs.XSDException
- An XSDException
is thrown if Builder fails to build an XMLSchema object.public XMLSchema build(java.net.URL schemaurl) throws XSDException
url
- URL of SchemaXSDException
- An XSDException
is thrown if Builder fails to build an XMLSchema object.public XMLSchema build(InputSource source) throws XSDException
InputSource
- of SchemaXSDException
- An XSDException
is thrown if Builder fails to build an XMLSchema object.public XMLSchema build(XMLDocument schemaDoc, java.net.URL baseurl) throws XSDException
schemaDoc
- XMLDocumentbaseurl
- base URL to be use for any import/include in documentXSDException
- An XSDException
is thrown if Builder fails to build an XMLSchema object.public XMLSchema build(XMLDocument[] schemaDoc, java.net.URL baseurl) throws XSDException
schemaDoc
- Array of XMLDocumentbaseurl
- base URL to be use for any import/include in documentXSDException
- An XSDException
is thrown if Builder fails to build an XMLSchema object.public XMLSchema build(XMLDocument doc, java.lang.String fragment, java.lang.String ns, java.net.URL sysid) throws XSDException
doc
- XMLdocument contain the schema elementfragment
- Fragment ID of the schema elementns
- Schema target namespace used to validate targetNamespacesysId
- Schema locationXSDException
- An XSDException
is thrown if Builder fails to build an XMLSchema object.public XMLSchema build(java.lang.String ns, java.lang.String sysid) throws XSDException
ns
- Schema target namespace used to validate targetNamespacesysId
- Schema locationXSDException
- An XSDException
is thrown if Builder fails to build an XMLSchema object.public XMLSchema build(java.lang.String ns, java.net.URL sysid) throws XSDException
ns
- Schema target namespace used to validate targetNamespacesysId
- URL Schema locationXSDException
- An XSDException
is thrown if Builder fails to build an XMLSchema object.
|
Oracle® Database XML Java API Reference 11g Release 2 (11.2) E10769-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |