Package com.hp.hpl.jena.sparql.function

Examples of com.hp.hpl.jena.sparql.function.FunctionEnvBase


       
        if ( !doEval )
            return ;
       
        try {
            FunctionEnv env = new FunctionEnvBase(context) ;
            NodeValue v = expr.eval(binding, env) ;
            checkValue(expr, v) ;
        }
        catch (NullPointerException ex)
        { throw ex ; }
View Full Code Here


    }

    private static void testBoolean(String string, boolean b, Binding env)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( env, new FunctionEnvBase()) ;
        assertTrue(v.isBoolean()) ;
        assertEquals(b, v.getBoolean()) ;
    }
View Full Code Here

    }

    private static void testURI(String string, String uri)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( env, new FunctionEnvBase()) ;
        assertTrue(v.isIRI()) ;
        assertEquals(uri, v.getNode().getURI()) ;
    }
View Full Code Here

    }

    private static void testString(String string, String string2)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( env, new FunctionEnvBase()) ;
        assertTrue(v.isString()) ;
        assertEquals(string2, v.getString()) ;
    }
View Full Code Here

    }

    private static void testString(String string)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( env, new FunctionEnvBase()) ;
        assertTrue(v.isString()) ;
    }
View Full Code Here

    }

    private static void testNumeric(String string, int i)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( BindingFactory.binding() , new FunctionEnvBase()) ;
        assertTrue(v.isInteger()) ;
        assertEquals(i, v.getInteger().intValue()) ;
    }
View Full Code Here

    }
   
    private static void testNumeric(String string, BigDecimal decimal)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( BindingFactory.binding() , new FunctionEnvBase()) ;
        assertTrue(v.isDecimal()) ;
        assertEquals(decimal, v.getDecimal()) ;
    }
View Full Code Here

    }

    private static void testNumeric(String string, BigInteger integer)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( BindingFactory.binding() , new FunctionEnvBase()) ;
        assertTrue(v.isInteger()) ;
        assertEquals(integer, v.getInteger()) ;
    }
View Full Code Here

        assertEquals(integer, v.getInteger()) ;
    }
    private static void testNumeric(String string, double d)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( BindingFactory.binding(), new FunctionEnvBase()) ;
        assertTrue(v.isDouble()) ;
        assertEquals(d, v.getDouble(),0) ;
    }
View Full Code Here

    }

    private static void testEval(String string)
    {
        Expr expr = parse(string) ;
        NodeValue v = expr.eval( BindingFactory.binding(), new FunctionEnvBase()) ;
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sparql.function.FunctionEnvBase

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.