org.exolab.castor.xml.schema.reader
public class SchemaReader extends Object
Version: $Revision: 6230 $ $Date: 2004-10-05 14:27:10 -0600 (Tue, 05 Oct 2004) $
| Constructor Summary | |
|---|---|
| SchemaReader(InputSource source)
Creates a new SchemaReader for the given InputSource
| |
| SchemaReader(Reader reader, String filename)
Creates a new SchemaReader for the given Reader
| |
| SchemaReader(String url)
Creates a new SchemaReader for the given URL
| |
| Method Summary | |
|---|---|
| Schema | read()
Reads the Schema from the source and returns the Schema
object model.
|
| void | setCacheIncludedSchemas(boolean cache)
Sets wheter or not to cache the included xml schemas
instead of inlining them as specified by the XML Schema
specification.
|
| void | setEntityResolver(EntityResolver resolver)
Sets the EntityResolver used to resolve SYSTEM Identifier.
|
| void | setErrorHandler(ErrorHandler errorHandler)
Sets the ErrorHandler.
|
| void | setURIResolver(URIResolver uriresolver)
Sets the URIResolver used to resolve hrefs.
|
| void | setValidation(boolean validate)
Sets whether or not post-read validation should
occur. |
Parameters: source the InputSource to read the Schema from.
Parameters: reader the Reader to read the Schema from. filename for reporting errors.
Parameters: url the URL string
Returns: the new Schema created from the source of this SchemaReader
Parameters: cache true to cache the included XML Schemas.
Parameters: resolver the EntityResolver to use.
Parameters: errorHandler
Parameters: uriresolver the URIResolver to use.
Parameters: validate a boolean that when true will force a call to Schema#validate after the schema is read.