Top Description Fields Constructors Methods
com.sun.msv.reader.xmlschema

public Class MultiSchemaReader

extends Object
Class Inheritance
Imports
javax.xml.transform.Source, org.xml.sax.InputSource, org.xml.sax.helpers.LocatorImpl, com.sun.msv.grammar.xmlschema.XMLSchemaGrammar, com.sun.msv.util.Util

An utility class that reads multiple XML Schema documents and combines them into one schema object.

Usage

Creates a new instance of XMLSchemaReader, then pass it to the constructor of this class. Then call the parse method as many times as you want. Finally, call the finish method.

The parsed grammar can be obtained from the underlying XMLSchemaReader object.

Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private boolean
private final XMLSchemaReader

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
finish()

This method should be called when all the schemas are parsed.

public final XMLSchemaReader
getReader()

Deprecated
public final XMLSchemaGrammar
getResult()

Obtains the parsed grammar.

public void
parse(Source source)

Parse a schema supplied by a javax.xml.transform Source.

public final void
parse(String source)

public void
parse(InputSource is)

Parses an additional schema.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

finalizedback to summary
private boolean finalized
readerback to summary
private final XMLSchemaReader reader

Constructor Detail

MultiSchemaReaderback to summary
public MultiSchemaReader(XMLSchemaReader _reader)

Method Detail

finishback to summary
public void finish()

This method should be called when all the schemas are parsed.

getReaderback to summary
public final XMLSchemaReader getReader()

Deprecated

getResultback to summary
public final XMLSchemaGrammar getResult()

Obtains the parsed grammar.

parseback to summary
public void parse(Source source)

Parse a schema supplied by a javax.xml.transform Source.

parseback to summary
public final void parse(String source)
parseback to summary
public void parse(InputSource is)

Parses an additional schema. The caller can call this method many times to parse multiple schemas. If possible, the caller should set the system Id to the InputSource.