1 20 package org.objectweb.modfact.corba.xmiio.exporter; 21 22 26 public abstract class XMIExportApplication 27 extends org.objectweb.modfact.corba.service.cmdline.common.ModfactApplicationBase 28 implements org.objectweb.modfact.corba.service.cmdline.xmiio.XMIExportApplication { 29 30 31 protected boolean printIOR_ = false; 32 33 34 protected String iorFile_ = "out.ior"; 35 36 37 protected String outputFile_ = new String (); 38 39 40 protected String outputDir_ = new String (); 41 42 43 protected String nameService_ = new String (); 44 45 46 protected String dtdFile_ = new String (); 47 48 54 protected XMIExportApplication(String package_name, String class_name) { 55 this( 56 new org.objectweb.util.cmdline.lib.DefaultCommandLine( 57 new String [] { class_name }, 58 new String [0], 59 new String [] { "Export a model (" + package_name + ") to an XMI file." }, 60 true)); 61 } 62 63 67 private XMIExportApplication(org.objectweb.util.cmdline.lib.DefaultCommandLine commandLine) { 68 super(commandLine); 69 commandLine.addOption(new org.objectweb.modfact.corba.service.cmdline.io.OptionOutput(this)); 71 commandLine.addOption(new org.objectweb.modfact.corba.service.cmdline.xmiio.OptionDTDFile(this)); 72 commandLine.addOption(new org.objectweb.modfact.corba.service.cmdline.xmiio.OptionIORFile(this)); 73 commandLine.addOption(new org.objectweb.modfact.corba.service.cmdline.xmiio.OptionPrintIOR(this)); 74 } 75 76 80 public void setIORFile(String filename) { 81 iorFile_ = filename; 82 } 83 84 88 public void setOutput(String filename) { 89 outputFile_ = filename; 90 } 91 92 96 public void setOutputDir(String directory) { 97 outputDir_ = directory; 98 } 99 100 104 public void setPrintIOR(boolean print) { 105 printIOR_ = print; 106 } 107 108 112 public void setNameService(String nameService) { 113 nameService_ = nameService; 114 } 115 116 120 public void setDTDFile(String filename) { 121 dtdFile_ = filename; 122 } 123 124 } 125 | Popular Tags |