Class DatasetCfg.TreeSemantics

java.lang.Object
io.odysz.anson.Anson
io.odysz.semantic.DA.DatasetCfg.TreeSemantics
All Implemented Interfaces:
io.odysz.anson.IJsonable
Enclosing class:
DatasetCfg

public static class DatasetCfg.TreeSemantics extends io.odysz.anson.Anson
Data structure of s-tree configuration.
Author:
odys-z@github.com
  • Constructor Details

  • Method Details

    • parseSemantics

      public static String[][] parseSemantics(String semantic) throws SAXException
      parse tree semantics like ",checked,table,recId id,parentId,itemName text,fullpath,siblingSort,false" to 2d array.
      Parameters:
      semantic -
      Returns:
      [0:[checked, null], 1:[tabl, null], 2:[areaId, id], ...]
      Throws:
      SAXException
    • parseSemantics

      public static String[][] parseSemantics(String[] sms) throws SAXException
      Throws:
      SAXException
    • toString

      public String toString()
      Overrides:
      toString in class io.odysz.anson.Anson
    • treeSmtcs

      public String[][] treeSmtcs()
    • tabl

      public String tabl()
    • dbRecId

      public String dbRecId()
      Get raw expression of record id.
      Returns:
      column name of sql result
    • dbParent

      public String dbParent()
    • dbFullpath

      public String dbFullpath()
    • dbSort

      public String dbSort()
    • dbTagCol

      public String dbTagCol()
    • isColChecked

      public boolean isColChecked(String col)
      Is value of col should changed to boolean.
      If the semantics configuration's first field is this col's name, the the value should changed into boolean.
      Parameters:
      col -
      Returns:
      true: this column should covert to boolean.
    • aliasParent

      public String aliasParent()
    • alias

      public String alias(String expr)
      Get alias if possible, other wise the expr itself
      Parameters:
      expr -
      Returns:
      alias