Class PathUtil
java.lang.Object
org.wpilib.tunable.util.PathUtil
Path helper functions for tunable backends and registry internals.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringchildTablePath(String path) Returns a child table path by adding a trailing slash when needed.static booleanisPathOrDescendant(String path, String root) Returns whether a path is equal to a root path or is one of its descendants.static StringnormalizeBackendPrefix(String prefix) Normalizes a registry backend prefix.static StringnormalizeChildName(String name) Normalizes a child name by collapsing path separators and removing a leading slash.static StringnormalizeName(String path) Normalizes a tunable path by adding a leading slash and collapsing duplicate slashes.static StringnormalizePrefix(String prefix) Normalizes a backend-owned prefix.static StringnormalizeTableName(String path) Normalizes a tunable table path by adding a leading slash, collapsing duplicate slashes, and adding a trailing slash.
-
Method Details
-
normalizeTableName
-
normalizeBackendPrefix
-
normalizePrefix
-
childTablePath
-
normalizeChildName
-
normalizeName
-
isPathOrDescendant
-