OperationInfo

sealed class OperationInfo

OperationInfo represents the information of an operation. It is used to inform to the user what kind of operation was executed.

Inheritors

Types

Link copied to clipboard
data class AddOpInfo(val index: Int, var path: String = INITIAL_PATH) : OperationInfo, OperationInfo.ArrayOperationInfo
Link copied to clipboard
Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard
data class EditOpInfo(val from: Int, val to: Int, val value: TextWithAttributes, var path: String = INITIAL_PATH) : OperationInfo, OperationInfo.TextOperationInfo
Link copied to clipboard
data class IncreaseOpInfo(val value: Number, var path: String = INITIAL_PATH) : OperationInfo, OperationInfo.CounterOperationInfo
Link copied to clipboard
data class MoveOpInfo(val previousIndex: Int, val index: Int, var path: String = INITIAL_PATH) : OperationInfo, OperationInfo.ArrayOperationInfo
Link copied to clipboard
Link copied to clipboard
data class RemoveOpInfo(val key: String?, val index: Int?, var path: String = INITIAL_PATH) : OperationInfo, OperationInfo.ArrayOperationInfo, OperationInfo.ObjectOperationInfo
Link copied to clipboard
data class SetOpInfo(val key: String, var path: String = INITIAL_PATH) : OperationInfo, OperationInfo.ObjectOperationInfo
Link copied to clipboard
data class StyleOpInfo(val from: Int, val to: Int, val attributes: Map<String, String>, var path: String = INITIAL_PATH) : OperationInfo, OperationInfo.TextOperationInfo
Link copied to clipboard
Link copied to clipboard
data class TreeEditOpInfo(val from: Int, val to: Int, val fromPath: List<Int>, val toPath: List<Int>, val nodes: List<JsonTree.TreeNode>?, val splitLevel: Int, var path: String = INITIAL_PATH) : OperationInfo, OperationInfo.TreeOperationInfo
Link copied to clipboard
Link copied to clipboard
data class TreeStyleOpInfo(val from: Int, val to: Int, val fromPath: List<Int>, val toPath: List<Int>, val attributes: Map<String, String> = emptyMap(), val attributesToRemove: List<String> = emptyList(), var path: String = INITIAL_PATH) : OperationInfo, OperationInfo.TreeOperationInfo

Properties

Link copied to clipboard
abstract var path: String