Public Member Functions

cl.utfsm.cdbChecker.CDBSchemasResolver Class Reference

Inherits org::xml::sax::EntityResolver.

List of all members.

Public Member Functions

 CDBSchemasResolver (CDBChecker checker, String XSDPath)
InputSource resolveEntity (String publicID, String systemID)
String findSchemaFile (String schemaName)

Constructor & Destructor Documentation

cl.utfsm.cdbChecker.CDBSchemasResolver.CDBSchemasResolver ( CDBChecker  checker,
String  XSDPath 
)

Instantiates a CDBSchemasResolver and initialises the array of directories where to search for schema files.


Member Function Documentation

String cl.utfsm.cdbChecker.CDBSchemasResolver.findSchemaFile ( String  schemaName  ) 

Finds a schema file, is exists, in the directories configured at construction time. Returns null if the schema file cannot be found

TODO:

  • Code could be optimised keeping a map of the found schema files, since I see that the method is called many times for the same file.
  • We should add some diagnostic, but calling directly println would interleave with the output from other parts of the code.

References cl.utfsm.cdbChecker.CDBChecker.setGlobalErrorFlag().

Referenced by cl.utfsm.cdbChecker.CDBSchemasResolver.resolveEntity().

InputSource cl.utfsm.cdbChecker.CDBSchemasResolver.resolveEntity ( String  publicID,
String  systemID 
)

Resolves and entity. Called whenever a schema file needs to be mapped into a real file

References cl.utfsm.cdbChecker.CDBSchemasResolver.findSchemaFile().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties