CmdArgs{ (@ private String categoryName_; private File definitionFileName_; private File implOutDir_; private File headerOutDir_; private File makeFileName_; private File outFileName_; private String includePrefix_; private File templateDir_; private boolean debug_; private boolean verbose_; @) init(@ categoryName_ = null; // No default definitionFileName_ = null; // No default implOutDir_ = null; // Default,null, means no code generation headerOutDir_ = null; // Default,null, means no code generation makeFileName_ = null; // Default, ?? outFileName_ = null; // Default,null, means no log file includePrefix_ = null; // Default,null, means no include prefix templateDir_ = null; // Default is debug_ = false; // Default is 'false' verbose_ = false; // Default is 'false' @) (@ public void fixupDefaults() throws ParseException { if(templateDir_ == null){ // Eventually test system properties before giving up // Note: this requires invoking the java interpreter with a // -D option to define the property, STUBGEN_TEMPLATES throw new ParseException("template directory undefined"); } } public void setCategoryName(String value) throws ParseException { if(categoryName_ != null) throw new ParseException( "Multiple imlementation output directory"); categoryName_ = value; } public String getCategoryName(){ return categoryName_; } public void setDefinitionFileName(String value) throws ParseException { if(definitionFileName_ != null) throw new ParseException( "Multiple imlementation output directory"); definitionFileName_ = new File(value); } public File getDefinitionFileName(){ return definitionFileName_; } public void setImplOutDir(String value) throws ParseException { if(implOutDir_ != null) throw new ParseException( "Multiple imlementation output directory"); implOutDir_ = new File(value); } public File getImplOutDir(){ return implOutDir_; } public void setHeaderOutDir(String value) throws ParseException { if(headerOutDir_ != null) throw new ParseException( "Multiple header output directory"); headerOutDir_ = new File(value); } public File getHeaderOutDir(){ return headerOutDir_; } public void setMakeFileName(String value) throws ParseException { if(makeFileName_ != null) throw new ParseException( "Multiple header output directory"); makeFileName_ = new File(value); } public File getMakeFileName(){ return makeFileName_; } public void setOutFileName(String value) throws ParseException { if(outFileName_ != null) throw new ParseException( "Multiple header output directory"); outFileName_ = new File(value); } public File getOutFileName(){ return outFileName_; } public void setIncludePrefix(String value) throws ParseException { if(includePrefix_ != null) throw new ParseException( "Multiple header output directory"); includePrefix_ = value; } public String getIncludePrefix(){ return includePrefix_; } public void setTemplateDir(String value) throws ParseException { if(templateDir_ != null) throw new ParseException( "Multiple header output directory"); templateDir_ = new File(value); } public File getTemplateDir(){ return templateDir_; } public File getConfigFileName(){ return new File(templateDir_+File.separator+"Config"); } public void enableDebug() throws ParseException { debug_= true; } public void enableVerbose() throws ParseException { verbose_= true; } @) }