Path

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Path.dateTime(formatter: DateTimeFormatter = ISO_LOCAL_DATE_TIME): BiDiPathLensSpec<LocalDateTime>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : Enum<T>> Path.enum(caseSensitive: Boolean = true): BiDiPathLensSpec<T>
inline fun <T : Enum<T>> Path.enum(noinline nextOut: (String) -> T, noinline nextIn: (T) -> String): BiDiPathLensSpec<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Path.localDate(formatter: DateTimeFormatter = ISO_LOCAL_DATE): BiDiPathLensSpec<LocalDate>
Link copied to clipboard
fun Path.localTime(formatter: DateTimeFormatter = ISO_LOCAL_TIME): BiDiPathLensSpec<LocalTime>
Link copied to clipboard
Link copied to clipboard
fun <NEXT> map(nextIn: (String) -> NEXT, nextOut: (NEXT) -> String): BiDiPathLensSpec<NEXT>

Create another BiDiPathLensSpec which applies the bi-directional transformations to the result. Any resultant Lens can be used to extract or insert the final type from/into a path segment.

fun <NEXT> map(nextIn: (String) -> NEXT): PathLensSpec<NEXT>

Create another PathLensSpec which applies the uni-directional transformation to the result. Any resultant Lens can only be used to extract the final type from a target path segment.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun of(name: String, description: String?, metadata: Map<String, Any>): BiDiPathLens<String>

Create a lens for this Spec

Link copied to clipboard
fun Path.regex(pattern: String, group: Int = 1): BiDiPathLensSpec<String>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <VALUE : Value<T>, T : Any> BiDiPathLensSpec<String>.value(vf: ValueFactory<VALUE, T>): BiDiPathLensSpec<VALUE>

Custom lens for mapping Path to values4k Value

Link copied to clipboard
Link copied to clipboard
fun Path.zonedDateTime(formatter: DateTimeFormatter = ISO_ZONED_DATE_TIME): BiDiPathLensSpec<ZonedDateTime>