public boolean buildAuto(Properties autoProp) { FileIO builder = new FileIO(); _autoModel = new Model(); try { builder.parseProperties(autoProp, _autoModel); } catch (AutoException e) { System.err.println(e.getMessage()); if (e.getErrCode() == 102065) // missing properties, don't continue with this file. _autoModel = null; } if (_autoModel != null) { _autoModel.setDefaultOptionChoices(); addAuto(_autoModel); return this.isAutoHere(_autoModel.getModelName()); } else return false; }
public void addAuto(Model autoModel) { if (!_autoModelGroup.containsKey(autoModel.getModelName())) { _autoModelGroup.put(autoModel.getModelName(), autoModel); } }