Class ConfigTree
java.lang.Object
io.github.andreyzebin.gitSql.config.ConfigTree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteProperty(io.github.zebin.javabash.sandbox.PosixPath leaf, String key) io.github.zebin.javabash.sandbox.DirectoryTreegetEffectiveProperty(io.github.zebin.javabash.sandbox.PosixPath leaf, String key) Get effective property value.getEffectivePropertyKeys(io.github.zebin.javabash.sandbox.PosixPath leaf) Get effective property list.Stream<io.github.zebin.javabash.sandbox.PosixPath>getLeafs()setProperty(io.github.zebin.javabash.sandbox.PosixPath leaf, String key, String value) Get effective property value.
-
Constructor Details
-
ConfigTree
public ConfigTree(io.github.zebin.javabash.sandbox.DirectoryTree delegate)
-
-
Method Details
-
getLeafs
-
getEffectivePropertyKeys
Get effective property list. Moving from root directory to given leaf, collect all unique property keys. Value of property declared closer to leaf on a downstream path has priority- Parameters:
leaf- Directory where leaf property stored- Returns:
- Effective property list, consider all upstream property stores, starting from root directory
-
getEffectiveProperty
Get effective property value. Moving from root directory to given leaf, collect all unique property keys. Value of property declared closer to leaf on a downstream path has priority- Parameters:
leaf- Directory where leaf property stored- Returns:
- Effective property value
-
setProperty
public Optional<String> setProperty(io.github.zebin.javabash.sandbox.PosixPath leaf, String key, String value) Get effective property value. Moving from root directory to given leaf, collect all unique property keys. Value of property declared closer to leaf on a downstream path has priority- Parameters:
leaf- Directory where leaf property stored- Returns:
- Effective property value
-
deleteProperty
-
getDirectory
public io.github.zebin.javabash.sandbox.DirectoryTree getDirectory()
-