Home Reference Source Test
public class | source

DataObjectChild

The class returned from the DataObject addChildren call or from onAddChildren if remotely created.

Member Summary

Public Members
public get

childId: URL

Children ID generated on addChildren.

public get

Data Structure to be synchronized.

public set

identity(identity: Identity): *

Set for this dataObjectChild an identity

public get

Get for this dataObjectChild an identity

public get

All Metadata about the Child Data Object

Method Summary

Public Methods
public

delete()

Release and delete object data

public

onChange(callback: function(event: MsgEvent))

Register the change listeners sent by the reporter child

public

onResponse(callback: function(event: MsgEvent))

Setup the callback to process response notifications of the creates

Public Members

public get childId: URL source

Children ID generated on addChildren. Unique identifier

public get data: JSON source

Data Structure to be synchronized.

public set identity(identity: Identity): * source

Set for this dataObjectChild an identity

public get identity: Identity: * source

Get for this dataObjectChild an identity

Return:

Identity

identity from who created the message

public get metadata: Object source

All Metadata about the Child Data Object

Public Methods

public delete() source

Release and delete object data

public onChange(callback: function(event: MsgEvent)) source

Register the change listeners sent by the reporter child

Params:

NameTypeAttributeDescription
callback function(event: MsgEvent)

public onResponse(callback: function(event: MsgEvent)) source

Setup the callback to process response notifications of the creates

Params:

NameTypeAttributeDescription
callback function(event: MsgEvent)