= David Balch = [mailto:david.balch@conted.ox.ac.uk david.balch@conted.ox.ac.uk] == Notes == === Reload schema loading === An excerpt from [http://waterbuck.conted.ox.ac.uk/cgi-bin/trac.cgi/file/repo1/trunk/docs/developer/RELOAD%20-%20A%20Schema-driven%20approach.doc?format=raw Reload docs]: 1. The XML Schema is loaded and parsed by Castor and wrapped in a ReloadSchema class consisting of ReloadSchemaElement and ReloadSchemaAttribute classes. 1. The Associated Profile and Helper files are loaded by JDOM and wrapped in ReloadSchemaHelper and ReloadSchemaVocabulary classes. 1. 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. 1. 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'''[[BR]] "The Content Package Class" - contains the Constructor for a new CP. '''/editor/src/uk/ac/reload/editor/contentpackaging/editor/manifestview/ManifestTree.java'''[[BR]] "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'''[[BR]] "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'''[[BR]] Strings file for menu and dialogue text, etc. '''/editor/src/uk/ac/reload/editor/EditorHandler.java'''[[BR]] Place to add editor entries, so that they appear in the File>New menu '''/editor/src/uk/ac/reload/editor/contentpackaging'''[[BR]] 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'''[[BR]] "used to parse a web page and find all dependent links contained within it relative to a given root folder." '''[[BR]] '''[[BR]] '''[[BR]]