Class CommCoreStandardsDocument
java.lang.Object
org.dlese.dpc.schemedit.standards.commcore.CommCoreStandardsDocument
- All Implemented Interfaces:
StandardsDocument
Provides acess to a single CommCore Standards Document (and individual standards
contained within) via the
StdDocument and Standard
classes. Provides lists of StandardsNodes for use in UI JSP.- Author:
- ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionCommCoreStandardsDocument(File source) Constructor for the CommCoreStandardsDocument objectCommCoreStandardsDocument(StdDocument stdDoc) Constructor for the CommCoreStandardsDocument object -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()NOT YET DOCUMENTEDGets the author attribute of the CommCoreStandardsDocument objectGets the created attribute of the CommCoreStandardsDocument objectGets the docKey attribute of the CommCoreStandardsDocument objectgetId()Gets the id attribute of the CommCoreStandardsDocument objectintGets the maxNodes attribute of the CommCoreStandardsDocument objectReturns a flat list containing all StandardsNodes in the standardsTree.Gets the rendererTag attribute of the CommCoreStandardsDocument objectGets the rootNode attribute of the CommCoreStandardsDocument objectgetStandard(String id) Get a StandardNode by idgetTitle()Gets the title attribute of the CommCoreStandardsDocument objectgetTopic()Gets the topic attribute of the CommCoreStandardsDocument objectvoidinit(StdDocument stdDoc) Initialize the CommCoreStandardsDocument by populating the standardsMap and treestatic voidThe main program for the CommCoreStandardsDocument classvoidDescription of the MethodvoidWalk down a hierarchical tree of StandardsNodes and print an indented displayvoidsetMaxNodes(int max) Sets the maxNodes attribute of the CommCoreStandardsDocument objectintsize()NOT YET DOCUMENTED
-
Constructor Details
-
CommCoreStandardsDocument
Constructor for the CommCoreStandardsDocument object- Parameters:
source- StdDocument file- Throws:
Exception- if StdDocument file cannot be processed
-
CommCoreStandardsDocument
Constructor for the CommCoreStandardsDocument object- Parameters:
stdDoc- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
-
Method Details
-
init
Initialize the CommCoreStandardsDocument by populating the standardsMap and tree- Parameters:
stdDoc- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
getId
Gets the id attribute of the CommCoreStandardsDocument object- Returns:
- The id value
-
getAuthor
Gets the author attribute of the CommCoreStandardsDocument object- Specified by:
getAuthorin interfaceStandardsDocument- Returns:
- The author value
-
getTopic
Gets the topic attribute of the CommCoreStandardsDocument object- Specified by:
getTopicin interfaceStandardsDocument- Returns:
- The topic value
-
getCreated
Gets the created attribute of the CommCoreStandardsDocument object- Returns:
- The created value
-
getTitle
Gets the title attribute of the CommCoreStandardsDocument object- Returns:
- The title value
-
getDocKey
Gets the docKey attribute of the CommCoreStandardsDocument object- Returns:
- The docKey value
-
getRendererTag
Gets the rendererTag attribute of the CommCoreStandardsDocument object- Returns:
- The rendererTag value
-
setMaxNodes
public void setMaxNodes(int max) Sets the maxNodes attribute of the CommCoreStandardsDocument object- Parameters:
max- The new maxNodes value
-
getMaxNodes
public int getMaxNodes()Gets the maxNodes attribute of the CommCoreStandardsDocument object- Returns:
- The maxNodes value
-
getStandard
Get a StandardNode by id- Specified by:
getStandardin interfaceStandardsDocument- Parameters:
id- NOT YET DOCUMENTED- Returns:
- The standard value
-
getRootNode
Gets the rootNode attribute of the CommCoreStandardsDocument object- Specified by:
getRootNodein interfaceStandardsDocument- Returns:
- The rootNode value
-
printStandardsDocument
public void printStandardsDocument()Walk down a hierarchical tree of StandardsNodes and print an indented display -
getNodeList
Returns a flat list containing all StandardsNodes in the standardsTree.- Specified by:
getNodeListin interfaceStandardsDocument- Returns:
- The nodeList value
-
printNodeList
public void printNodeList()Description of the Method -
size
public int size()NOT YET DOCUMENTED- Specified by:
sizein interfaceStandardsDocument- Returns:
- NOT YET DOCUMENTED
-
main
The main program for the CommCoreStandardsDocument class- Parameters:
args- The command line arguments- Throws:
Exception- NOT YET DOCUMENTED
-
destroy
public void destroy()NOT YET DOCUMENTED- Specified by:
destroyin interfaceStandardsDocument
-