1 20 package org.objectweb.modfact.corba.service.cmdline.xmiio; 21 22 import org.objectweb.util.cmdline.lib.DefaultOptionBase; 23 24 27 public class OptionIORFile extends DefaultOptionBase { 28 29 30 protected XMIIOApplication application_; 31 32 36 public OptionIORFile(XMIIOApplication application) { 37 super(); 39 setLabels(new String [] { "-IORFile" }); 40 setArguments(new String [] { "file" }); 41 setDescription(new String [] { "Set the path to the IOR file" }); 42 setMandatory(false); 43 44 application_ = application; 46 application_.setIORFile("out.ior"); 48 } 49 50 54 58 public void consume(org.objectweb.util.cmdline.api.Iterator iterator) { 59 checkAlreadySet(iterator); 60 String file = consumeArgument(iterator); 61 application_.setIORFile(file); 62 } 63 64 } 65 | Popular Tags |