public class SchemaParser
extends java.lang.Object
into a hashtable withstring string string int int space-separated strings integer string 7 4711 foo2007-10-11
SchemaNode elements.| Modifier and Type | Field and Description |
|---|---|
protected org.xml.sax.XMLReader |
parser |
| Constructor and Description |
|---|
SchemaParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
findAndReadFile(java.lang.String filename,
java.util.HashMap<Tagpath,SchemaNode> h,
java.lang.Class clazz)
Scans the classpath for the XML schema file and populates the hashtable with
SchemaNode objects.
|
void |
readFile(java.lang.String filename,
java.util.HashMap<Tagpath,SchemaNode> h)
Read in and parse an XML file, and populate a hashtable with SchemaNode
objects.
|
void |
readFile(java.net.URL schemaUrl,
java.util.HashMap<Tagpath,SchemaNode> h)
Read in and parse an XML file, and populate a hashtable with SchemaNode
objects.
|
public SchemaParser()
throws JNCException
JNCExceptionpublic void readFile(java.lang.String filename,
java.util.HashMap<Tagpath,SchemaNode> h)
throws JNCException
filename - name of file containing the schemah - The hashtable to populate.JNCException - If there is an IO or SAX parse problem.public void readFile(java.net.URL schemaUrl,
java.util.HashMap<Tagpath,SchemaNode> h)
throws JNCException
schemaUrl - URL of the schema to parseh - The hashtable to populate.JNCException - If there is an IO or SAX parse problem.public void findAndReadFile(java.lang.String filename,
java.util.HashMap<Tagpath,SchemaNode> h,
java.lang.Class clazz)
throws JNCException
ClassLoaders
the correct one can be used to locate the schema.filename - h - clazz - JNCException - if the file is not found or cannot be parsed.