org.w3c.domts
Class UserDataMonitor
java.lang.Object
org.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
Fields inherited from interface org.w3c.dom.UserDataHandler |
NODE_ADOPTED, NODE_CLONED, NODE_DELETED, NODE_IMPORTED, NODE_RENAMED |
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 |
UserDataMonitor
public UserDataMonitor()
- Public constructor
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.UserDataHandlerkey
- See org.w3c.dom.UserDataHandlerdata
- See org.w3c.dom.UserDataHandlersrc
- See org.w3c.dom.UserDataHandlerdst
- See org.w3c.dom.UserDataHandler
getAllNotifications
public final java.util.List getAllNotifications()
- Gets list of notifications
- Returns:
- List of notifications, may not be null.