Class VocabLayout
java.lang.Object
org.dlese.dpc.schemedit.vocab.layout.VocabLayout
Class to read a "groups file" for a single schemaNode and create the
LayoutNodes representing it's controlled vocab items.
- Author:
- Jonathan Ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionVocabLayout(File file) Constructor for the VocabLayout object using specified file.VocabLayout(String path) Constructor for the VocabLayout object -
Method Summary
Modifier and TypeMethodDescriptiongetJson()Gets the top-level layoutNodes VocabLayout treeReturns all layout nodes calculated by flattening the hierarchy of layoutNodes into a list.getPath()Gets the path of the element to be rendered using VocabLayoutGets the source attribute of the VocabLayout objectprotected voidinit()Parse the Document obtained from the vocabLayout source.static voidThe main program for the VocabLayout classvoidreport()NOT YET DOCUMENTED
-
Constructor Details
-
VocabLayout
Constructor for the VocabLayout object- Parameters:
path- schemaPath for the element rendered using vocabLayout- Throws:
Exception- if vocabLayout file cannot be processed
-
VocabLayout
Constructor for the VocabLayout object using specified file.- Parameters:
file- vocabLayout file- Throws:
Exception- if vocabLayout file cannot be processed
-
-
Method Details
-
init
Parse the Document obtained from the vocabLayout source.- Throws:
Exception- NOT YET DOCUMENTED
-
getJson
-
getPath
Gets the path of the element to be rendered using VocabLayout- Returns:
- The path value
-
getSource
Gets the source attribute of the VocabLayout object- Returns:
- The source value
-
getCollapseExpand
-
getSmartCheckBox
-
getLayoutNodes
Gets the top-level layoutNodes VocabLayout tree- Returns:
- The layoutNodes value
-
getNodeList
Returns all layout nodes calculated by flattening the hierarchy of layoutNodes into a list.- Returns:
- The nodeList value
-
report
public void report()NOT YET DOCUMENTED -
main
The main program for the VocabLayout class- Parameters:
args- The command line arguments- Throws:
Exception- NOT YET DOCUMENTED
-