json

From Teverse


Properties

name

Type: string

className [readonly]

Type: string

Inherited from baseClass:

name

Type: string
A none unique identifier

className [readonly]

Type: string
The name of the object's class

Methods

decode

nil json:decode()

encodeWithTypes

nil json:encodeWithTypes()

encode

nil json:encode()

Inherited from baseClass:

getDescendants

table json:getDescendants()
Returns a table of all descended objects

isContainer

boolean json:isContainer()

isA

boolean json:isA(string className)
Returns true if this object is derived from the className given.

destroy

nil json:destroy()
Locks the object before removing it from the hierarchy. Children will also be destroyed.

getFullName

string json:getFullName()
Returns a string including ancestor names

constructor

nil json:constructor()

destroyAllChildren

nil json:destroyAllChildren()
Invokes the destroy method on each child of this instance.

hasChild

boolean json:hasChild(string name)
Returns true if this object has a child with the name given

isDescendantOf

boolean json:isDescendantOf(baseClass ancestor)
Returns true if this object is a descendant of the ancestor object given

describe

nil json:describe()

clone

variant json:clone()
Creates and returns a copy of this object

Events

Inherited from baseClass:

changed

eventListener json:changed(function(string propertyName, variant newValuevariant))
Fired when a property changes

childAdded

eventListener json:childAdded(function(baseClass child))
Fired when a child is added

childRemoved

eventListener json:childRemoved(function(baseClass child))
Fired when a child is removed

destroying

eventListener json:destroying(function())
Fired just before an object is destroyed.

Sub classes

Category derivedFromjson not found