Package io.odysz.semantic.DA
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.odysz.anson.IJsonable
io.odysz.anson.IJsonable.JsonableFactory
-
Field Summary
Fields inherited from class io.odysz.anson.Anson
verbose
-
Constructor Summary
ConstructorDescriptionTreeSemantics
(String stree) TreeSemantics
(String[] stree) TreeSemantics
(String[][] stree) -
Method Summary
Modifier and TypeMethodDescriptionGet alias if possible, other wise the expr itselfdbParent()
dbRecId()
Get raw expression of record id.dbSort()
dbTagCol()
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.static String[][]
parseSemantics
(String semantic) parse tree semantics like ",checked,table,recId id,parentId,itemName text,fullpath,siblingSort,false" to 2d array.static String[][]
parseSemantics
(String[] sms) tabl()
toString()
String[][]
Methods inherited from class io.odysz.anson.Anson
appendArr, appendObjStr, appendPair, escape, fromBlock, fromJson, fromJson, toBlock, toEnvelope, toJson, toJson, toMapBlock, unescape
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.odysz.anson.IJsonable
toBlock
-
Constructor Details
-
TreeSemantics
- Throws:
SAXException
-
TreeSemantics
- Throws:
SAXException
-
TreeSemantics
-
-
Method Details
-
parseSemantics
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
- Throws:
SAXException
-
toString
- Overrides:
toString
in classio.odysz.anson.Anson
-
treeSmtcs
-
tabl
-
dbRecId
Get raw expression of record id.- Returns:
- column name of sql result
-
dbParent
-
dbFullpath
-
dbSort
-
dbTagCol
-
isColChecked
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
-
alias
Get alias if possible, other wise the expr itself- Parameters:
expr
-- Returns:
- alias
-