|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object project35.mda.config.Project35ConfigurationReader
public class Project35ConfigurationReader
this is the class that holds configuration data that the XML Schema can't express. The configuration reader reads a configuration file which conforms with the XML Schema for the Project35 Configuration Tool. It reads parts of the file and stores the data in a collection of data container classes, usually ending in "..Configuration.java". Once the configuration reader is intialised, it is used by other parts of the Project35 application to lookup configuration options for application features such as menus, or schema concepts
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.
Constructor Summary | |
---|---|
Project35ConfigurationReader()
|
Method Summary | |
---|---|
void |
addComponentSchema(ComponentSchemaConfiguration componentSchemaConfiguration)
|
void |
addRecordConfiguration(RecordConfiguration recordConfiguration)
|
AttributeFieldConfiguration |
getAttributeFieldConfiguration(java.lang.String recordClassName,
java.lang.String fieldName)
|
ComponentSchemaConfiguration[] |
getComponentSchemaConfigurations()
|
SchemaConceptConfiguration |
getConfigurationRecord(java.lang.String recordClassName,
java.lang.String fieldName)
provides a lookup method for getting configuration data on a particular field in a record. |
CustomMenuConfiguration[] |
getCustomMenuConfigurations()
|
java.lang.String |
getDateFormat()
|
java.lang.String |
getDialogTitle()
|
DocumentValidationServiceConfiguration[] |
getDocumentValidationServiceConfigurations()
|
EditFieldConfiguration |
getEditFieldConfiguration(java.lang.String recordClassName,
java.lang.String fieldName)
|
EditMenuConfiguration |
getEditMenuConfiguration()
|
FileLauncher |
getFileLauncher()
|
FileMenuConfiguration |
getFileMenuConfiguration()
|
GeneralDisplayPropertiesConfiguration |
getGeneralDisplayPropertiesConfiguration()
|
HelpMenuConfiguration |
getHelpMenuConfiguration()
|
ListFieldConfiguration |
getListFieldConfiguration(java.lang.String recordClassName,
java.lang.String fieldName)
|
OptionsMenuConfiguration |
getOptionsMenuConfiguration()
|
RecordConfiguration[] |
getRecordConfigurations()
|
SessionManager |
getSessionManager()
|
java.lang.String |
getStyleSheet()
|
java.lang.String |
getTopLevelElementName()
Returns the name of the top level element in case that the schema is ambiguous that is has several global elements. |
ViewMenuConfiguration |
getViewMenuConfiguration()
|
boolean |
ignoreSchemaLocation()
|
void |
parseExtensionLauncherRegistry(java.io.InputStream extensionLauncherStream)
|
void |
parseMainConfigurationFile(java.io.InputStream inputStream,
java.net.URL documentDirectory,
java.net.URL resourceDirectory)
|
void |
parseSessionFile(java.io.File favouritesFile)
|
void |
setComponentSchemas(java.util.ArrayList componentSchemas)
|
void |
setCustomMenuConfigurations(java.util.ArrayList customMenuConfigurations)
|
void |
setDateFormat(java.lang.String dateFormat)
|
void |
setDefaultValues(RecordModel recordModel)
|
void |
setDialogTitle(java.lang.String dialogTitle)
|
void |
setDocumentValidationServiceConfigurations(java.util.ArrayList documentValidationServiceConfigurations)
|
void |
setEnableClassLoader(boolean enableClassLoader)
|
void |
setFileMenuConfiguration(FileMenuConfiguration fileMenuConfiguration)
|
void |
setGeneralDisplayPropertiesConfiguration(GeneralDisplayPropertiesConfiguration generalDisplayPropertiesConfiguration)
|
void |
setHelpMenuConfiguration(HelpMenuConfiguration helpMenuConfiguration)
|
void |
setIgnoreSchemaLocation(boolean ignoreSchemaLocation)
|
void |
setRecordConfigurations(java.util.ArrayList recordConfigurations)
|
void |
setStyleSheet(java.lang.String styleSheet)
sets the style sheet used by the configuration file |
void |
setTopLevelElementName(java.lang.String topLevelElementName)
Sets the name of the top level element in case that the schema is ambiguous that is has several global elements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Project35ConfigurationReader()
Method Detail |
---|
public ComponentSchemaConfiguration[] getComponentSchemaConfigurations()
public boolean ignoreSchemaLocation()
public FileMenuConfiguration getFileMenuConfiguration()
public EditMenuConfiguration getEditMenuConfiguration()
public OptionsMenuConfiguration getOptionsMenuConfiguration()
public ViewMenuConfiguration getViewMenuConfiguration()
public HelpMenuConfiguration getHelpMenuConfiguration()
public CustomMenuConfiguration[] getCustomMenuConfigurations()
public SchemaConceptConfiguration getConfigurationRecord(java.lang.String recordClassName, java.lang.String fieldName)
getConfigurationRecord
in interface SchemaConceptPropertyManager
recordClassName
- the record tag namefieldName
- the field tag name. For Configuration records that describe
the record-level attributes, fieldName will be "null"public AttributeFieldConfiguration getAttributeFieldConfiguration(java.lang.String recordClassName, java.lang.String fieldName)
getAttributeFieldConfiguration
in interface SchemaConceptPropertyManager
public EditFieldConfiguration getEditFieldConfiguration(java.lang.String recordClassName, java.lang.String fieldName)
getEditFieldConfiguration
in interface SchemaConceptPropertyManager
public ListFieldConfiguration getListFieldConfiguration(java.lang.String recordClassName, java.lang.String fieldName)
getListFieldConfiguration
in interface SchemaConceptPropertyManager
public java.lang.String getTopLevelElementName()
public java.lang.String getDialogTitle()
public SessionManager getSessionManager()
public FileLauncher getFileLauncher()
getFileLauncher
in interface SchemaConceptPropertyManager
public RecordConfiguration[] getRecordConfigurations()
public java.lang.String getStyleSheet()
public java.lang.String getDateFormat()
public DocumentValidationServiceConfiguration[] getDocumentValidationServiceConfigurations()
public GeneralDisplayPropertiesConfiguration getGeneralDisplayPropertiesConfiguration()
public void setDefaultValues(RecordModel recordModel)
setDefaultValues
in interface SchemaConceptPropertyManager
public void setEnableClassLoader(boolean enableClassLoader)
public void setIgnoreSchemaLocation(boolean ignoreSchemaLocation)
public void parseMainConfigurationFile(java.io.InputStream inputStream, java.net.URL documentDirectory, java.net.URL resourceDirectory) throws java.lang.Exception
java.lang.Exception
public void parseSessionFile(java.io.File favouritesFile) throws javax.xml.parsers.ParserConfigurationException, Project35Exception, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
Project35Exception
org.xml.sax.SAXException
java.io.IOException
public void parseExtensionLauncherRegistry(java.io.InputStream extensionLauncherStream) throws javax.xml.parsers.ParserConfigurationException, Project35Exception, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
Project35Exception
org.xml.sax.SAXException
java.io.IOException
public void addRecordConfiguration(RecordConfiguration recordConfiguration)
public void setRecordConfigurations(java.util.ArrayList recordConfigurations)
public void setTopLevelElementName(java.lang.String topLevelElementName)
topLevelElementName
- the name of the top level element.public void addComponentSchema(ComponentSchemaConfiguration componentSchemaConfiguration)
public void setComponentSchemas(java.util.ArrayList componentSchemas)
public void setHelpMenuConfiguration(HelpMenuConfiguration helpMenuConfiguration)
public void setFileMenuConfiguration(FileMenuConfiguration fileMenuConfiguration)
public void setDateFormat(java.lang.String dateFormat)
public void setStyleSheet(java.lang.String styleSheet)
public void setDialogTitle(java.lang.String dialogTitle)
public void setDocumentValidationServiceConfigurations(java.util.ArrayList documentValidationServiceConfigurations)
public void setGeneralDisplayPropertiesConfiguration(GeneralDisplayPropertiesConfiguration generalDisplayPropertiesConfiguration)
public void setCustomMenuConfigurations(java.util.ArrayList customMenuConfigurations)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |