public class CDBSchemasResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver
| Constructor and Description |
|---|
CDBSchemasResolver(CDBChecker checker,
java.lang.String XSDPath)
Instantiates a CDBSchemasResolver and initialises the array of directories where to search for schema files.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
findSchemaFile(java.lang.String schemaName)
Finds a schema file, if it exists, in the directories configured at construction time.
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicID,
java.lang.String systemID)
Resolves an entity.
|
void |
setResolveOnlyHttp(boolean resolveOnlyHttp) |
public CDBSchemasResolver(CDBChecker checker, java.lang.String XSDPath)
public void setResolveOnlyHttp(boolean resolveOnlyHttp)
public org.xml.sax.InputSource resolveEntity(java.lang.String publicID,
java.lang.String systemID)
resolveEntity in interface org.xml.sax.EntityResolverpublic java.lang.String findSchemaFile(java.lang.String schemaName)
TODO: Check if it is OK for this method to set the global error flag of CDBChecker, which is the only reason why this class keeps the checker reference...
schemaName - Simple name of schema file. e.g. "Fridge.xsd"