PNodeAdapter

open class PNodeAdapter(val nodeId: Long, val branch: IBranch) : INode, INodeEx, IReplaceableNode

Constructors

Link copied to clipboard
constructor(nodeId: Long, branch: IBranch)

Types

Link copied to clipboard
object Companion

Properties

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

Iterable over all child nodes of this node.

Link copied to clipboard
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
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 override fun addNewChild(role: String?, index: Int, concept: IConcept?): INode
open override fun addNewChild(role: String?, index: Int, concept: IConceptReference?): INode

Adds a new child node to this node.

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

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 override 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 override fun getDescendantsAsFlow(includeSelf: Boolean): Flow<INode>
Link copied to clipboard
Link copied to clipboard
open override 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 override 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
open override fun getReferenceTargetAsFlow(role: IReferenceLink): Flow<INode>
Link copied to clipboard

open override fun getReferenceTargetRef(role: String): INodeReference?

Returns a node reference to the target of the reference.

Link copied to clipboard
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, child: 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
open override fun replaceNode(concept: ConceptReference?): INode

Replaces this node with a new node of the given concept that uses the same id as this node. Properties, references and children will be the same.

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(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.

open override 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.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
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 override fun usesRoleIds(): Boolean
Link copied to clipboard