DLESE Tools
v1.6.0

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

java.lang.Object
  extended by org.dlese.dpc.schemedit.standards.asn.AsnStandardsDocument
All Implemented Interfaces:
StandardsDocument

public class AsnStandardsDocument
extends Object
implements StandardsDocument

Provides acess to a single ASN Standards Document (and individual standards contained within) via the AsnDocument and AsnStandard classes. Provides lists of AsnStandardsNodes for use in UI JSP.

Author:
ostwald

Constructor Summary
AsnStandardsDocument(AsnDocument asnDoc)
          Constructor for the AsnStandardsDocument object
AsnStandardsDocument(File source)
          Constructor for the AsnStandardsDocument object
 
Method Summary
 void destroy()
          NOT YET DOCUMENTED
 String getAuthor()
          Gets the author attribute of the AsnStandardsDocument object
 String getCreated()
          Gets the created attribute of the AsnStandardsDocument object
 String getDocKey()
          Gets the docKey attribute of the AsnStandardsDocument object
 String getId()
          Gets the id attribute of the AsnStandardsDocument object
 int getMaxNodes()
          Gets the maxNodes attribute of the AsnStandardsDocument object
 List getNodeList()
          Returns a flat list containing all AsnStandardsNodes in the standardsTree.
 String getRendererTag()
          Gets the rendererTag attribute of the AsnStandardsDocument object
 AsnStandardsNode getRootNode()
          Gets the rootNode attribute of the AsnStandardsDocument object
 AsnStandardsNode getStandard(String id)
          Get a StandardNode by id
 String getTitle()
          Gets the title attribute of the AsnStandardsDocument object
 String getTopic()
          Gets the topic attribute of the AsnStandardsDocument object
 void init(AsnDocument asnDoc)
          Initialize the AsnStandardsDocument by populating the standardsMap and tree
static void main(String[] args)
          The main program for the AsnStandardsDocument class
 void printNodeList()
          Description of the Method
 void printStandardsDocument()
          Walk down a hierarchical tree of AsnStandardsNodes and print an indented display
 void setMaxNodes(int max)
          Sets the maxNodes attribute of the AsnStandardsDocument object
 int size()
          NOT YET DOCUMENTED
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsnStandardsDocument

public AsnStandardsDocument(File source)
                     throws Exception
Constructor for the AsnStandardsDocument object

Parameters:
source - AsnDocument file
Throws:
Exception - if AsnDocument file cannot be processed

AsnStandardsDocument

public AsnStandardsDocument(AsnDocument asnDoc)
                     throws Exception
Constructor for the AsnStandardsDocument object

Parameters:
asnDoc - NOT YET DOCUMENTED
Throws:
Exception - NOT YET DOCUMENTED
Method Detail

init

public void init(AsnDocument asnDoc)
          throws Exception
Initialize the AsnStandardsDocument by populating the standardsMap and tree

Parameters:
asnDoc - NOT YET DOCUMENTED
Throws:
Exception - NOT YET DOCUMENTED

getId

public String getId()
Gets the id attribute of the AsnStandardsDocument object

Returns:
The id value

getAuthor

public String getAuthor()
Gets the author attribute of the AsnStandardsDocument object

Specified by:
getAuthor in interface StandardsDocument
Returns:
The author value

getTopic

public String getTopic()
Gets the topic attribute of the AsnStandardsDocument object

Specified by:
getTopic in interface StandardsDocument
Returns:
The topic value

getCreated

public String getCreated()
Gets the created attribute of the AsnStandardsDocument object

Returns:
The created value

getTitle

public String getTitle()
Gets the title attribute of the AsnStandardsDocument object

Returns:
The title value

getDocKey

public String getDocKey()
Gets the docKey attribute of the AsnStandardsDocument object

Returns:
The docKey value

getRendererTag

public String getRendererTag()
Gets the rendererTag attribute of the AsnStandardsDocument object

Returns:
The rendererTag value

setMaxNodes

public void setMaxNodes(int max)
Sets the maxNodes attribute of the AsnStandardsDocument object

Parameters:
max - The new maxNodes value

getMaxNodes

public int getMaxNodes()
Gets the maxNodes attribute of the AsnStandardsDocument object

Returns:
The maxNodes value

getStandard

public AsnStandardsNode getStandard(String id)
Get a StandardNode by id

Specified by:
getStandard in interface StandardsDocument
Parameters:
id - NOT YET DOCUMENTED
Returns:
The standard value

getRootNode

public AsnStandardsNode getRootNode()
Gets the rootNode attribute of the AsnStandardsDocument object

Specified by:
getRootNode in interface StandardsDocument
Returns:
The rootNode value

printStandardsDocument

public void printStandardsDocument()
Walk down a hierarchical tree of AsnStandardsNodes and print an indented display


getNodeList

public List getNodeList()
Returns a flat list containing all AsnStandardsNodes in the standardsTree.

Specified by:
getNodeList in interface StandardsDocument
Returns:
The nodeList value

printNodeList

public void printNodeList()
Description of the Method


size

public int size()
NOT YET DOCUMENTED

Specified by:
size in interface StandardsDocument
Returns:
NOT YET DOCUMENTED

main

public static void main(String[] args)
                 throws Exception
The main program for the AsnStandardsDocument class

Parameters:
args - The command line arguments
Throws:
Exception - NOT YET DOCUMENTED

destroy

public void destroy()
NOT YET DOCUMENTED

Specified by:
destroy in interface StandardsDocument

DLESE Tools
v1.6.0