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.DirectoryTreegetEffectiveProperties(io.github.zebin.javabash.sandbox.PosixPath leaf) getEffectiveProperty(io.github.zebin.javabash.sandbox.PosixPath leaf, String key) Get effective property value.Stream<io.github.zebin.javabash.sandbox.PosixPath>getLeafs()getProperties(io.github.zebin.javabash.sandbox.PosixPath leaf) 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
-
getProperties
-
getEffectiveProperties
-
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()
-