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 OptionIDLtoJavaMappingValid extends DefaultOptionBase { 29 30 31 protected GenerationService application_; 32 33 37 public OptionIDLtoJavaMappingValid(GenerationService application) { 38 super(); 40 setLabels(new String [] { "-mappingValid" }); 41 setArguments(new String [] { "boolean" }); 42 setDescription(new String [] { "Set to true if the ORB is IDL to Java language mapping compliant." }); 43 setMandatory(false); 44 45 application_ = application; 47 } 48 49 53 57 public void consume(org.objectweb.util.cmdline.api.Iterator iterator) { 58 String bool = consumeArgument(iterator); 59 if (bool.equalsIgnoreCase("true")) 60 application_.setMappingValid(true); 61 else 62 application_.setMappingValid(false); 63 } 64 65 } 66 | Popular Tags |