Class Index | Minimal

Classes


Class jabberwerx.PubSubItem


Extends jabberwerx.JWModel.

Represents a pubsub item - an XML fragment which is published to a pubsub node.

Class Summary
Constructor Attributes Constructor Name and Description
 

Creates a new PubSubItem with the given DOM element.

Field Summary
Field Attributes Field Name and Description
 

The payload of the item as a DOM element, or null if none.

 
id

The unique identifier of this item in the context of a pubsub node.

 

The publisher of this item, or null if unknown.

 

The timestamp for this item, or the current time at creation if not otherwise known.

Method Summary
Method Attributes Method Name and Description
 

Destroys this PubSubItem.

 

Called just after this object is unserialized.

 

Called when this object is about to be serialized.

Methods borrowed from class jabberwerx.JWModel:
applyEvent, event, shouldBeSavedWithGraph
Methods borrowed from class jabberwerx.JWBase:
getClassName, graphUnserialized, init, invocation, shouldBeSerializedInline, toString
Class Detail
jabberwerx.PubSubItem(dom)

Creates a new PubSubItem with the given DOM element.

NOTE: This type should not be created directly. Instead, the PubSubNode creates instances of PubSubItem as needed.

Parameters:
{Element} dom
The <item/> element
Field Detail
{Element} data

The payload of the item as a DOM element, or null if none.


{String} id

The unique identifier of this item in the context of a pubsub node.


{jabberwerx.JID} publisher

The publisher of this item, or null if unknown.


{Date} timestamp

The timestamp for this item, or the current time at creation if not otherwise known.

Method Detail
destroy()

Destroys this PubSubItem.


wasUnserialized()

Called just after this object is unserialized. This method converts the timestamp from the number of seconds since the Epoch to a Date object.


willBeSerialized()

Called when this object is about to be serialized. This method converts the timestamp from a Date object to the number of seconds since the Epoch.


Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 02 2014 13:23:42 GMT-0600 (MDT)