Package org.drools.definitions.rule.impl

Examples of org.drools.definitions.rule.impl.GlobalImpl


    }

    public Collection<Global> getGlobalVariables() {
        List<Global> list = new ArrayList<Global>( pkg.getGlobals().size() );
        for ( Map.Entry<String, String> global : pkg.getGlobals().entrySet() ) {
            list.add( new GlobalImpl( global.getKey(), global.getValue() ) );
        }
        return Collections.unmodifiableCollection( list );
    }
View Full Code Here


        assertEquals( 2, pack.getFunctionNames().size() );
        assertTrue( pack.getFunctionNames().contains( "fun1" ) );
        assertTrue( pack.getFunctionNames().contains( "fun2" ) );

        assertEquals( 2, pack.getGlobalVariables().size() );
        GlobalImpl g1 = new GlobalImpl( "N", "java.lang.Integer" );
        GlobalImpl g2 = new GlobalImpl( "list", "java.util.List" );
        assertTrue( pack.getGlobalVariables().contains( g1 ) );
        assertTrue( pack.getGlobalVariables().contains( g2 ) );

        assertEquals( 2, pack.getFactTypes().size() );
        FactType type;
View Full Code Here

    }

    public Collection<Global> getGlobalVariables() {
        List<Global> list = new ArrayList<Global>( pkg.getGlobals().size() );
        for ( Map.Entry<String, String> global : pkg.getGlobals().entrySet() ) {
            list.add( new GlobalImpl( global.getKey(), global.getValue() ) );
        }
        return Collections.unmodifiableCollection( list );
    }
View Full Code Here

        assertEquals( 2, pack.getFunctionNames().size() );
        assertTrue( pack.getFunctionNames().contains( "fun1" ) );
        assertTrue( pack.getFunctionNames().contains( "fun2" ) );

        assertEquals( 2, pack.getGlobalVariables().size() );
        GlobalImpl g1 = new GlobalImpl( "N", "java.lang.Integer" );
        GlobalImpl g2 = new GlobalImpl( "list", "java.util.List" );
        assertTrue( pack.getGlobalVariables().contains( g1 ) );
        assertTrue( pack.getGlobalVariables().contains( g2 ) );

        assertEquals( 2, pack.getFactTypes().size() );
        FactType type;
View Full Code Here

    }

    public Collection<Global> getGlobalVariables() {
        List<Global> list = new ArrayList<Global>( pkg.getGlobals().size() );
        for ( Map.Entry<String, String> global : pkg.getGlobals().entrySet() ) {
            list.add( new GlobalImpl( global.getKey(), global.getValue() ) );
        }
        return Collections.unmodifiableCollection( list );
    }
View Full Code Here

TOP

Related Classes of org.drools.definitions.rule.impl.GlobalImpl

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.