PRIM_JSON.Node (PRIM_JSON.Node)

Base class for all JSON nodes, which form the basis of the JSON DOM

Ancestors - Object (PRIM_OBJT)

Details

No detailed help is available for this feature

Properties

NameDescription
ChildKeyed property to access a PRIM_JSON.Member node as a child of a PRIM_JSON.Object node using the name of member
ChildAtKeyed property to access a child node using an index. Provides access to children of a PRIM_JSON.Array node and the value node of a PRIM_JSON.Member node
ChildCountNumber of nodes that are children of the current node. For PRIM_JSON.Member nodes, it is the count of children of the node's Value node.
ComponentClassNameComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembersComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternNameComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTagGeneric space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentTypeComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeNameComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
FirstChildReturns a reference to the first child node, otherwise *NULL
HasChildNodesReturns true if the node has child nodes
IsArrayReturns true if the node resolves to a JSON value node that is a JSON Array node
IsBooleanReturns true if the node resolves to a JSON value node that can provide a boolean value
IsDateTimeReturns true if the node resolves to a JSON value node that can provide a datetime value
IsDecimalReturns true if the node resolves to a JSON value node that can provide a decimal value
IsInt32Returns true if the node resolves to a JSON value node that can provide a 32-bit integer value
IsInt64Returns true if the node resolves to a JSON value node that can provide a 64-bit integer value
IsNullReturns true if the node resolves to a JSON value node that is a JSON Null node
IsObjectReturns true if the node resolves to a JSON value node that is a JSON Object node
IsStringReturns true if the node resolves to a JSON value node that can provide a unicode string
ItemReturns a reference to the child node that has a name that matches the key parameter, otherwise *NULL
ItemAtReturns a reference to the child node that has the supplied index, otherwise *NULL
ItemCountNumber of child nodes
LastChildReturns a reference to this node's last child, otherwise *NULL
NameName identifies the component Inherited from Object (PRIM_OBJT)
NextSiblingReturns a reference to this node's next sibling, otherwise *NULL
NodeNameReturns the name assigned to this node
NodeTypeReturns the type of this node
NodeValueReturns this node's value as a unicode string
OwnerOwner owns this component Inherited from Object (PRIM_OBJT)
OwnerDocumentReturns a reference to this node's factory's document, otherwise *NULL
ParentThe component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT)
ParentDocumentReturns a reference to this node's parent document, otherwise *NULL
ParentNodeReturns a reference to this node's parent, otherwise *NULL
PreviousSiblingReturns a reference to this node's previous sibling, otherwise *NULL

Events

NameDescription
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from PRIM_JSON.Node (PRIM_JSON.Node)
DestroyInstanceDestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from PRIM_JSON.Node (PRIM_JSON.Node)

Methods

NameDescription
AsArrayAttempts to resolve current node as a PRIM_JSON.Array otherwise reports a runtime error. Document nodes resolve the root node and member nodes resolve the Value node.
Result
AsBooleanRetrieves the value of the current JSON node as a boolean
Result
AsDateTimeRetrieves the value of the current JSON node as a date/time
Result
AsDecimalRetrieves the value of the current JSON node as a decimal
Result
AsInt32Retrieves the value of the current JSON node as a 32-bit integer
Result
AsInt64Retrieves the value of the current JSON node as a 64-bit integer
Result
AsObjectAttempts to resolve current node as a PRIM_JSON.Object otherwise reports a runtime error. Document nodes resolve the root node and member nodes resolve the Value node.
Result
AsStringRetrieves the value of the resolved JSON value node as a unicode string
Result
CloneMakes a copy of the current JSON node and recursively clones all the node's children
Result
CloneNodeMakes a copy of the current JSON node optionally recursively cloning all the node's children
Result, Deep
CreateIteratorCreates an iterator component that enables iteration through the node's children
Result
RemoveAllMethod for removing all children nodes of this node by setting each child node's parent to null

See also

All Component Classes

Technical Reference