DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.vocab.layout
Class VocabLayout

java.lang.Object
  extended by org.dlese.dpc.schemedit.vocab.layout.VocabLayout

public class VocabLayout
extends Object

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
VocabLayout(File file)
          Constructor for the VocabLayout object using specified file.
VocabLayout(String path)
          Constructor for the VocabLayout object
 
Method Summary
 String getCollapseExpand()
           
 String getJson()
           
 List getLayoutNodes()
          Gets the top-level layoutNodes VocabLayout tree
 List getNodeList()
          Returns all layout nodes calculated by flattening the hierarchy of layoutNodes into a list.
 String getPath()
          Gets the path of the element to be rendered using VocabLayout
 String getSmartCheckBox()
           
 String getSource()
          Gets the source attribute of the VocabLayout object
protected  void init()
          Parse the Document obtained from the vocabLayout source.
static void main(String[] args)
          The main program for the VocabLayout class
 void report()
          NOT YET DOCUMENTED
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VocabLayout

public VocabLayout(String path)
            throws Exception
Constructor for the VocabLayout object

Parameters:
path - schemaPath for the element rendered using vocabLayout
Throws:
Exception - if vocabLayout file cannot be processed

VocabLayout

public VocabLayout(File file)
            throws Exception
Constructor for the VocabLayout object using specified file.

Parameters:
file - vocabLayout file
Throws:
Exception - if vocabLayout file cannot be processed
Method Detail

init

protected void init()
             throws Exception
Parse the Document obtained from the vocabLayout source.

Throws:
Exception - NOT YET DOCUMENTED

getJson

public String getJson()

getPath

public String getPath()
Gets the path of the element to be rendered using VocabLayout

Returns:
The path value

getSource

public String getSource()
Gets the source attribute of the VocabLayout object

Returns:
The source value

getCollapseExpand

public String getCollapseExpand()

getSmartCheckBox

public String getSmartCheckBox()

getLayoutNodes

public List getLayoutNodes()
Gets the top-level layoutNodes VocabLayout tree

Returns:
The layoutNodes value

getNodeList

public List 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

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

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

DLESE Tools
v1.6.0