XSDBuilder - Oracle 9i

Syntax:

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).

Constructor Index:

XSDBuilder() XSDBuilder constructor

Method Index:

Constructors

XSDBuilder:

public XSDBuilder() throws XSDException XSDBuilder constructor

Methods

setError:

public void setError(XMLError er) Sets XMLError object.

Parameters:

er - XMLError object

setLocale:

public void setLocale(Locale locale)

Sets locale for error reporting.

Parameters:

locale - Locale object

getObject:

public Object getObject()

Returns the schema object.

Returns:

XMLSchema object.

build:

public Object build(String sysId) throws Exception

Build an XMLSchema object

Parameters:

sysId - Schema location

Returns:

Object - XMLSchema

Throws:

An Exception is thrown if Builder fails to build an XMLSchema object.

build:

public Object build(InputStream in, URL baseurl) throws Exception

Build an XMLSchema object

Parameters:

in - Inputstream of Schema baseurl - URL used to resolve any relative refs.

Returns:

Object - XMLSchema

Throws:

An Exception is thrown if Builder fails to build an XMLSchema object.

build:

public Object build(Reader r, URL baseurl) throws Exception

Build an XMLSchema object

Parameters:

r - Reader of Schema baseurl - URL used to resolve any relative refs.

Returns:

Object - XMLSchema

Throws:

An Exception is thrown if Builder fails to build an XMLSchema object.

build:

public Object build(URL schemaurl) throws Exception

Build an XMLSchema object

Parameters:

url - URL of Schema

Returns:

Object - XMLSchema

Throws:

An Exception is thrown if Builder fails to build an XMLSchema object.

build:

public Object build(XMLDocument schemaDoc) throws Exception

Build XMLSchema from XML document

Parameters:

schemaDoc - XMLDocument baseurl - URL used to resolve any relative refs.

Returns:

Object - XMLSchema

Throws:

An Exception is thrown if Builder fails to build an XMLSchema object.

build:

public Object build(String ns, String sysid) throws Exception

Build an XMLSchema object

Parameters:

ns - Schema target namespace used to validate targetNamespace sysId - Schema location

Returns:

Object XMLSchema

Throws:

An Exception is thrown if Builder fails to build an XMLSchema object.

build:

public Object build(String ns, URL sysid) throws Exception

Build an XMLSchema object

Parameters:

ns - Schema target namespace used to validate targetNamespace sysId - URL Schema location

Returns:

Object XMLSchema

Throws:

An Exception is thrown if Builder fails to build an XMLSchema object.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics