DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.standards.config
Class SuggestionServiceManager

java.lang.Object
  extended by org.dlese.dpc.schemedit.config.AbstractConfigReader
      extended by org.dlese.dpc.schemedit.standards.config.SuggestionServiceManager
All Implemented Interfaces:
Serializable

public class SuggestionServiceManager
extends AbstractConfigReader

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

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:
Serialized Form

Field Summary
protected static boolean debug
          NOT YET DOCUMENTED
 
Fields inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
df, docMap, nameSpaceInfo, rootElementName, source, writeOnDestroy
 
Constructor Summary
SuggestionServiceManager(File source)
          Constructor for the SuggestionServiceManager object, which reads a configuration file and creates SuggestionServiceConfig instances for each configured framework.
 
Method Summary
 StandardsManager createStandardsManager(MetaDataFramework framework)
          StandardsManager factory that uses a MetaDataFramework and a SuggestionServiceConfig instance to create the appropriate instance.
 SuggestionServiceConfig getConfig(String xmlFormat)
          Gets the configuration for the specified xmlFormat (framework)
 Set getKeys()
          Gets the xml_formats corresponding to the configured frameworks
 boolean hasConfig(String xmlFormat)
          Returns true if the specified framework is configured.
static void main(String[] args)
          The main program for the SuggestionServiceManager class
protected static void prtln(String s)
          Print a line to standard out.
 void report()
          NOT YET DOCUMENTED
 
Methods inherited from class org.dlese.dpc.schemedit.config.AbstractConfigReader
destroy, flush, getDelocalizedDoc, getDocMap, getDocument, getNode, getNodes, getNodeText, getSource, getSourcePath, refresh, setNodeText, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected static boolean debug
NOT YET DOCUMENTED

Constructor Detail

SuggestionServiceManager

public SuggestionServiceManager(File source)
                         throws Exception
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 Detail

createStandardsManager

public StandardsManager createStandardsManager(MetaDataFramework framework)
                                        throws Exception
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

public boolean hasConfig(String xmlFormat)
Returns true if the specified framework is configured.

Parameters:
xmlFormat - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED

getKeys

public Set getKeys()
Gets the xml_formats corresponding to the configured frameworks

Returns:
The keys value

getConfig

public SuggestionServiceConfig getConfig(String xmlFormat)
Gets the configuration for the specified xmlFormat (framework)

Parameters:
xmlFormat - NOT YET DOCUMENTED
Returns:
The config value

main

public static void main(String[] args)
The main program for the SuggestionServiceManager class

Parameters:
args - The command line arguments

report

public void report()
NOT YET DOCUMENTED


prtln

protected static void prtln(String s)
Print a line to standard out.

Parameters:
s - The String to print.

DLESE Tools
v1.6.0