Class AsnStandardsManager

java.lang.Object
org.dlese.dpc.schemedit.standards.asn.AsnStandardsManager
All Implemented Interfaces:
StandardsManager
Direct Known Subclasses:
DynaStandardsManager, ResQualStandardsManager

public class AsnStandardsManager extends Object implements StandardsManager
Provides acess to a single ASN Standards Document (and individual standards contained within) via the AsnDocument and AsnNode classes. Provides lists of AsnStandardsNodes for use in UI JSP.
Author:
ostwald
  • Constructor Details

    • AsnStandardsManager

      public AsnStandardsManager(String xmlFormat, String xpath, File source) throws Exception
      Constructor for the AsnStandardsManager object
      Parameters:
      xmlFormat - format of framework for this standardsManager
      xpath - field for which standards are managed
      source - AsnDocument file
      Throws:
      Exception - if AsnDocument file cannot be processed
  • Method Details

    • init

      public void init(File source) throws Exception
      Initialize the AsnStandardsManager by populating the standardsMap and tree from the provided AsnDocument file.
      Parameters:
      source - AsnDocument file
      Throws:
      Exception - if the source file cannot be processed
    • getStandardsRegistry

      public StandardsRegistry getStandardsRegistry()
      Gets the standardsRegistry attribute of the AsnStandardsManager object
      Returns:
      The standardsRegistry value
    • getDefaultDocKey

      public String getDefaultDocKey()
      Gets the defaultDocKey attribute of the AsnStandardsManager object
      Returns:
      The defaultDocKey value
    • setDefaultDocKey

      public void setDefaultDocKey(String docKey)
      Sets the defaultDocKey attribute of the AsnStandardsManager object
      Parameters:
      docKey - The new defaultDocKey value
    • getAvailableDocs

      public List getAvailableDocs()
      Gets the availableDocs (avaliable ASN Standards Documents) attribute of the AsnStandardsManager object
      Returns:
      The availableDocs value
    • setAvailableDocs

      public void setAvailableDocs(List docs)
      Sets the availableDocs attribute of the AsnStandardsManager object
      Parameters:
      docs - The new availableDocs value
    • getXmlFormat

      public String getXmlFormat()
      Gets the xpath attribute of the AsnStandardsManager object
      Specified by:
      getXmlFormat in interface StandardsManager
      Returns:
      The xpath value
    • getXpath

      public String getXpath()
      Gets the xpath attribute of the AsnStandardsManager object
      Specified by:
      getXpath in interface StandardsManager
      Returns:
      The xpath value
    • setXpath

      protected void setXpath(String xpath)
    • getRendererTag

      public String getRendererTag()
      Gets the rendererTag attribute of the AsnStandardsManager object
      Specified by:
      getRendererTag in interface StandardsManager
      Returns:
      The rendererTag value
    • report

      public void report()
      prints debugging information about this AsnStandardsManager