addNewChild

open override fun addNewChild(parentId: Long, role: String?, index: Int, concept: IConcept?): Long

Creates and adds a new child of the given concept to the tree of this transaction.

Return

id of the newly created node

Parameters

parentId

id of the parent node

role

child link role within the parent node

index

index within the child link role

concept

concept of the new node


open override fun addNewChild(parentId: Long, role: String?, index: Int, concept: IConceptReference?): Long

Creates and adds a new child of the given concept to the tree of this transaction.

Return

id of the newly created node

Parameters

parentId

id of the parent node

role

child link role within the parent node

index

index within the child link role

concept

concept reference to the concept of the new node


open override fun addNewChild(parentId: Long, role: String?, index: Int, childId: Long, concept: IConcept?)

Creates and adds a new child of the given concept to the tree of this transaction.

Parameters

parentId

id of the parent node

role

child link role within the parent node

index

index within the child link role

childId

the id to be used for creation

concept

the concept of the new node

Throws

if the childId already exists


open override fun addNewChild(parentId: Long, role: String?, index: Int, childId: Long, concept: IConceptReference?)

Creates and adds a new child of the given concept to the tree of this transaction.

Parameters

parentId

id of the parent node

role

child link role within the parent node

index

index within the child link role

childId

the id to be used for creation

concept

concept reference to the concept of the new node

Throws

if the childId already exists