Package com.dtrules.compiler.ebl

Examples of com.dtrules.compiler.ebl.ELType


     * @param name
     * @param itype
     * @throws Exception
     */
    private void addType( IREntity entity, RName name, int itype) throws Exception {
        ELType type =  (ELType) types.get(name);
        if(type==null){
            type      = new ELType(name,itype,entity);
            types.put(name,type);
        }else{
            if(type.getType()!=itype){
                String entitylist = entity.getName().stringValue();
                for(int i=0; i<type.getEntities().size(); i++){
                    entitylist += " "+type.getEntities().get(i).getName().stringValue();
                }
                throw new Exception("Conflicting types for attribute "+name+" on "+entitylist);
            }
            type.addEntityAttribute(entity);
        }

    }
View Full Code Here


        }
       
        Iterator<RName> tables = ef.getDecisionTableRNameIterator();
        while(tables.hasNext()){
            RName tablename = tables.next();
            ELType type = new ELType(tablename,IRObject.iDecisiontable,(REntity) ef.getDecisiontables());
            if(types.containsKey(tablename)){
                System.out.println("Multiple Decision Tables or Types found with the name '"+types.get(tablename)+"'");
            }
            types.put(tablename, type);
        }
View Full Code Here

TOP

Related Classes of com.dtrules.compiler.ebl.ELType

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.