JSON Element (PRIM_WEB.JsonElement)

Base JSON element

Ancestors - Object (PRIM_OBJT)

Details

A JSON element is the most basic form of element and the base class for all other element types.

Properties

Name

Description

ComponentClassName

ComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)

ComponentMembers

ComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)

ComponentPatternName

ComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)

ComponentTag

Generic space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)

ComponentType

ComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)

ComponentTypeName

ComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)

Index

Index of the element

Item

Access a specific element

ItemAt

Access a specific child element

ItemCount

Number of child elements

Key

Key of the element

Name

Name identifies the component Inherited from Object (PRIM_OBJT)

Owner

Owner owns this component Inherited from Object (PRIM_OBJT)

Parent

The 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)

ParentItem

Reference to the parent element

Type

Type of element e.g. Array, number, string etc.

Events

Name

Description

CreateInstance

CreateInstance is signalled when an instance of a component is created Inherited from JSON Element (PRIM_WEB.JsonElement)

DestroyInstance

DestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from JSON Element (PRIM_WEB.JsonElement)

Methods

Name

Description

AsBoolean

Return the element as a Boolean

Result

AsNumber

Return the element as a number

Result

AsString

Return the element as a string

Result

CreateIterator

CreateIterator method creates an iterator component that enables iteration through the collection

Result

Remove

Remove the element

Result, Key

RemoveAll

Remove all child elements

RemoveAt

Remove a specific element

Result, Index


See also

All Component Classes

Technical Reference