Class SuggestionServiceManager
java.lang.Object
org.dlese.dpc.schemedit.config.AbstractConfigReader
org.dlese.dpc.schemedit.standards.config.SuggestionServiceManager
- All Implemented Interfaces:
Serializable
Reads a SuggestionService configuration file and provides access to the
individual configurations (each corresponding to a MetaDataFramework). The
schema for the SuggestionService file is at
http://www.dls.ucar.edu/people/ostwald/Metadata/standardsService/standardsServiceConfig.xsd
http://www.dls.ucar.edu/people/ostwald/Metadata/standardsService/standardsServiceConfig.xsd
createStandardsManager method is a factory that instantiates a StandardsManager instance for a particular framework.
SuggestionServiceManager is instantiated at startup by SetupServlet and placed in the servletContext.
- Author:
- ostwald
- See Also:
-
Field Summary
FieldsFields inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
df, docMap, nameSpaceInfo, rootElementName, source, writeOnDestroy -
Constructor Summary
ConstructorsConstructorDescriptionSuggestionServiceManager(File source) Constructor for the SuggestionServiceManager object, which reads a configuration file and creates SuggestionServiceConfig instances for each configured framework. -
Method Summary
Modifier and TypeMethodDescriptioncreateStandardsManager(MetaDataFramework framework) StandardsManager factory that uses a MetaDataFramework and a SuggestionServiceConfig instance to create the appropriate instance.Gets the configuration for the specified xmlFormat (framework)getKeys()Gets the xml_formats corresponding to the configured frameworksbooleanReturns true if the specified framework is configured.static voidThe main program for the SuggestionServiceManager classprotected static voidPrint a line to standard out.voidreport()NOT YET DOCUMENTEDMethods inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
destroy, flush, getDelocalizedDoc, getDocMap, getDocument, getNode, getNodes, getNodeText, getSource, getSourcePath, refresh, setNodeText, setSource
-
Field Details
-
debug
protected static boolean debugNOT YET DOCUMENTED
-
-
Constructor Details
-
SuggestionServiceManager
Constructor for the SuggestionServiceManager object, which reads a configuration file and creates SuggestionServiceConfig instances for each configured framework.- Parameters:
source- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
-
Method Details
-
createStandardsManager
StandardsManager factory that uses a MetaDataFramework and a SuggestionServiceConfig instance to create the appropriate instance.- Parameters:
framework- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
- Throws:
Exception- NOT YET DOCUMENTED
-
hasConfig
Returns true if the specified framework is configured.- Parameters:
xmlFormat- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
getKeys
Gets the xml_formats corresponding to the configured frameworks- Returns:
- The keys value
-
getConfig
Gets the configuration for the specified xmlFormat (framework)- Parameters:
xmlFormat- NOT YET DOCUMENTED- Returns:
- The config value
-
main
The main program for the SuggestionServiceManager class- Parameters:
args- The command line arguments
-
report
public void report()NOT YET DOCUMENTED -
prtln
Print a line to standard out.- Parameters:
s- The String to print.
-