|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SchemaReaderInterface
This interface defines methods for reading an XML schema and creating a collection of RecordModels, which can be retrieved from the RecordModelFactory. Each RecordModel contains a ListModel which in turn contains other RecordModels and EditFieldModels. An implementation should map from a schema to the RecordModel as follows:
Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.
Method Summary | |
---|---|
Project35ConfigurationReader |
getConfigurationReader()
gets the configuration file reader |
RecordModelFactory |
getRecordModelFactory()
Returns the record structures created from reading the schema |
RecordModel |
getTopLevelRecord()
|
java.util.List |
getWarnings()
Returns the warnings created by parsed schema. |
boolean |
hasWarnings()
Returns whether the parsed schema created any warnings. |
void |
initialiseConfigurationReader(java.io.InputStream mainConfigurationStream,
java.net.URL documentDirectory,
java.net.URL resourceDirectory,
java.io.InputStream extensionLauncherStream,
java.io.File favouritesFile)
Initialises the configuration of the schema reader. |
void |
parseDocument(java.net.URL schemaURL)
Parses the schema at the given URL. |
void |
setEnableClassLoader(boolean enableClassLoader)
determines whether class loader should be enabled; this is important when Project35 is deployed within another application or not |
void |
setIgnoreTopLevelElement(boolean ignoreTopLevelElement)
|
void |
setTopLevelElementName(java.lang.String topLevelElementName)
|
Method Detail |
---|
void initialiseConfigurationReader(java.io.InputStream mainConfigurationStream, java.net.URL documentDirectory, java.net.URL resourceDirectory, java.io.InputStream extensionLauncherStream, java.io.File favouritesFile) throws Project35Exception
mainConfigurationStream
- The input stream of the configuration.documentDirectory
- The document directory of the desired model.resourceDirectory
- The resource directory of the desired model.extensionLauncherStream
- favouritesFile
-
Project35Exception
void parseDocument(java.net.URL schemaURL) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, Project35Exception, java.io.IOException
schemaURL
- The schema location.
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
Project35Exception
java.io.IOException
RecordModel getTopLevelRecord()
boolean hasWarnings()
java.util.List getWarnings()
RecordModelFactory getRecordModelFactory()
Project35ConfigurationReader getConfigurationReader()
void setEnableClassLoader(boolean enableClassLoader)
void setIgnoreTopLevelElement(boolean ignoreTopLevelElement)
void setTopLevelElementName(java.lang.String topLevelElementName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |