Class TeachersDomainLexicon
java.lang.Object
org.dlese.dpc.schemedit.standards.td.TeachersDomainLexicon
- All Implemented Interfaces:
StandardsDocument
Reads a file representing the Teacher's Domain Lexicon XML as a Standards
Document (and individual lexicon terms contained within) via the
StdDocument and Standard classes. Provides lists of StandardsNodes
for use in UI JSP.- Author:
- ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionTeachersDomainLexicon(File source) Constructor for the TeachersDomainLexicon objectTeachersDomainLexicon(StdDocument stdDoc) Constructor for the TeachersDomainLexicon object -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()NOT YET DOCUMENTEDGets the author attribute of the TeachersDomainLexicon objectGets the created attribute of the TeachersDomainLexicon objectGets the docKey attribute of the TeachersDomainLexicon objectgetId()Gets the id attribute of the TeachersDomainLexicon objectintGets the maxNodes attribute of the TeachersDomainLexicon objectReturns a flat list containing all StandardsNodes in the standardsTree.Gets the rendererTag attribute of the TeachersDomainLexicon objectGets the rootNode attribute of the TeachersDomainLexicon objectgetStandard(String id) Get a StandardNode by idgetTitle()Gets the title attribute of the TeachersDomainLexicon objectgetTopic()Gets the topic attribute of the TeachersDomainLexicon objectvoidinit(StdDocument stdDoc) Initialize the TeachersDomainLexicon by populating the standardsMap and treestatic voidThe main program for the TeachersDomainLexicon classvoidDescription of the MethodvoidWalk down a hierarchical tree of StandardsNodes and print an indented displayvoidsetMaxNodes(int max) Sets the maxNodes attribute of the TeachersDomainLexicon objectintsize()NOT YET DOCUMENTED
-
Constructor Details
-
TeachersDomainLexicon
Constructor for the TeachersDomainLexicon object- Parameters:
source- StdDocument file- Throws:
Exception- if StdDocument file cannot be processed
-
TeachersDomainLexicon
Constructor for the TeachersDomainLexicon object- Parameters:
stdDoc- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
-
Method Details
-
init
Initialize the TeachersDomainLexicon by populating the standardsMap and tree- Parameters:
stdDoc- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
getId
Gets the id attribute of the TeachersDomainLexicon object- Returns:
- The id value
-
getAuthor
Gets the author attribute of the TeachersDomainLexicon object- Specified by:
getAuthorin interfaceStandardsDocument- Returns:
- The author value
-
getTopic
Gets the topic attribute of the TeachersDomainLexicon object- Specified by:
getTopicin interfaceStandardsDocument- Returns:
- The topic value
-
getCreated
Gets the created attribute of the TeachersDomainLexicon object- Returns:
- The created value
-
getTitle
Gets the title attribute of the TeachersDomainLexicon object- Returns:
- The title value
-
getDocKey
Gets the docKey attribute of the TeachersDomainLexicon object- Returns:
- The docKey value
-
getRendererTag
Gets the rendererTag attribute of the TeachersDomainLexicon object- Returns:
- The rendererTag value
-
setMaxNodes
public void setMaxNodes(int max) Sets the maxNodes attribute of the TeachersDomainLexicon object- Parameters:
max- The new maxNodes value
-
getMaxNodes
public int getMaxNodes()Gets the maxNodes attribute of the TeachersDomainLexicon 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 TeachersDomainLexicon 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 TeachersDomainLexicon class- Parameters:
args- The command line arguments- Throws:
Exception- NOT YET DOCUMENTED
-
destroy
public void destroy()NOT YET DOCUMENTED- Specified by:
destroyin interfaceStandardsDocument
-