DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.standards.asn
Class DynaStandardsManager

java.lang.Object
  extended by org.dlese.dpc.schemedit.standards.asn.AsnStandardsManager
      extended by 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 Summary
DynaStandardsManager(String xmlFormat, String xpath, File standardsDirectory, String defaultDocKey)
          Constructor for the DynaStandardsManager object, which reads all files within (recursively) the specified "standardsDirectory".
 
Method Summary
 String getStandardsDirectory()
          Gets the standardsDirectory attribute of the DynaStandardsManager object
 void init(File standardsDirectory)
          Initialize the standardsRegistry and availableDocs attributes for this Manager.
static void main(String[] args)
          The main program for the DynaStandardsManager class
 void report()
          Debugging
 
Methods inherited from class org.dlese.dpc.schemedit.standards.asn.AsnStandardsManager
getAvailableDocs, getDefaultDocKey, getRendererTag, getStandardsRegistry, getXmlFormat, getXpath, setAvailableDocs, setDefaultDocKey, setXpath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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:
xpath - xpath of instanceDoc to which standards are assigned
xmlFormat - format of framework for this helper
standardsDirectory - path to directory containing standardsDocs
defaultDocKey - as configured for this helper
Throws:
Exception - if AsnDocument files cannot be processed
Method Detail

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

DLESE Tools
v1.6.0