Class DataTree

java.lang.Object
com.mohamnag.jstatic.data_tree.DataTree

public class DataTree extends Object
  • Constructor Details Link icon

    • DataTree Link icon

      public DataTree()
  • Method Details Link icon

    • getOrCreateNodeWithPath Link icon

      public DataNode getOrCreateNodeWithPath(List<String> path)
      Find or create (recursively) nodes for given path and return it.
    • getOrCreatePageWithPath Link icon

      public DataPage getOrCreatePageWithPath(String pageName, List<String> path)
      Creates a page at a node with given path. If necessary all the nodes on the path will be created too.
    • getPageWithPath Link icon

      public Optional<DataPage> getPageWithPath(List<String> path)
    • forAllPages Link icon

      public void forAllPages(Consumer<DataPage> action)