org.w3c.domts

Class UserDataMonitor

Implemented Interfaces:
UserDataHandler

public class UserDataMonitor
extends java.lang.Object
implements UserDataHandler

This is a utility implementation of UserDataHandler that captures all notifications

Constructor Summary

UserDataMonitor()
Public constructor

Method Summary

List
getAllNotifications()
Gets list of notifications
void
handle(short operation, String key, Object data, Node src, Node dst)
Implementation of UserDataHandler.handle.

Constructor Details

UserDataMonitor

public UserDataMonitor()
Public constructor

Method Details

getAllNotifications

public final List getAllNotifications()
Gets list of notifications
Returns:
List of notifications, may not be null.

handle

public void handle(short operation,
                   String key,
                   Object data,
                   Node src,
                   Node dst)
Implementation of UserDataHandler.handle. Creates a UserDataNotification for later testing
Parameters:
operation - See org.w3c.dom.UserDataHandler
key - See org.w3c.dom.UserDataHandler
data - See org.w3c.dom.UserDataHandler
src - See org.w3c.dom.UserDataHandler
dst - See org.w3c.dom.UserDataHandler