Package org.xmldb.api.base

Examples of org.xmldb.api.base.Collection.storeResource()


        try {
            Collection testCollection = getTestCollection();
            doc = testCollection.createResource(MODULE1_NAME, "BinaryResource");
            doc.setContent(module1);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);

            doc = testCollection.createResource(MODULE2_NAME, "BinaryResource");
            doc.setContent(module2);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);
View Full Code Here


            testCollection.storeResource(doc);

            doc = testCollection.createResource(MODULE2_NAME, "BinaryResource");
            doc.setContent(module2);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);

            doc = testCollection.createResource(NAMESPACED_NAME, "XMLResource");
            doc.setContent(namespacedDocument);
            ((EXistResource) doc).setMimeType("application/xml");
            testCollection.storeResource(doc);
View Full Code Here

            testCollection.storeResource(doc);

            doc = testCollection.createResource(NAMESPACED_NAME, "XMLResource");
            doc.setContent(namespacedDocument);
            ((EXistResource) doc).setMimeType("application/xml");
            testCollection.storeResource(doc);

            XPathQueryService service =
                    (XPathQueryService) testCollection.getService(
                    "XPathQueryService",
                    "1.0");
View Full Code Here

        try {
            Collection testCollection = getTestCollection();
            doc = testCollection.createResource(MODULE1_NAME, "BinaryResource");
            doc.setContent(module1);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);

            doc = testCollection.createResource(MODULE3_NAME, "BinaryResource");
            doc.setContent(module3);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);
View Full Code Here

            testCollection.storeResource(doc);

            doc = testCollection.createResource(MODULE3_NAME, "BinaryResource");
            doc.setContent(module3);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);

            doc = testCollection.createResource(MODULE4_NAME, "BinaryResource");
            doc.setContent(module4);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);
View Full Code Here

            testCollection.storeResource(doc);

            doc = testCollection.createResource(MODULE4_NAME, "BinaryResource");
            doc.setContent(module4);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);

            doc = testCollection.createResource(FATHER_MODULE_NAME, "BinaryResource");
            doc.setContent(fatherModule);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);
View Full Code Here

            testCollection.storeResource(doc);

            doc = testCollection.createResource(FATHER_MODULE_NAME, "BinaryResource");
            doc.setContent(fatherModule);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);

            doc = testCollection.createResource(CHILD1_MODULE_NAME, "BinaryResource");
            doc.setContent(child1Module);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);
View Full Code Here

            testCollection.storeResource(doc);

            doc = testCollection.createResource(CHILD1_MODULE_NAME, "BinaryResource");
            doc.setContent(child1Module);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);

            doc = testCollection.createResource(CHILD2_MODULE_NAME, "BinaryResource");
            doc.setContent(child2Module);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);
View Full Code Here

            testCollection.storeResource(doc);

            doc = testCollection.createResource(CHILD2_MODULE_NAME, "BinaryResource");
            doc.setContent(child2Module);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);

            XPathQueryService service =
                    (XPathQueryService) testCollection.getService(
                    "XPathQueryService",
                    "1.0");
View Full Code Here

        try {
            Collection testCollection = getTestCollection();
            Resource doc = testCollection.createResource(MODULE7_NAME, "BinaryResource");
            doc.setContent(module7);
            ((EXistResource) doc).setMimeType("application/xquery");
            testCollection.storeResource(doc);

            XPathQueryService service = (XPathQueryService) testCollection.getService("XPathQueryService", "1.0");
            service.setProperty(OutputKeys.INDENT, "no");
            String query = "xquery version \"1.0\";\n" +
                    "import module namespace foo=\"foo\" at \"" + URI + "/test/" + MODULE7_NAME + "\";\n" +
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.