Package org.dom4j

Examples of org.dom4j.Node.selectSingleNode()


        }

        final Envelope envelope = validateResponse(response);

        final Node result1 = envelope.doc.selectSingleNode("result");
        final String abortStatus = result1.selectSingleNode("abort/@status").getStringValue();
        final boolean result = !"failed".equals(abortStatus);
        final StringBuffer sb = envelope.successMessages();
        return new DispatcherResult() {
            public boolean isSuccessful() {
                return result;
View Full Code Here


        if (succeeded > 0) {
            logger.debug("Succeeded deleting " + succeeded + " Jobs:");
            final List nodes = result.selectNodes("/result/deleteJobs/succeeded/deleteJobResult");
            for (final Object node2 : nodes) {
                final Node node1 = (Node) node2;
                final String message = null != node1.selectSingleNode("message") ? node1.selectSingleNode("message")
                    .getStringValue() : "Succeeded";
                final DeleteJobResult storedJobLoadResult = parseAPIJobDeleteResult(node1, true, message);
                resultList.add(storedJobLoadResult);

            }
View Full Code Here

        if (succeeded > 0) {
            logger.debug("Succeeded deleting " + succeeded + " Jobs:");
            final List nodes = result.selectNodes("/result/deleteJobs/succeeded/deleteJobResult");
            for (final Object node2 : nodes) {
                final Node node1 = (Node) node2;
                final String message = null != node1.selectSingleNode("message") ? node1.selectSingleNode("message")
                    .getStringValue() : "Succeeded";
                final DeleteJobResult storedJobLoadResult = parseAPIJobDeleteResult(node1, true, message);
                resultList.add(storedJobLoadResult);

            }
View Full Code Here

        if (failed > 0) {
            logger.debug("Failed to delete " + failed + " Jobs:");
            final List nodes = result.selectNodes("/result/deleteJobs/failed/deleteJobResult");
            for (final Object node2 : nodes) {
                final Node node1 = (Node) node2;
                final String error = null != node1.selectSingleNode("error") ? node1.selectSingleNode("error")
                    .getStringValue() : "Failed";
                final DeleteJobResult storedJobLoadResult = parseAPIJobDeleteResult(node1, false, error);

                resultList.add(storedJobLoadResult);
            }
View Full Code Here

        if (failed > 0) {
            logger.debug("Failed to delete " + failed + " Jobs:");
            final List nodes = result.selectNodes("/result/deleteJobs/failed/deleteJobResult");
            for (final Object node2 : nodes) {
                final Node node1 = (Node) node2;
                final String error = null != node1.selectSingleNode("error") ? node1.selectSingleNode("error")
                    .getStringValue() : "Failed";
                final DeleteJobResult storedJobLoadResult = parseAPIJobDeleteResult(node1, false, error);

                resultList.add(storedJobLoadResult);
            }
View Full Code Here

        final ArrayList<IStoredJob> list = new ArrayList<IStoredJob>();

        final Node jobs = resultDoc.selectSingleNode("/result/jobs");
        for (final Object job1 : jobs.selectNodes("job")) {
            final Node job = (Node) job1;
            final String id = job.selectSingleNode("@id").getStringValue();
            final String name = job.selectSingleNode("name").getStringValue();
            final String group = job.selectSingleNode("group").getStringValue();
            final String desc = job.selectSingleNode("description").getStringValue();
            final String url = createJobURL(id);
            list.add(StoredJobImpl.create(id, name, url, group, desc, projectFilter));
View Full Code Here

        final Node jobs = resultDoc.selectSingleNode("/result/jobs");
        for (final Object job1 : jobs.selectNodes("job")) {
            final Node job = (Node) job1;
            final String id = job.selectSingleNode("@id").getStringValue();
            final String name = job.selectSingleNode("name").getStringValue();
            final String group = job.selectSingleNode("group").getStringValue();
            final String desc = job.selectSingleNode("description").getStringValue();
            final String url = createJobURL(id);
            list.add(StoredJobImpl.create(id, name, url, group, desc, projectFilter));
        }
View Full Code Here

        final Node jobs = resultDoc.selectSingleNode("/result/jobs");
        for (final Object job1 : jobs.selectNodes("job")) {
            final Node job = (Node) job1;
            final String id = job.selectSingleNode("@id").getStringValue();
            final String name = job.selectSingleNode("name").getStringValue();
            final String group = job.selectSingleNode("group").getStringValue();
            final String desc = job.selectSingleNode("description").getStringValue();
            final String url = createJobURL(id);
            list.add(StoredJobImpl.create(id, name, url, group, desc, projectFilter));
        }
View Full Code Here

        for (final Object job1 : jobs.selectNodes("job")) {
            final Node job = (Node) job1;
            final String id = job.selectSingleNode("@id").getStringValue();
            final String name = job.selectSingleNode("name").getStringValue();
            final String group = job.selectSingleNode("group").getStringValue();
            final String desc = job.selectSingleNode("description").getStringValue();
            final String url = createJobURL(id);
            list.add(StoredJobImpl.create(id, name, url, group, desc, projectFilter));
        }

        return list;
View Full Code Here

        if (failed > 0) {
            logger.debug("Failed to add " + failed + " Jobs:");
            final List nodes = result.selectNodes("/result/failed/job");
            for (final Object node2 : nodes) {
                final Node node1 = (Node) node2;
                final String error = null != node1.selectSingleNode("error") ? node1.selectSingleNode("error")
                    .getStringValue() : "Failed";
                final IStoredJobLoadResult storedJobLoadResult = parseAPIJobResult(node1, false, false,
                    error);

                resultList.add(storedJobLoadResult);
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.