PathResolver

Resolves paths in the form hierarchy. Handles absolute paths, relative ones (.) and going up (..), using the ControlContext tree.

Properties

Link copied to clipboard
const val CURRENT: String
Link copied to clipboard
const val PARENT: String
Link copied to clipboard
const val SEPARATOR: String

Functions

Link copied to clipboard
fun resolvePath(path: String, currentContext: ControlContext): String

Resolves path relative to the given context currentContext.

Link copied to clipboard
fun resolvePaths(path: String, currentContext: ControlContext, formState: FormState): List<String>

Resolves path, which may contain wildcards (*), returning all matching keys from formState.