|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.schema.reader.SchemaReader
A class for reading XML Schemas
| Constructor Summary | |
|---|---|
SchemaReader(org.xml.sax.InputSource source)
Creates a new SchemaReader for the given InputSource |
|
SchemaReader(java.io.Reader reader,
java.lang.String filename)
Creates a new SchemaReader for the given Reader |
|
SchemaReader(java.lang.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 |
setEntityResolver(org.xml.sax.EntityResolver resolver)
Sets the EntityResolver used to resolve SYSTEM Identifier. |
void |
setURIResolver(URIResolver uriresolver)
Sets the URIResolver used to resolve hrefs. |
void |
setValidation(boolean validate)
Sets whether or not post-read validation should occur. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SchemaReader(org.xml.sax.InputSource source)
throws java.io.IOException
source - the InputSource to read the Schema from.
public SchemaReader(java.io.Reader reader,
java.lang.String filename)
throws java.io.IOException
reader - the Reader to read the Schema from.filename - for reporting errors.
public SchemaReader(java.lang.String url)
throws java.io.IOException
url - the URL string| Method Detail |
public Schema read()
throws java.io.IOException
java.io.IOExceptionpublic void setValidation(boolean validate)
validate - a boolean that when true will force
a call to Schema#validate after the schema is read.public void setEntityResolver(org.xml.sax.EntityResolver resolver)
resolver - the EntityResolver to use.public void setURIResolver(URIResolver uriresolver)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||