Skip Headers

Oracle9i XML Reference
Release 1 (9.0.1)

Part Number A88899-01
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

5
Package oracle.XML.parser.schema


XMLSchema


 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.

Constructor Index

XMLSchema() 

XMLSchema constructor.

XMLSchema(int) 

XMLSchema constructor.

Constructors

XMLSchema

public XMLSchema() throws XSDException

XMLSchema constructor.

XMLSchema

public XMLSchema(int n) throws XSDException

XMLSchema constructor.

Parameters

n - Initial size of schemanode set.

XSDBuilder

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

Constructor Index

XSDBuilder() 

XSDBuilder constructor

Method Index

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.

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.


XSDException

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

Method Index

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

Methods

getMessage 
public String getMessage()

Overrride getMessage, in order to construct error message from error id, and error params

Overrides

getMessage in class Throwable

getMessage

public String getMessage(XMLError err)Get localized message based on the 
XMLError sent as parameter 

Parameters

err - XMLError class used to get the error message 


Go to previous page Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index