Package com.mohamnag.jstatic.data_tree
Class DataPage
java.lang.Object
com.mohamnag.jstatic.data_tree.DataPage
This represents a page in
DataTree
. A page contains own
data and will get compiled down to a final file.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllData
(Map<String, Object> data) void
getData()
getPath()
getRecursiveData
(String key) Get value for given key first looking on own data and then recursively in parent nodes upwards.resolveRelativePath
(List<String> relativePath) Will resolve a given path which is relative to this page into an absolute one that can be resolved from theDataTree
for target page.
-
Method Details
-
getData
-
getData
-
getRecursiveData
Get value for given key first looking on own data and then recursively in parent nodes upwards. -
addData
-
getPath
- Returns:
- absolute path of this page
-
getPathElements
-
resolveRelativePath
Will resolve a given path which is relative to this page into an absolute one that can be resolved from theDataTree
for target page. -
addAllData
-