Package org.xmldb.common.xml.queries

Examples of org.xmldb.common.xml.queries.XObject


                            select = select.substring(0, select.indexOf("\""));
                            getLogger().debug(".act() Select Node: " + select);

                            // Check if node exists
                            xpath.setQString(select);
                            XObject result = xpath.execute(document);
                            NodeList selectionNodeList = result.nodeset();
                            if (selectionNodeList.getLength() == 0) {
                                getLogger()
                                        .debug(".act(): Node does not exist (might have been deleted during update): "
                                                + select);
                            } else {
View Full Code Here


                            select = select.substring(0, select.indexOf("\""));
                            log.debug(".act() Select Node: " + select);

                            // Check if node exists
                            xpath.setQString(select);
                            XObject result = xpath.execute(document);
                            NodeList selectionNodeList = result.nodeset();
                            if (selectionNodeList.getLength() == 0) {
                                log.warn(".act(): Node does not exist (might have been deleted during update): " + select);
                            } else {
                                String xupdateModifications = null;
                                if (pname.indexOf("xupdate:update") > 0) {
View Full Code Here

                            select = select.substring(0, select.indexOf("\""));
                            log.debug(".act() Select Node: " + select);

                            // Check if node exists
                            xpath.setQString(select);
                            XObject result = xpath.execute(document);
                            NodeList selectionNodeList = result.nodeset();
                            if (selectionNodeList.getLength() == 0) {
                                log.warn(".act(): Node does not exist (might have been deleted during update): " + select);
                            } else {
                                String xupdateModifications = null;
                                if (pname.indexOf("xupdate:update") > 0) {
View Full Code Here

   *
   */
  protected NodeList selectNewNodes(String query, Node contextNode) throws Exception {
    XPathQuery xpath = XPathQueryFactory.newInstance().newXPathQuery();
    xpath.setQString(query);
    XObject xResult = xpath.execute(contextNode);
    if (xResult.getType() != XObject.CLASS_NODESET) {
      throw new Exception("XPath leads not to a Node or NodeList !");
    }
    NodeList result = xResult.nodeset();
    return result;
  }
View Full Code Here

  public synchronized void selectNodes(String qString) throws Exception {
    if (qString == null) {
      throw new IllegalArgumentException("Argument qString must not be null.");
    }
    xpath.setQString(qString);
    XObject result = xpath.execute(contextNode);
    if (result.getType() != XObject.CLASS_NODESET) {
      throw new Exception("XPath leads not to a Node or NodeList !");
    }
    selectionNodeList = result.nodeset();
    if (selectionNodeList.getLength() == 0) {
//            throw new LexusException(LexusException.NO_NODES_SELECTED);
      throw new Exception(".selectNodes(): No nodes selected: " + qString);
    }
  }
View Full Code Here

                        select = select.substring(0, select.indexOf("\""));
                        log.debug(".act() Select Node: " + select);

                        // Check if node exists
                        xpath.setQString(select);
                        XObject result = xpath.execute(document);
                        NodeList selectionNodeList = result.nodeset();
                        if (selectionNodeList.getLength() == 0) {
                            log.debug(
                                ".act(): Node does not exist (might have been deleted during update): "
                                    + select);
                        } else {
View Full Code Here

                            select = select.substring(0, select.indexOf("\""));
                            getLogger().debug(".act() Select Node: " + select);

                            // Check if node exists
                            xpath.setQString(select);
                            XObject result = xpath.execute(document);
                            NodeList selectionNodeList = result.nodeset();
                            if (selectionNodeList.getLength() == 0) {
                                getLogger()
                                        .debug(".act(): Node does not exist (might have been deleted during update): "
                                                + select);
                            } else {
View Full Code Here

                        select = select.substring(0, select.indexOf("\""));
                        log.debug(".act() Select Node: " + select);

                        // Check if node exists
                        xpath.setQString(select);
                        XObject result = xpath.execute(document);
                        NodeList selectionNodeList = result.nodeset();
                        if (selectionNodeList.getLength() == 0) {
                            log.debug(
                                ".act(): Node does not exist (might have been deleted during update): "
                                    + select);
                        } else {
View Full Code Here

TOP

Related Classes of org.xmldb.common.xml.queries.XObject

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.