WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIRDFObserver

IID:3CC75360-484A-11D2-BC16-00805F912FE7
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void onAssert ( nsIRDFDataSource dataSource , nsIRDFResource source , nsIRDFResource property , nsIRDFNode target ) void onBeginUpdateBatch ( nsIRDFDataSource dataSource ) void onChange ( nsIRDFDataSource dataSource , nsIRDFResource source , nsIRDFResource property , nsIRDFNode oldTarget , nsIRDFNode newTarget ) void onEndUpdateBatch ( nsIRDFDataSource dataSource ) void onMove ( nsIRDFDataSource dataSource , nsIRDFResource oldSource , nsIRDFResource newSource , nsIRDFResource property , nsIRDFNode target ) void onUnassert ( nsIRDFDataSource dataSource , nsIRDFResource source , nsIRDFResource property , nsIRDFNode target )

void onAssert ( nsIRDFDataSource dataSource , nsIRDFResource source , nsIRDFResource property , nsIRDFNode target )

This method is called whenever a new assertion is made in the data source

Arguments:
dataSource: the datasource that is issuing the notification.
source: the subject of the assertion
property: the predicate of the assertion
target: the object of the assertion

void onBeginUpdateBatch ( nsIRDFDataSource dataSource )

This method is called when a datasource is about to send several notifications at once. The observer can use this as a cue to optimize its behavior. The observer can expect the datasource to call endUpdateBatch() when the group of notifications has completed.

Arguments:
dataSource: the datasource that is going to be issuing the notifications.

void onChange ( nsIRDFDataSource dataSource , nsIRDFResource source , nsIRDFResource property , nsIRDFNode oldTarget , nsIRDFNode newTarget )

This method is called when the object of an assertion changes from one value to another.

Arguments:
dataSource: the datasource that is issuing the notification.
source: the subject of the assertion
property: the predicate of the assertion
oldTarget: the old object of the assertion
newTarget: the new object of the assertion

void onEndUpdateBatch ( nsIRDFDataSource dataSource )

This method is called when a datasource has completed issuing a notification group.

Arguments:
dataSource: the datasource that has finished issuing a group of notifications

void onMove ( nsIRDFDataSource dataSource , nsIRDFResource oldSource , nsIRDFResource newSource , nsIRDFResource property , nsIRDFNode target )

This method is called when the subject of an assertion changes from one value to another.

Arguments:
dataSource: the datasource that is issuing the notification.
oldSource: the old subject of the assertion
newSource: the new subject of the assertion
property: the predicate of the assertion
target: the object of the assertion

void onUnassert ( nsIRDFDataSource dataSource , nsIRDFResource source , nsIRDFResource property , nsIRDFNode target )

This method is called whenever an assertion is removed from the data source

Arguments:
dataSource: the datasource that is issuing the notification.
source: the subject of the assertion
property: the predicate of the assertion
target: the object of the assertion

References

This interface is passed as an argument to the following methods:

nsIRDFDataSource.AddObserver, nsIRDFDataSource.RemoveObserver

Reference documentation is generated from Mozilla's source.