Package com.dtrules.mapping

Examples of com.dtrules.mapping.DataMap$XmlLoader


     
      for(int i=1;i<=numCases; i++){
        if(i>0 && i%inc   ==0 )ostream.print(i+" ");
        if(i>0 && i%lines ==0 )ostream.print("\n");
        OutputStream out = new FileOutputStream(filename(name,numCases,i));
                DataMap datamap = session.getDataMap(session.getMapping(),ruleset);
       
                DataObj request = generate();
        request.write2DataMap(datamap);
                datamap.print(out);
      }
    } catch (FileNotFoundException e) {
      ostream.println(e.toString());
      e.printStackTrace();
    }
View Full Code Here


     
      for(int i=1;i<=numCases; i++){
        if(i>0 && i%inc   ==0 )ostream.print(i+" ");
        if(i>0 && i%lines ==0 )ostream.print("\n");
        OutputStream out = new FileOutputStream(filename(name,numCases,i));
                DataMap datamap = session.getDataMap(session.getMapping(),testObj.getRuleSetName());
       
                DataObj request = generate();
        request.write2DataMap(datamap);
                datamap.print(out);
      }
    } catch (FileNotFoundException e) {
      ostream.println(e.toString());
      e.printStackTrace();
    }
View Full Code Here

    
     public void loadData(IRSession session, String path, String dataset)throws Exception {
       InputStream input = new FileInputStream(path+"/"+dataset);
       if( harnessVersion() < 2){
           Mapping   mapping  = session.getMapping();
           DataMap datamap = session.getDataMap(mapping,null);
           datamap.loadXML(input);
           mapping.loadData(session, datamap);
          
           this.datamap = datamap;
       }else{
         AutoDataMap autoDataMap = session.getRuleSet().getAutoDataMap(session, mapName());
View Full Code Here

TOP

Related Classes of com.dtrules.mapping.DataMap$XmlLoader

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.