Operation Info
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
interface ArrayOperationInfo
ArrayOperationInfo represents the OperationInfo for the JsonArray.
Link copied to clipboard
interface CounterOperationInfo
CounterOperationInfo represents the OperationInfo for the JsonCounter.
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
interface ObjectOperationInfo
ObjectOperationInfo represents the OperationInfo for the JsonObject.
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
interface TextOperationInfo
TextOperationInfo represents the OperationInfo for the JsonText.
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
interface TreeOperationInfo
TreeOperationInfo represents the OperationInfo for the JsonTree.
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