1 19 package org.netbeans.lib.cvsclient.command.watch; 20 21 import org.netbeans.lib.cvsclient.request.*; 22 23 27 public class WatchMode { 28 31 public static final WatchMode ON = new WatchMode("on", CommandRequest.WATCH_ON, 33 false); 34 35 38 public static final WatchMode OFF = new WatchMode("off", CommandRequest.WATCH_OFF, 40 false); 41 42 45 public static final WatchMode ADD = new WatchMode("add", CommandRequest.WATCH_ADD, 47 true); 48 49 52 public static final WatchMode REMOVE = new WatchMode("remove", CommandRequest.WATCH_REMOVE, 54 true); 55 56 private final String name; 57 private final CommandRequest command; 58 private final boolean watchOptionAllowed; 59 60 private WatchMode(String name, CommandRequest command, boolean watchOptionAllowed) { 61 this.name = name; 62 this.command = command; 63 this.watchOptionAllowed = watchOptionAllowed; 64 } 65 66 70 public CommandRequest getCommand() { 71 return command; 72 } 73 74 77 public boolean isWatchOptionAllowed() { 78 return watchOptionAllowed; 79 } 80 81 84 public String toString() { 85 return name; 86 } 87 } 88 | Popular Tags |