public class PropertyPathTraverser extends Object
For example, if the property for path config.datasource.mysql.type was exported and we now
encounter the property for path config.datasource.driver.version, the newly encountered
sections are driver and version.
| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyPathTraverser.PathElement
Represents the current element of a path which is currently being handled.
|
| Constructor and Description |
|---|
PropertyPathTraverser() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull List<PropertyPathTraverser.PathElement> |
getPathElements(@NotNull String path)
Returns all path elements of the given path.
|
protected int |
returnLevelOfFirstNewPathElement(@NotNull String path)
Returns the hierarchy level of the highest path element that is being visited for the first time.
|
@NotNull public @NotNull List<PropertyPathTraverser.PathElement> getPathElements(@NotNull @NotNull String path)
path - the path to inspectprotected int returnLevelOfFirstNewPathElement(@NotNull
@NotNull String path)
config.datasource.mysql.type and the given path is
config.datasource.driver.version, then the level for the path element "driver" is returned (i.e. 2).path - the new pathCopyright © 2016–2023 The AuthMe Team. All rights reserved.