com.sun.msv.reader.xmlschema
Class MultiSchemaReader

java.lang.Object
  extended bycom.sun.msv.reader.xmlschema.MultiSchemaReader

public class MultiSchemaReader
extends Object

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

Constructor Summary
MultiSchemaReader(XMLSchemaReader _reader)
           
 
Method Summary
 void finish()
          This method should be called when all the schemas are parsed.
 XMLSchemaReader getReader()
           
 void parse(InputSource is)
          Parses an additional schema.
 void parse(String source)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiSchemaReader

public MultiSchemaReader(XMLSchemaReader _reader)
Method Detail

finish

public void finish()
This method should be called when all the schemas are parsed.


getReader

public final XMLSchemaReader getReader()

parse

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.


parse

public final void parse(String source)


Copyright © 2001-2003 Sun Microsystems, Inc. Documenation generated September 9 2004.