Package com.sun.msv.reader.xmlschema
Class MultiSchemaReader
- java.lang.Object
-
- com.sun.msv.reader.xmlschema.MultiSchemaReader
-
public class MultiSchemaReader extends java.lang.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.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
finalized
private XMLSchemaReader
reader
-
Constructor Summary
Constructors Constructor Description MultiSchemaReader(XMLSchemaReader _reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
finish()
This method should be called when all the schemas are parsed.XMLSchemaReader
getReader()
Deprecated.XMLSchemaGrammar
getResult()
Obtains the parsed grammar.void
parse(java.lang.String source)
void
parse(javax.xml.transform.Source source)
Parse a schema supplied by a javax.xml.transform Source.void
parse(org.xml.sax.InputSource is)
Parses an additional schema.
-
-
-
Field Detail
-
reader
private final XMLSchemaReader reader
-
finalized
private boolean finalized
-
-
Constructor Detail
-
MultiSchemaReader
public MultiSchemaReader(XMLSchemaReader _reader)
-
-
Method Detail
-
getReader
public final XMLSchemaReader getReader()
Deprecated.
-
getResult
public final XMLSchemaGrammar getResult()
Obtains the parsed grammar.
-
parse
public void parse(javax.xml.transform.Source source)
Parse a schema supplied by a javax.xml.transform Source.- Parameters:
source
-
-
parse
public final void parse(java.lang.String source)
-
parse
public void parse(org.xml.sax.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.
-
finish
public void finish()
This method should be called when all the schemas are parsed.
-
-