public class DefaultNotification extends java.lang.Object implements Notifier.Notification
Notifier.Notification
interface.Constructor and Description |
---|
DefaultNotification(Container root,
java.util.Collection<java.lang.String> paths)
Constructs a Notification object
|
DefaultNotification(Container root,
java.lang.String path)
Constructs a Notification object for a single path (will be converted to a singleton collection)
|
Modifier and Type | Method and Description |
---|---|
Container |
getContainer() |
java.util.Collection<java.lang.String> |
getPaths() |
java.lang.String |
toString() |
public DefaultNotification(Container root, java.lang.String path)
Path must be absolute, and the container passed must be from the notifier the notification is used for.
Path may be prefixed with '!' to mean 'non recursive' eg.
root
- path
- public DefaultNotification(Container root, java.util.Collection<java.lang.String> paths)
Paths must be absolute, and the container passed must be from the notifier the notification is used for.
Paths may be prefixed with '!' to mean 'non recursive' eg.
root
- the container to check the paths against. Must not be null.paths
- the collection of paths to check. Must not be null.java.lang.IllegalArgumentException
- if either argument is null.public Container getContainer()
getContainer
in interface Notifier.Notification
public java.util.Collection<java.lang.String> getPaths()
getPaths
in interface Notifier.Notification
public java.lang.String toString()
toString
in class java.lang.Object