Examples of JPathParser


Examples of cc.plural.jsonij.jpath.JPathParser

        @Test
    public void testReadUnionIndex() throws Exception {
        System.out.println("readAttributeIndex");
        String testString = "[1,2,3,4,222,34,900,345,122,22,34,44,55,555,321,22,2]";
        JPathParser.JPathReader target = new JPathParser.JPathReader(testString);
        JPathParser instance = new JPathParser();
        PredicateComponent result = instance.readPredicate(target);
        PredicateComponent expResult = new UnionPredicate(new int[] {1,2,3,4,222,34,900,345,122,22,44,55,555,321});
        assertEquals(expResult, result);
    }
View Full Code Here

Examples of cc.plural.jsonij.jpath.JPathParser

    @Test
    public void testFunctionPredicate() throws Exception {
        System.out.println("testFunctionPredicate");
        String testString = "[?(  regex(   @.firstName   ,   [    \"RAH\",   null]  ))]";
        JPathParser.JPathReader target = new JPathParser.JPathReader(testString);
        JPathParser instance = new JPathParser();
        PredicateComponent result = instance.readPredicate(target);
        System.out.println(result);
    }
View Full Code Here

Examples of cc.plural.jsonij.jpath.JPathParser

        @Test
    public void testFunctionPredicateCombined() throws Exception {
        System.out.println("testFunctionPredicateCombined");
        String testString = "[?(regex(@.firstName,\"RAH\") & @.lastName=\"HAR\")]";
        JPathParser.JPathReader target = new JPathParser.JPathReader(testString);
        JPathParser instance = new JPathParser();
        PredicateComponent result = instance.readPredicate(target);
        System.out.println(result);
    }
View Full Code Here

Examples of jsonij.json.jpath.JPathParser

    public JPath() {
    }

    public static JPath<Component> parse(String path) throws IOException, ParserException {
        JPathParser parser = new JPathParser();
        JPath<Component> jPath = parser.parse(path);
        return jPath;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.