1 20 package org.objectweb.modfact.corba.service.cmdline.client; 21 22 import org.objectweb.modfact.corba.service.GenerationService; 23 import org.objectweb.util.cmdline.lib.DefaultOptionBase; 24 25 28 public class OptionDTD extends DefaultOptionBase { 29 30 31 protected GenerationService application_; 32 33 37 public OptionDTD(GenerationService application) { 38 super(); 40 setLabels(new String [] { "-dtd" }); 41 setDescription(new String [] { "Generation of DTD file" }); 42 setMandatory(false); 43 44 application_ = application; 46 } 47 48 52 56 public void consume(org.objectweb.util.cmdline.api.Iterator iterator) { 57 application_.setDTD(true); 58 } 59 60 } 61 | Popular Tags |