Package io.odysz.semantic.DA
Class TreeIndenode
java.lang.Object
io.odysz.anson.Anson
io.odysz.semantic.DA.TreeIndenode
- All Implemented Interfaces:
io.odysz.anson.IJsonable
- Direct Known Subclasses:
DatasetCfg.AnTreeNode
public class TreeIndenode
extends io.odysz.anson.Anson
Tree node supporting indent for rendering tree structure.
TODO to be moved to Semantic.DA
- Author:
- Ody Z
-
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
-
Method Summary
Modifier and TypeMethodDescriptionchild
(int cx) child
(TreeIndenode ch) List<?>
children()
void
node: { children: arrChildren<List> }children_
(List<? extends TreeIndenode> childrenArray) fullpath()
id()
indents()
parent()
tagLast()
Set last child as the last sibling.io.odysz.anson.Anson
toBlock
(OutputStream stream, io.odysz.anson.JsonOpt... opts) Methods inherited from class io.odysz.anson.Anson
appendArr, appendObjStr, appendPair, escape, fromBlock, fromJson, fromJson, toEnvelope, toJson, toJson, toMapBlock, toString, 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
-
TreeIndenode
public TreeIndenode() -
TreeIndenode
-
-
Method Details
-
toBlock
public io.odysz.anson.Anson toBlock(OutputStream stream, io.odysz.anson.JsonOpt... opts) throws io.odysz.anson.x.AnsonException, IOException - Specified by:
toBlock
in interfaceio.odysz.anson.IJsonable
- Overrides:
toBlock
in classio.odysz.anson.Anson
- Throws:
io.odysz.anson.x.AnsonException
IOException
-
getChildIndents
-
indents
-
put
-
get
-
id
-
parent
-
fullpath
-
children
-
child
-
child
-
children
node: { children: arrChildren<List> }- Parameters:
arrChildren
-
-
children_
-
tagLast
Set last child as the last sibling.- Returns:
- this
-
asLastSibling
-