public class WatchMode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static WatchMode |
ADD
This is the WatchMode that adds watching for the specified Watch.
|
static WatchMode |
OFF
This is the WatchMode that disables watching.
|
static WatchMode |
ON
This is the WatchMode that enables watching.
|
static WatchMode |
REMOVE
This is the WatchMode that removes watching for the specified Watch.
|
Modifier and Type | Method and Description |
---|---|
CommandRequest |
getCommand()
Returns the CommandRequest that is used when executing the WatchCommand
with this WatchMode.
|
boolean |
isWatchOptionAllowed()
Indicated, whether a non-null watch-option is allowed in the WatchCommand.
|
java.lang.String |
toString()
Returns the name of this WatchMode ("on", "off", "add", "remove").
|
public static final WatchMode ON
public static final WatchMode OFF
public static final WatchMode ADD
public static final WatchMode REMOVE
public CommandRequest getCommand()
public boolean isWatchOptionAllowed()
public java.lang.String toString()
toString
in class java.lang.Object
Built on January 12 2013. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.