1
package com.thaiopensource.validate;
3
import com.thaiopensource.util.PropertyMap;
4
import org.xml.sax.InputSource;
5
import org.xml.sax.SAXException;
7
import javax.xml.transform.sax.SAXSource;
8
import java.io.IOException;
11
* A SchemaReader object is immutable and can thus be safely accessed
12
* concurrently from multiple threads.
14
public interface SchemaReader {
15
public static final String BASE_URI = "http://www.thaiopensource.com/validate/";
17
* Creates a <code>Schema</code> by reading it from an <code>InputSource</code>.
20
* @param properties a <code>PropertyMap</code> to control the schema creation;
21
* must not be <code>null</code> @return a newly created <code>Schema</code>, never <code>null</code>
22
* @throws IOException if an I/O error occurs
23
* @throws SAXException
24
* @throws IncorrectSchemaException
26
* @see ValidateProperty
28
Schema createSchema(InputSource source, PropertyMap properties)
29
throws IOException, SAXException, IncorrectSchemaException;
30
Schema createSchema(SAXSource source, PropertyMap properties)
31
throws IOException, SAXException, IncorrectSchemaException;
33
Option getOption(String uri);