KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > validate > SchemaReader


1 package com.thaiopensource.validate;
2
3 import com.thaiopensource.util.PropertyMap;
4 import com.thaiopensource.validate.IncorrectSchemaException;
5 import org.xml.sax.InputSource JavaDoc;
6 import org.xml.sax.SAXException JavaDoc;
7
8 import java.io.IOException JavaDoc;
9
10 /**
11  * A SchemaReader object is immutable and can thus be safely accessed
12  * concurrently from multiple threads.
13  */

14 public interface SchemaReader {
15   public static final String JavaDoc BASE_URI = "http://www.thaiopensource.com/validate/";
16   /**
17    * Creates a <code>Schema</code> by reading it from an <code>InputSource</code>.
18    *
19    * @param in the <code>InputSource</code> from which to read the schema;
20    * must not be <code>null</code>
21    * @param properties a <code>PropertyMap</code> to control the schema creation;
22    * must not be <code>null</code>
23    * @return a newly created <code>Schema</code>, never <code>null</code>
24    * @throws IOException if an I/O error occurs
25    * @throws SAXException
26    * @throws IncorrectSchemaException
27    *
28    * @see ValidateProperty
29    */

30   Schema createSchema(InputSource JavaDoc in, PropertyMap properties)
31           throws IOException JavaDoc, SAXException JavaDoc, IncorrectSchemaException;
32
33   Option getOption(String JavaDoc uri);
34 }
35
Popular Tags