1 20 package org.objectweb.modfact.corba.service.cmdline.xmiio; 21 22 import org.objectweb.util.cmdline.lib.DefaultOptionBase; 23 24 27 public class OptionDTDFile extends DefaultOptionBase { 28 29 30 protected XMIExportApplication application_; 31 32 36 public OptionDTDFile(XMIExportApplication application) { 37 super(); 39 setLabels(new String [] { "-DTDFile" }); 40 setArguments(new String [] { "uri" }); 41 setDescription(new String [] { "Set the associated DTD uri (file or http)" }); 42 setMandatory(false); 43 44 application_ = application; 46 } 47 48 52 56 public void consume(org.objectweb.util.cmdline.api.Iterator iterator) { 57 checkAlreadySet(iterator); 58 String file = consumeArgument(iterator); 59 application_.setDTDFile(file); 60 } 61 62 } 63 | Popular Tags |