1 20 package org.objectweb.modfact.corba.service.cmdline.xmiio; 21 22 import org.objectweb.util.cmdline.lib.DefaultOptionBase; 23 24 27 public class OptionPrintIOR extends DefaultOptionBase { 28 29 30 protected XMIIOApplication application_; 31 32 36 public OptionPrintIOR(XMIIOApplication application) { 37 super(); 39 setLabels(new String [] { "-printIOR" }); 40 setDescription(new String [] { "Print IOR to the standard output" }); 41 setMandatory(false); 42 43 application_ = application; 45 } 46 47 51 55 public void consume(org.objectweb.util.cmdline.api.Iterator iterator) { 56 application_.setPrintIOR(true); 57 } 58 59 } 60 | Popular Tags |