org.w3c.domts
Class UserDataMonitor

java.lang.Object
  extended byorg.w3c.domts.UserDataMonitor
All Implemented Interfaces:
org.w3c.dom.UserDataHandler

public class UserDataMonitor
extends java.lang.Object
implements org.w3c.dom.UserDataHandler

This is a utility implementation of UserDataHandler that captures all notifications


Field Summary
 
Fields inherited from interface org.w3c.dom.UserDataHandler
NODE_ADOPTED, NODE_CLONED, NODE_DELETED, NODE_IMPORTED, NODE_RENAMED
 
Constructor Summary
UserDataMonitor()
          Public constructor
 
Method Summary
 java.util.List getAllNotifications()
          Gets list of notifications
 void handle(short operation, java.lang.String key, java.lang.Object data, org.w3c.dom.Node src, org.w3c.dom.Node dst)
          Implementation of UserDataHandler.handle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDataMonitor

public UserDataMonitor()
Public constructor

Method Detail

handle

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

Specified by:
handle in interface org.w3c.dom.UserDataHandler
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

getAllNotifications

public final java.util.List getAllNotifications()
Gets list of notifications

Returns:
List of notifications, may not be null.