1 26 27 package org.objectweb.util.cmdline.lib; 28 29 import org.objectweb.util.cmdline.api.Console; 31 import org.objectweb.util.cmdline.api.OptionSilentMessage; 32 33 41 42 public class DefaultOptionSilentMessage 43 extends DefaultOptionBase 44 implements OptionSilentMessage 45 { 46 52 53 Console console_; 54 55 61 66 public 67 DefaultOptionSilentMessage(Console console) 68 { 69 super(new String [] { "--silent"}, 71 new String [0], 72 "Silent output messages"); 73 74 setConsole(console); 76 } 77 78 84 90 97 public void 98 consume(org.objectweb.util.cmdline.api.Iterator iterator) 99 { 100 console_.setSilentMessage(true); 101 } 102 103 109 114 public Console 115 getConsole() 116 { 117 return console_; 118 } 119 120 125 public void 126 setConsole(Console console) 127 { 128 console_ = console; 129 } 130 131 137 } 143 | Popular Tags |