Common Node Properties and Methods

Some properties and methods are common to both NodeObject and LocalNodeObject although these two objects do not share a prototype chain.

In all cases where the value can differ because of the global or local context, the correct value is returned for that context. For example, when calling GetChildren() on a NodeObject, the resulting Array will contain NodeObjects. When making the same call on a LocalNodeObject, the resulting Array will contain LocalNodeObjects.

Table 22. Common Properties for NodeObject and LocalNodeObject

Name

Description

Abbrev

Core.Abbrev

AddedBy

Core.AddedBy

AddedOn

Core.AddedOn

Changed

Core.Changed

ChangedBy

Core.ChangedBy

ChangedOn

Core.ChangedOn

ChildNodeCount

Number of child nodes

Descr

Core.Descr

DomainAbbrev

Core.DomainAbbrev

DomainNodeAbbrev

Core.DomainNodeAbbrev

ID

Core.ID

Inactive

Core.Inactive

IsPrimary

True if the node is the primary for a shared node; False if node is not shared or not the primary

IsShared

True if the node is a shared node

Leaf

Core.Leaf

NodeApproved

Core.NodeApproved

Version

The node’s owner VersionObject

VersionAbbrev

The node’s version name

VersionID

The node’s version ID

Table 23. Common Methods for NodeObject and LocalNodeObject

Name

Description

GetChildren(sorted)

Gets an Array of the direct children of this node, optionally in sorted order. Default for sorted is False.

GetDescendants(inclusive, sorted)

Gets an Array of the descendants of this node, optionally including this node and/or in sorted order. Default for inclusive is True. Default for sorted is False.

NodeByAbbrev(abbrev)

Gets a NodeObject by name

NodeByID(id)

Gets a NodeObject by ID

NodeExists(abbrev)

Returns True if a global node with the given name exists

Prop(abbrev)

Gets the NodePropObject for the given property of the version

PropValue(abbrev)

Gets the value of the given property of the version. The return type depends on the data type of the property definition.