Package-level declarations

Types

Link copied to clipboard

TODO if you add a new Concept to a language, do not forget to add it to the language's included concepts field. Otherwise the concept will not be eagerly added to the Language, when registering the language in the ILanguageRegistry.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect class ContextValue<E>
actual class ContextValue<E>
actual class ContextValue<E>
Link copied to clipboard
interface IBranch

Representation of a branch.

Link copied to clipboard
interface IBranchListener

Listener, that listens for changes on a branch.

Link copied to clipboard

Wrapper for IBranch

Link copied to clipboard
interface IChildLink : ILink

Representation of a parent-child relationship between IConcepts.

Link copied to clipboard
interface IConcept

Representation of a language concept.

Link copied to clipboard

Reference to an IConcept.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface IIdGenerator

Generator for IDs.

Link copied to clipboard
interface ILanguage

Representation of a language.

Link copied to clipboard

An ILanguageRepository contains languages and their corresponding concepts.

Link copied to clipboard
interface ILink : IRole

Representation of a link between two IConcepts. A link belongs to one concept and targets another. It can be an IChildLink or an IReferenceLink.

Link copied to clipboard
interface INode

Representation of a model element.

Link copied to clipboard
interface INodeEx : INode
Link copied to clipboard
interface INodeJS_ : INodeJS
Link copied to clipboard
@Serializable(with = NodeReferenceKSerializer::class)
interface INodeReference

Reference to an INode-

Link copied to clipboard

Serializer for INodeReferences.

Link copied to clipboard
Link copied to clipboard
interface INodeWrapper : INode

Wrapper for INode

Link copied to clipboard
interface IProperty : IRole

Representation of a property within an IConcept.

Link copied to clipboard

Provides transactional read access to nodes.

Link copied to clipboard
interface IReferenceLink : ILink

Representation of a non-containment reference link between IConcepts.

Link copied to clipboard

Interface for nodes that can be replaced by a new instance.

Link copied to clipboard
interface IRole

An IRole is a structural feature of a concept. It can either be an IProperty or an ILink.

Link copied to clipboard
interface ITransaction

Provides transactional access to nodes in the tree of this transaction.

Link copied to clipboard
Link copied to clipboard
interface ITree

Consists of INodes.

Link copied to clipboard

Interface to handle changes within an ITree.

Link copied to clipboard

Extension of ITreeChangeVisitor, which can also handle removed and added nodes.

Link copied to clipboard

Provides transactional read and write access to nodes.

Link copied to clipboard
Link copied to clipboard
abstract class LinkFromName : RoleFromName, ILink
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class NodeAdapterJS(val node: INode) : INodeJS_
Link copied to clipboard
@Serializable
data class NodeReference(val serialized: String) : INodeReference
Link copied to clipboard
data class NodeReferenceById(val nodeId: String) : INodeReference
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class PBranch(tree: ITree, idGenerator: IIdGenerator) : IBranch
Link copied to clipboard
open class PNodeAdapter(val nodeId: Long, val branch: IBranch) : INode, INodeEx, IReplaceableNode
Link copied to clipboard
data class PNodeReference(val id: Long, val branchId: String) : INodeReference
Link copied to clipboard
Link copied to clipboard
class ReadTransaction(val tree: ITree, val branch: IBranch) : Transaction, IReadTransaction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class RoleFromName : IRole
Link copied to clipboard
Link copied to clipboard
class SimpleChildLink(simpleName: String, val isMultiple: Boolean, val isOptional: Boolean, val targetConcept: IConcept, uid: String? = null, val isOrdered: Boolean = true) : IChildLink
Link copied to clipboard
open class SimpleConcept(conceptName: String, is_abstract: Boolean = false, directSuperConcepts: Iterable<IConcept> = emptyList(), uid: String? = null) : IConcept
Link copied to clipboard
open class SimpleLanguage(name: String, uid: String? = null) : ILanguage
Link copied to clipboard
data class SimpleProperty @JvmOverloads constructor(simpleName: String, val isOptional: Boolean = true, uid: String? = null) : IProperty
Link copied to clipboard
class SimpleReferenceLink @JvmOverloads constructor(simpleName: String, val isOptional: Boolean, var targetConcept: IConcept, uid: String? = null) : IReferenceLink
Link copied to clipboard
abstract class Transaction(val branch: IBranch) : ITransaction
Link copied to clipboard
class TreePointer(tree_: ITree, val idGenerator: IIdGenerator = IdGeneratorDummy()) : IBranch, IWriteTransaction, IReadTransaction

A non thread safe branch without real transactions. Provides better performance for temporary branches that are not shared.

Link copied to clipboard
class WriteTransaction(_tree: ITree, val branch: IBranch, idGenerator: IIdGenerator) : Transaction, IWriteTransaction

Functions

Link copied to clipboard
fun INode.addNewChild(role: String?, index: Int): INode
fun INode.addNewChild(role: String?, concept: IConcept?): INode
fun INode.addNewChild(role: IChildLink, index: Int): INode
fun INode.addNewChild(role: IChildLink, index: Int, concept: IConcept?): INode
Link copied to clipboard
Link copied to clipboard

Recursively unwraps a branch.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns this concept and all of its super-concepts.

Link copied to clipboard

Returns all sub-concepts (direct and indirect) of the receiver concept.

Link copied to clipboard
fun INode?.getAncestor(concept: IConcept?, includeSelf: Boolean): INode?
Link copied to clipboard
fun INode.getAncestors(includeSelf: Boolean = false): Sequence<INode>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the direct sub-concepts of the receiver concept.

Link copied to clipboard

Returns all instantiable sub-concepts (direct and indirect) of the receiver concept.

Link copied to clipboard
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 INode.index(): Int
Link copied to clipboard

Resolves whether the child link is ordered or not.

Link copied to clipboard
fun INode.isInstanceOf(superConcept: IConcept?): Boolean
Link copied to clipboard
Link copied to clipboard
fun IConcept.isSubConceptOf(superConceptReference: IConceptReference): Boolean

Checks if this is a sub-concept of the IConcept that is identified by the superConceptReference's UID.

fun IConcept?.isSubConceptOf(superConcept: IConcept?): Boolean
Link copied to clipboard
fun IChildLink.key(node: INode): String?
fun IRole.key(node: INode): String

Returns the key of the receiver role for the given transaction.

fun IRole.key(tree: ITree): String

Returns the key of the receiver role for the given tree.

Link copied to clipboard
fun INode.moveChild(role: IChildLink, index: Int, child: INode)
Link copied to clipboard
Link copied to clipboard

Resolves the receiver concept reference within all registered language repositories.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect inline fun <R> runSynchronized(lock: Any, block: () -> R): R
actual inline fun <R> runSynchronized(lock: Any, block: () -> R): R
actual inline fun <R> runSynchronized(lock: Any, block: () -> R): R
Link copied to clipboard
Link copied to clipboard
fun INode.setPropertyValue(property: IProperty, value: String?)
Link copied to clipboard
Link copied to clipboard

Tries to resolve the receiver concept reference within all registered language repositories.

Link copied to clipboard

Attempts to resolve the child link.

Link copied to clipboard

Attempts to resolve the property.

Link copied to clipboard

Attempts to resolve the reference link.

Link copied to clipboard