Oracle9i XML Reference Release 1 (9.0.1) Part Number A88899-01 |
|
java.lang.Object | +---oracle.xml.parser.schema.XSDConstants | +---oracle.xml.parser.schema.XSDNode | +---oracle.xml.parser.schema.XMLSchema public class XMLSchema extends XSDNode
XMLSchema class. Sets top-level XMLSchema document declarations & definitions plus schema location and schema target namespace. XMLSchema objects are created by XSDBuilder as a result of processing XMLSchema documents. They are used by XSDParser for instance XML documents validation and by XSDBuilder as imported schemas.
XMLSchema()
XMLSchema constructor.
XMLSchema(int)
XMLSchema constructor.
XMLSchema
public XMLSchema() throws XSDException
XMLSchema constructor.
XMLSchema
public XMLSchema(int n) throws XSDException
XMLSchema constructor.
n - Initial size of schemanode set.
java.lang.Object | +---oracle.xml.parser.schema.XSDConstants | +---oracle.xml.parser.schema.XSDBuilder
public class XSDBuilder extends XSDConstants implements ObjectBuilder
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: (if any) builds a schema object and makes it visible. (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).
XSDBuilder()
XSDBuilder constructor
build(InputStream, URL)
Build an XMLSchema object
build(Reader, URL)
Build an XMLSchema object
build(String)
Build an XMLSchema object
build(String, String)
Build an XMLSchema object
build(String, URL)
Build an XMLSchema object
build(URL)
Build an XMLSchema object
build(XMLDocument, URL)
Build XMLSchema from XML document
getObject()
Returns the schema object.
setError(XMLError)
Sets XMLError object.
setLocale(Locale)
Sets locale for error reporting.
public XSDBuilder() throws XSDException
XSDBuilder constructor
public void setError(XMLError er)
Sets XMLError object.
er
- XMLError object
public void setLocale(Locale locale)
Sets locale for error reporting.
locale - Locale object
public Object getObject()
Returns the schema object.
XMLSchema object.
public Object build(String sysId) throws Exception
Build an XMLSchema object
sysId
- Schema location
Object - XMLSchema
An Exception is thrown if Builder fails to build an XMLSchema object.
public Object build(InputStream in, URL baseurl) throws Exception
Build an XMLSchema object
in - Inputstream of Schema baseurl - URL used to resolve any relative refs.
Object - XMLSchema
An Exception is thrown if Builder fails to build an XMLSchema object.
public Object build(Reader r, URL baseurl) throws Exception
Build an XMLSchema object
r - Reader of Schema baseurl - URL used to resolve any relative refs.
Object - XMLSchema
An Exception is thrown if Builder fails to build an XMLSchema object.
public Object build(URL schemaurl) throws Exception
Build an XMLSchema object
url - URL of Schema
Object - XMLSchema
An Exception is thrown if Builder fails to build an XMLSchema object.
public Object build(XMLDocument schemaDoc) throws Exception
Build XMLSchema from XML document
schemaDoc - XMLDocument baseurl - URL used to resolve any relative refs.
Object - XMLSchema
An Exception is thrown if Builder fails to build an XMLSchema object.
public Object build(String ns, String sysid) throws Exception
Build an XMLSchema object
ns - Schema target namespace used to validate targetNamespace sysId - Schema location
Object XMLSchema
An Exception is thrown if Builder fails to build an XMLSchema object.
public Object build(String ns, URL sysid) throws Exception
Build an XMLSchema object
ns - Schema target namespace used to validate targetNamespace sysId - URL Schema location
Object XMLSchema
An Exception is thrown if Builder fails to build an XMLSchema object.
java.lang.Object | +---java.lang.Throwable | +---java.lang.Exception | +---oracle.xml.parser.schema.XSDException
public class XSDException extends Exception
Indicates that an exception occurred during XMLSchema validation
getMessage()
Overrride getMessage, in order to construct error message from error id, and error params
getMessage(XMLError)
Get localized message based on the XMLError sent as parameter
getMessage public String getMessage()
Overrride getMessage, in order to construct error message from error id, and error params
getMessage in class Throwable
public String getMessage(XMLError err)Get localized message based on the XMLError sent as parameter
err - XMLError class used to get the error message
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|