|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.saxonica.sdoc.SchemaReader
A class for reading XML Schema documents. The class is not instantiated, its methods are static.
Method Summary | |
static javax.xml.transform.Source |
getSource(java.lang.String baseURI,
java.lang.String relativeURI,
PipelineConfiguration pipe,
java.lang.String targetNamespace)
Resolve and dereference a URI to get a Source object representing a schema document |
static javax.xml.transform.Source[] |
getSources(java.lang.String baseURI,
java.lang.String[] relativeURI,
PipelineConfiguration pipe,
java.lang.String targetNamespace)
Resolve and dereference a set of URIs to get a set of Source objects representing schema documents |
static SchemaDocument |
read(javax.xml.transform.Source source,
PipelineConfiguration pipe,
SchemaDocumentManager manager,
SchemaElement referrer)
Read the Schema from a source XML document and returns the Schema document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static javax.xml.transform.Source getSource(java.lang.String baseURI, java.lang.String relativeURI, PipelineConfiguration pipe, java.lang.String targetNamespace) throws SchemaException
baseURI
- the base URIrelativeURI
- the URI to be resolved relative to the base URIpipe
- the pipeline configuration (which may define a URIResolver to be used)targetNamespace
- the targetNamespace of the schema document required (this is set to
null when doing an include or redefine, because in those cases the targetNamespace cannot
be used to locate the schema document)
SchemaException
- if any errors occurpublic static javax.xml.transform.Source[] getSources(java.lang.String baseURI, java.lang.String[] relativeURI, PipelineConfiguration pipe, java.lang.String targetNamespace) throws SchemaException
baseURI
- the base URIrelativeURI
- the URIs (location hints) to be resolved relative to the base URIpipe
- the pipeline configuration (which may define a URIResolver to be used)targetNamespace
- the targetNamespace of the schema document required (this is set to
null when doing an include or redefine, because in those cases the targetNamespace cannot
be used to locate the schema document)
SchemaException
- if any errors occurpublic static SchemaDocument read(javax.xml.transform.Source source, PipelineConfiguration pipe, SchemaDocumentManager manager, SchemaElement referrer) throws SchemaException
SchemaDocument.validate(javax.xml.transform.ErrorListener)
source
- the JAXP Source containing the scheAma documentpipe
- the configurationmanager
- the schema document manager, which knows about any other schema documents currently being readreferrer
- if the schema document is referenced from an xs:import, xs:include, or xs:redefined, this
parameter identifies that element; otherwise, null.
SchemaException
- if the schema module can't be read or parsed,
or if the schema module is an invalid schema
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |