|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.xml.parser.schema.XSDBuilder
Builds an XMLSchema object from XMLSchema document. XMLSchema object is a set of objects (Infoset items) corresponding to top-level schema declrations & definitions. Schema document is 'XML' parsed and converted to a DOM tree. This schema DOM tree is 'Schema' parsed in a 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 & definitions are registered as a current schema infoset items. Finaly, top-level tree elements (infoset items) are 'Schema' parsed. 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 SNode containg cardinality info (min/maxOccurs).
| Field Summary |
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XSDBuilder()
throws 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 - EntityResolverEntityResolverpublic 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
XSDException - An XSDException is thrown if Builder fails to build an XMLSchema object.
public XMLSchema build(InputSource source)
throws XSDException
XSDException - 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 targetNamespaceXSDException - 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 targetNamespaceXSDException - 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 targetNamespaceXSDException - An XSDException is thrown if Builder fails to build an XMLSchema object.
|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||