Package net.sf.minuteProject.configuration.bean

Examples of net.sf.minuteProject.configuration.bean.FileSource


      if (filename!= null)
        new DatabaseIO().write(database, filename);
  }
 
  private String getFileSourceName(DataModel dataModel) {
    FileSource fileSource = dataModel.getFileSource();
    Model model = dataModel.getModel();
      String filename = null;
      String filedir = null;
      String version = dataModel.getModel().getVersion();
      String defaultName = model.getName();
      if (version==null)
        defaultName = defaultName+"-"+version;
      if (fileSource!=null) {
        filename = fileSource.getName();
        filedir = fileSource.getDir();
        new File (filedir.toString()).mkdirs();
        if (filename!=null)
          filename = filedir+"/"+filename+".xml";
        else {
          filename = filedir+"/"+defaultName+".xml";
View Full Code Here


    generator.setBaseElement (configuration);
    generator.generate(model.getConfiguration().getTarget());
  }

  private void loadModel(Model model) throws DocumentException {
    FileSource fileSource = model.getDataModel().getFileSource();
    if (fileSource!=null) {
      document = parse(fileSource);
      doc = new DocumentDom4j(document);
      root = document.getRootElement();
      rootElement = getRootElement(root);
View Full Code Here

TOP

Related Classes of net.sf.minuteProject.configuration.bean.FileSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.