Class VocabLayout

java.lang.Object
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 Details

    • 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 Details

    • 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