addNewChild

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

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

Return

tree with changes

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


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

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

Return

tree with changes

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