DLESE Tools
v1.6.0

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

java.lang.Object
  extended by 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 Summary
AsnStandardsManager(String xmlFormat, String xpath, File source)
          Constructor for the AsnStandardsManager object
 
Method Summary
 List getAvailableDocs()
          Gets the availableDocs (avaliable ASN Standards Documents) attribute of the AsnStandardsManager object
 String getDefaultDocKey()
          Gets the defaultDocKey attribute of the AsnStandardsManager object
 String getRendererTag()
          Gets the rendererTag attribute of the AsnStandardsManager object
 StandardsRegistry getStandardsRegistry()
          Gets the standardsRegistry attribute of the AsnStandardsManager object
 String getXmlFormat()
          Gets the xpath attribute of the AsnStandardsManager object
 String getXpath()
          Gets the xpath attribute of the AsnStandardsManager object
 void init(File source)
          Initialize the AsnStandardsManager by populating the standardsMap and tree from the provided AsnDocument file.
 void report()
          prints debugging information about this AsnStandardsManager
 void setAvailableDocs(List docs)
          Sets the availableDocs attribute of the AsnStandardsManager object
 void setDefaultDocKey(String docKey)
          Sets the defaultDocKey attribute of the AsnStandardsManager object
protected  void setXpath(String xpath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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


DLESE Tools
v1.6.0