Package org.boris.expr.util

Examples of org.boris.expr.util.Criteria


        // Get criteria argument
        Expr ec = evalArg(args[2]);
        if (!(ec instanceof ExprArray)) {
            return ExprError.VALUE;
        }
        Criteria criteria = Criteria.valueOf((ExprArray) ec);

        return evaluate(db, field, criteria);
    }
View Full Code Here


public class ExcelDatabaseFunctionsTest extends TH
{
    public void testDatabase() throws Exception {
        Database db = Database.valueOf(loadArray("db1-d.txt"));
        assertEquals(db.get(2, "Yield"), 9);
        Criteria c = Criteria.valueOf(loadArray("db1-c.txt"));
        assertEquals(c.matches(db, 3), true);
    }
View Full Code Here

TOP

Related Classes of org.boris.expr.util.Criteria

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.