Class SuggestionServiceManager

java.lang.Object
org.dlese.dpc.schemedit.config.AbstractConfigReader
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:
  • Field Details

    • debug

      protected static boolean debug
      NOT YET DOCUMENTED
  • Constructor Details

    • 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 Details

    • 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.