Root

inner class Root : INode

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val allChildren: Iterable<INode>

Iterable over all child nodes of this node.

Link copied to clipboard
open override val concept: IConcept?

Concept, of which this node is instance of, or null if the node is not instance of any concept.

Link copied to clipboard
open override val isValid: Boolean
Link copied to clipboard
open override val parent: INode?

Parent node of this node if it exists, or null if this node has no parent node.

Link copied to clipboard
open override val reference: INodeReference

Reference targeting this node.

Link copied to clipboard
open override val roleInParent: String?

Role of this node in its parent node if it exists,or null otherwise.

Functions

Link copied to clipboard
open fun addNewChild(role: String?, index: Int, concept: IConceptReference?): INode
open override fun addNewChild(role: String?, index: Int, concept: IConcept?): INode

Adds a new child node to this node.

open fun addNewChild(role: IChildLink, index: Int, concept: IConcept?): INode
open fun addNewChild(role: IChildLink, index: Int, concept: IConceptReference?): INode
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
open fun addNewChildren(role: String?, index: Int, concepts: List<IConceptReference?>): List<INode>
open fun addNewChildren(link: IChildLink, index: Int, concepts: List<IConceptReference?>): List<INode>
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun getAllChildrenAsFlow(): Flow<INode>
Link copied to clipboard
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
open override fun getArea(): CompositeArea

Returns the area of which this node is part of.

Link copied to clipboard

open override fun getChildren(role: String?): Iterable<INode>

Returns children of this node for the given role.

Link copied to clipboard
Link copied to clipboard
open fun getChildrenAsFlow(role: IChildLink): Flow<INode>
Link copied to clipboard
Link copied to clipboard

Returns a concept reference to the concept of which this node is instance of.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getDescendantsAsFlow(includeSelf: Boolean = false): Flow<INode>
Link copied to clipboard
Link copied to clipboard
open fun getParentAsFlow(): Flow<INode>
Link copied to clipboard
Link copied to clipboard
open override fun getPropertyRoles(): List<String>

Returns all property roles of this node.

Link copied to clipboard
open fun getPropertyValue(property: IProperty): String?

open override fun getPropertyValue(role: String): String?

Returns the value of the given property role for this node.

Link copied to clipboard
Link copied to clipboard
open fun getPropertyValueAsFlow(role: IProperty): Flow<String?>
Link copied to clipboard
Link copied to clipboard
open override fun getReferenceRoles(): List<String>

Returns all reference roles of this node.

Link copied to clipboard

open override fun getReferenceTarget(role: String): INode?

Returns the target of the given reference role for this node.

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

Returns a node reference to the target of the reference.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
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
open fun moveChild(role: IChildLink, index: Int, child: INode)

open override fun moveChild(role: String?, index: Int, node: INode)

Moves a node to this node's children with the given role and index. The child node can originate from a different parent.

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

Removes the given node from this node's children.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setPropertyValue(property: IProperty, value: String?)

open override fun setPropertyValue(role: String, value: String?)

Sets the value of the given property role for this node to the specified role.

Link copied to clipboard
fun INode.setPropertyValue(property: IProperty, value: String?)
Link copied to clipboard
open fun setReferenceTarget(role: String, target: INodeReference?)

Sets the target of the given role reference for this node to the node referenced by the specified target reference.

open fun setReferenceTarget(link: IReferenceLink, target: INode?)

open override fun setReferenceTarget(role: String, target: INode?)

Sets the target of the given role reference for this node to the specified target node.

Link copied to clipboard
Link copied to clipboard
open fun tryGetConcept(): IConcept?
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
open fun usesRoleIds(): Boolean
Link copied to clipboard