Package our.apache.commons.jxpath

Examples of our.apache.commons.jxpath.Function


            new ImmutableExpandedName("http://spaceC",
                                      "c");
        ImmutableExpandedName nameC2 =
            new ImmutableExpandedName("http://spaceC",
                                      "c2");
        Function a = new TestFunction();
        Function b = new TestFunction();
        Function c = new TestFunction();
        Set namespaceURLs;
        Set expectedURLs = new HashSet();

        functions.addFunction(nameA, a);
        functions.addFunction(nameB, b);
View Full Code Here


                                      "a");
        ImmutableExpandedName nameB = new ImmutableExpandedName("", "b");
        ImmutableExpandedName nameC =
            new ImmutableExpandedName("http://spaceC",
                                      "c");
        Function a = new TestFunction();
        Function b = new TestFunction();

        functions.addFunction(nameA, a);
        functions.addFunction(nameB, b);

        // Add the non-default prefixes
View Full Code Here

     * handles functions that are not prefixed
     * @throws Exception if an error occurs
     */
    public void testUnprefixedFunction() throws Exception {
        // create a function
        Function function = new TestFunction();
        // create a JXPathFunctions instance
        NamespacePrefixTracker namespacePrefixTracker =
            new DefaultNamespacePrefixTracker();
        JXPathFunctions functions =
            new JXPathFunctions(namespacePrefixTracker);
View Full Code Here

            new ImmutableExpandedName("http://spaceC",
                                      "c");
        ImmutableExpandedName nameA2 =
            new ImmutableExpandedName("http://spaceA",
                                      "a");
        Function a = new TestFunction();
        Function b = new TestFunction();
        Function c = new TestFunction();

        assertEquals("there should be no functions registered yet",
                     0,
                     functions.functions.size());
View Full Code Here

TOP

Related Classes of our.apache.commons.jxpath.Function

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.