Package-level declarations

Types

Link copied to clipboard
@Serializable
@SerialName(value = "addNew")
data class AddNewChildNodeOpData(val parentNode: NodeId, val role: String?, val index: Int = -1, val concept: String?, val childId: NodeId) : OperationData
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "and")
data class AndFilter(val filters: List<Filter>) : LogicalOperatorFilter
Link copied to clipboard
Link copied to clipboard
typealias ChangeSetId = Int
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "contains")
data class ContainsOperator(val substring: String) : StringOperator
Link copied to clipboard
@Serializable
@SerialName(value = "delete")
data class DeleteNodeOpData(val nodeId: NodeId) : OperationData
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "endsWith")
data class EndsWithOperator(val suffix: String) : StringOperator
Link copied to clipboard
@Serializable
@SerialName(value = "equals")
data class EqualsOperator(val value: String) : StringOperator
Link copied to clipboard
@Serializable
data class ExceptionData(val message: String, val stacktrace: List<String>, val cause: ExceptionData? = null)
Link copied to clipboard
@Serializable
sealed class Filter
Link copied to clipboard
@Serializable
@SerialName(value = "conceptId")
data class FilterByConceptId(val conceptUID: String?) : Filter
Link copied to clipboard
@Serializable
@SerialName(value = "conceptName")
data class FilterByConceptLongName(val operator: StringOperator) : Filter
Link copied to clipboard
@Serializable
@SerialName(value = "property")
class FilterByProperty(val role: String, val operator: StringOperator) : Filter
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "isNotNull")
object IsNotNullOperator : StringOperator
Link copied to clipboard
@Serializable
@SerialName(value = "isNull")
object IsNullOperator : StringOperator
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "regex")
data class MatchesRegexOperator(val pattern: String) : StringOperator
Link copied to clipboard
@Serializable
data class MessageFromClient(val changeSetId: ChangeSetId? = null, val operations: List<OperationData>? = null, val query: ModelQuery? = null, val baseVersionHash: String? = null, val baseChangeSet: ChangeSetId? = null)
Link copied to clipboard
@Serializable
data class MessageFromServer(val version: VersionData? = null, val replacedIds: Map<String, String>? = null, val appliedChangeSet: ChangeSetId? = null, val exception: ExceptionData? = null)
Link copied to clipboard
@Serializable
data class ModelQuery(val queries: List<RootQuery>) : QueryOwner
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "move")
data class MoveNodeOpData(val newParentNode: NodeId, val newRole: String?, val newIndex: Int = -1, val childId: NodeId) : OperationData
Link copied to clipboard
@Serializable
data class NodeData(val nodeId: NodeId, val concept: String? = null, val parent: NodeId? = null, val role: String? = null, val properties: Map<String, String> = emptyMap(), val references: Map<String, String> = emptyMap(), val children: Map<String?, List<NodeId>> = emptyMap())
Link copied to clipboard
typealias NodeId = String
Link copied to clipboard
@Serializable
data class NodeUpdateData(val nodeId: NodeId? = null, val temporaryNodeId: NodeId? = null, val concept: String? = null, val references: Map<String, String?>? = null, val properties: Map<String, String?>? = null, val children: Map<String?, List<NodeId>>? = null)
Link copied to clipboard
@Serializable
@SerialName(value = "not")
data class NotFilter(val filter: Filter) : Filter
Link copied to clipboard
@Serializable
sealed class OperationData
Link copied to clipboard
@Serializable
@SerialName(value = "or")
data class OrFilter(val filters: List<Filter>) : LogicalOperatorFilter
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "allChildren")
data class QueryAllChildren(val queries: List<Subquery> = emptyList(), val filters: List<Filter> = emptyList()) : Subquery
Link copied to clipboard
@Serializable
@SerialName(value = "ancestors")
data class QueryAncestors(val queries: List<Subquery> = emptyList(), val filters: List<Filter> = emptyList()) : Subquery
Link copied to clipboard
@Serializable
@SerialName(value = "resolve")
data class QueryById(val nodeId: NodeId, val queries: List<Subquery> = emptyList()) : RootQuery
Link copied to clipboard
@Serializable
@SerialName(value = "children")
data class QueryChildren(val role: String?, val queries: List<Subquery> = emptyList(), val filters: List<Filter> = emptyList()) : Subquery
Link copied to clipboard
@Serializable
@SerialName(value = "descendants")
data class QueryDescendants(val queries: List<Subquery> = emptyList(), val filters: List<Filter> = emptyList()) : Subquery
Link copied to clipboard
@Serializable
sealed class QueryOwner
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "parent")
data class QueryParent(val queries: List<Subquery> = emptyList(), val filters: List<Filter> = emptyList()) : Subquery
Link copied to clipboard
@Serializable
@SerialName(value = "reference")
data class QueryReference(val role: String, val queries: List<Subquery> = emptyList(), val filters: List<Filter> = emptyList()) : Subquery
Link copied to clipboard
@Serializable
@SerialName(value = "references")
data class QueryReferences(val queries: List<Subquery> = emptyList(), val filters: List<Filter> = emptyList()) : Subquery
Link copied to clipboard
@Serializable
@SerialName(value = "referencesAndChildren")
data class QueryReferencesAndChildren(val recursive: Boolean = false, val queries: List<Subquery> = emptyList(), val filters: List<Filter> = emptyList()) : Subquery
Link copied to clipboard
@Serializable
@SerialName(value = "root")
data class QueryRootNode(val queries: List<Subquery> = emptyList()) : RootQuery
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed class RootOrSubquery : QueryOwner
Link copied to clipboard
@Serializable
sealed class RootQuery : RootOrSubquery
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "setProperty")
data class SetPropertyOpData(val node: NodeId, val role: String, val value: String?) : OperationData
Link copied to clipboard
@Serializable
@SerialName(value = "setReference")
data class SetReferenceOpData(val node: NodeId, val role: String, val target: NodeId?) : OperationData
Link copied to clipboard
@Serializable
@SerialName(value = "startsWith")
data class StartsWithOperator(val prefix: String) : StringOperator
Link copied to clipboard
@Serializable
sealed class StringOperator
Link copied to clipboard
@Serializable
sealed class Subquery : RootOrSubquery
Link copied to clipboard
Link copied to clipboard
@Serializable
data class VersionData(val repositoryId: String? = null, val versionHash: String? = null, val rootNodeId: String? = null, val usesRoleIds: Boolean = false, val nodes: List<NodeData>)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun NodeData.replaceContainment(newParent: NodeId?, newRole: String?): NodeData
Link copied to clipboard
Link copied to clipboard