wiki:DavidBalch
Last modified 03/03/05 11:38:12

David Balch

 david.balch@conted.ox.ac.uk

Notes

Reload schema loading

An excerpt from  Reload docs:

  1. The XML Schema is loaded and parsed by Castor and wrapped in a ReloadSchema? class consisting of ReloadSchemaElement? and ReloadSchemaAttribute? classes.
  2. The Associated Profile and Helper files are loaded by JDOM and wrapped in ReloadSchemaHelper? and ReloadSchemaVocabulary? classes.
  3. The classes created in stages 1 & 2 are wrapped in a master class, ReloadSchemaController?. This class is the glue that binds together the Base Schema and the additional AP Helper files. It acts as the template for an Instance document. It may be extended to add additional functionality such as interface methods for a UI.
  4. Thus each new or edited instance document is based on, and bound to, a ReloadSchemaController? class instance where the constraints of both the Base Schema and the additional AP helper files become visible via the UI.

NB It looks like the class names have changed, with "Reload" at the front being dropped.

Of interest for using Reload code

/editor/src/uk/ac/reload/editor/contentpackaging/xml/ContentPackage.java
"The Content Package Class" - contains the Constructor for a new CP.

/editor/src/uk/ac/reload/editor/contentpackaging/editor/manifestview/ManifestTree.java
"A Viewer Tree that will display the CP Manifest" handles updating menus, etc. in swing GUI.

/moonunit/src/uk/ac/reload/moonunit/contentpackaging/CP_Core.java
"Core IMS Content Package Methods and Functionality" - contains methods for finding referenced elements, getting a list of resources for a given element.

/editor/src/uk/ac/reload/editor/messages.properties
Strings file for menu and dialogue text, etc.

/editor/src/uk/ac/reload/editor/EditorHandler.java
Place to add editor entries, so that they appear in the File>New menu

/editor/src/uk/ac/reload/editor/contentpackaging
Editorhandler and viewer for CP. Might be able to copy it and reuse as "/editor/src/uk/ac/reload/editor/wcker"

/editor/src/uk/ac/reload/editor/contentpackaging/htmlparser
"used to parse a web page and find all dependent links contained within it relative to a given root folder."