Class DynaStandardsManager

java.lang.Object
org.dlese.dpc.schemedit.standards.asn.AsnStandardsManager
org.dlese.dpc.schemedit.standards.asn.DynaStandardsManager
All Implemented Interfaces:
StandardsManager

public class DynaStandardsManager extends AsnStandardsManager
Manages a set of Standards Documents (e.g. all standards files within a specified directory) as AsnStandardsDocuments instances and provides access to Documents and Standards Nodes within the current Standards document.
Author:
ostwald
  • Constructor Details

    • DynaStandardsManager

      public DynaStandardsManager(String xmlFormat, String xpath, File standardsDirectory, String defaultDocKey) throws Exception
      Constructor for the DynaStandardsManager object, which reads all files within (recursively) the specified "standardsDirectory".
      Parameters:
      xmlFormat - format of framework for this helper
      xpath - xpath of instanceDoc to which standards are assigned
      standardsDirectory - path to directory containing standardsDocs
      defaultDocKey - as configured for this helper
      Throws:
      Exception - if AsnDocument files cannot be processed
  • Method Details

    • init

      public void init(File standardsDirectory) throws Exception
      Initialize the standardsRegistry and availableDocs attributes for this Manager.
      Overrides:
      init in class AsnStandardsManager
      Parameters:
      standardsDirectory - directory holding standard docs
      Throws:
      Exception - if standards docs cannot be loaded into StandardsRegistry
    • getStandardsDirectory

      public String getStandardsDirectory()
      Gets the standardsDirectory attribute of the DynaStandardsManager object
      Returns:
      The standardsDirectory value
    • main

      public static void main(String[] args) throws Exception
      The main program for the DynaStandardsManager class
      Parameters:
      args - The command line arguments
      Throws:
      Exception
    • report

      public void report()
      Debugging
      Overrides:
      report in class AsnStandardsManager