net.sf.bvalid.catalog
Class MemorySchemaCatalog
java.lang.Object
net.sf.bvalid.catalog.MemorySchemaCatalog
- All Implemented Interfaces:
- SchemaCatalog
public class MemorySchemaCatalog
- extends java.lang.Object
- implements SchemaCatalog
A SchemaCatalog
based entirely in memory.
- Author:
- cwilper@cs.cornell.edu
Method Summary |
boolean |
contains(java.lang.String uri)
|
java.io.InputStream |
get(java.lang.String uri)
Get the schema InputStream if in the catalog, else return null. |
java.util.Iterator |
listURIs()
|
void |
put(java.lang.String uri,
java.io.InputStream in)
|
void |
remove(java.lang.String uri)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemorySchemaCatalog
public MemorySchemaCatalog()
listURIs
public java.util.Iterator listURIs()
- Specified by:
listURIs
in interface SchemaCatalog
contains
public boolean contains(java.lang.String uri)
- Specified by:
contains
in interface SchemaCatalog
get
public java.io.InputStream get(java.lang.String uri)
- Description copied from interface:
SchemaCatalog
- Get the schema InputStream if in the catalog, else return null.
- Specified by:
get
in interface SchemaCatalog
put
public void put(java.lang.String uri,
java.io.InputStream in)
throws ValidatorException
- Specified by:
put
in interface SchemaCatalog
- Throws:
ValidatorException
remove
public void remove(java.lang.String uri)
- Specified by:
remove
in interface SchemaCatalog