commonMain.internal.actions.ReadValueStateAction.kt Maven / Gradle / Ivy
package io.kform.internal.actions
import io.kform.AbsolutePath
import io.kform.AbsolutePathFragment
import io.kform.FormManager
import io.kform.internal.AccessValueStateTree
import io.kform.internal.ActionAccess
import io.kform.internal.ActionAccessType
/** Action reading values and/or their state. */
internal abstract class ReadValueStateAction(formManager: FormManager, val path: AbsolutePath) :
ValueStateAction(formManager) {
override val accesses: List =
mutableListOf(AccessValueStateTree(ActionAccessType.Read))
override val accessedPaths: List =
mutableListOf(path + AbsolutePathFragment.RecursiveWildcard)
}