Package com.dtrules.mapping

Examples of com.dtrules.mapping.Mapping


     * We create an instance that has a reference to this
     * session, but is otherwise identical to the reference
     * mapping.
     */
    public synchronized Mapping getMapping(String filename,IRSession session){
        Mapping map = mappings.get(filename);
        if(map != null)return map.clone(session);
        if(map_paths.indexOf(filename)<0){
            throw new RuntimeException("Bad Mapping File: "+filename+" For the rule set: "+name.stringValue());
        }
        map = Mapping.newMapping(rd, session, filename);
        mappings.put(filename, map);
        return map.clone(session);
    }
View Full Code Here


     * We create an instance that has a reference to this
     * session, but is otherwise identical to the reference
     * mapping.
     */
    public synchronized Mapping getMapping(String filename,IRSession session){
        Mapping map = mappings.get(filename);
        if(map != null)return map.clone(session);
        if(map_paths.indexOf(filename)<0){
            throw new RuntimeException("Bad Mapping File: "+filename+" For the rule set: "+name.stringValue());
        }
        map = Mapping.newMapping(rd, session, filename);
        mappings.put(filename, map);
        return map.clone(session);
    }
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());
         autoDataMap.setCurrentGroup("applicationDataload");
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 = session.getDataMap(mapping,null);
          
           datamap.loadXML(input);
          
           mapping.loadData(session, datamap);
       }else{
         autoDataMap = session.getRuleSet().getAutoDataMap(session, mapName());
        
           autoDataMap.setCurrentGroup("applicationDataload");
         autoDataMap.LoadXML(input);
View Full Code Here

TOP

Related Classes of com.dtrules.mapping.Mapping

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.