Package org.xdams.xml.builder

Examples of org.xdams.xml.builder.XMLBuilder.valoreNodo()


      try {
        xwconn = connectionManager.getConnection(workFlowBean.getArchive());
        XMLBuilder theXMLconf = confBean.getTheXMLConfQuery();
        // System.out.println("theXMLconftheXMLconftheXMLconftheXMLconf " + theXMLconf);
        it.highwaytech.db.QueryResult qr = null;
        if (theXMLconf.valoreNodo("/root/query/@numDocInfoQuery").equals("")) {
          qr = xwconn.selectQR("([UD,/xw/@UdType/]=\"" + workFlowBean.getArchive().getPne() + "\")");
        } else {
          qr = xwconn.selectQR(theXMLconf.valoreNodo("/root/query/@numDocInfoQuery", false));
        }
        queryBean.setTotNumDoc(qr.elements);
View Full Code Here


        // System.out.println("theXMLconftheXMLconftheXMLconftheXMLconf " + theXMLconf);
        it.highwaytech.db.QueryResult qr = null;
        if (theXMLconf.valoreNodo("/root/query/@numDocInfoQuery").equals("")) {
          qr = xwconn.selectQR("([UD,/xw/@UdType/]=\"" + workFlowBean.getArchive().getPne() + "\")");
        } else {
          qr = xwconn.selectQR(theXMLconf.valoreNodo("/root/query/@numDocInfoQuery", false));
        }
        queryBean.setTotNumDoc(qr.elements);
        queryBean.setLastUpdate(xwconn.getLastUpdate());
      } catch (Exception e) {
        // TODO: handle exception
View Full Code Here

        /* fine ordino la request e creo l'XML */
        XMLBuilder theXMLconf = confBean.getTheXMLConfEditing();

        for (int a = 0; a < theXMLconf.contaNodi("/root/fixedValues/cdata/elemento"); a++) {
          String ilNodoCorrente = theXMLconf.valoreNodo("/root/fixedValues/cdata/elemento[" + (a + 1) + "]/@path");
          String ilValoreCorrente = theXMLconf.valoreNodo("/root/fixedValues/cdata/elemento[" + (a + 1) + "]/text()");
          ilValoreCorrente = ilValoreCorrente.replaceAll(" ", "_");
          ilValoreCorrente = ilValoreCorrente.replaceAll("<", "-");
          ilValoreCorrente = ilValoreCorrente.replaceAll(">", "-");
          if (ilNodoCorrente.endsWith("/@cdata")) {
View Full Code Here

        /* fine ordino la request e creo l'XML */
        XMLBuilder theXMLconf = confBean.getTheXMLConfEditing();

        for (int a = 0; a < theXMLconf.contaNodi("/root/fixedValues/cdata/elemento"); a++) {
          String ilNodoCorrente = theXMLconf.valoreNodo("/root/fixedValues/cdata/elemento[" + (a + 1) + "]/@path");
          String ilValoreCorrente = theXMLconf.valoreNodo("/root/fixedValues/cdata/elemento[" + (a + 1) + "]/text()");
          ilValoreCorrente = ilValoreCorrente.replaceAll(" ", "_");
          ilValoreCorrente = ilValoreCorrente.replaceAll("<", "-");
          ilValoreCorrente = ilValoreCorrente.replaceAll(">", "-");
          if (ilNodoCorrente.endsWith("/@cdata")) {
            ilNodoCorrente = StringUtils.chomp(ilNodoCorrente, "/@cdata");
View Full Code Here

          } else {
            builder.insertNode(ilNodoCorrente, ilValoreCorrente); // QUI INSERISCO IL VERO VALORE
          }
          // builder.insertNode(ilNodoCorrente, ilValoreCorrente);
        }
        if (!(theXMLconf.valoreNodo("/root/fixedValues/text()")).equals("")) {
          builder.insertNode("/" + xwconn.getPne() + "/text()", theXMLconf.valoreNodo("/root/fixedValues/text()"));
        }

        titleRule = theXMLconf.valoreNodo("/root/param/elemento[@id='codice_identificativo' and @auto_increment='true']/@titleRule");
        // gestione generazione unitid
View Full Code Here

            builder.insertNode(ilNodoCorrente, ilValoreCorrente); // QUI INSERISCO IL VERO VALORE
          }
          // builder.insertNode(ilNodoCorrente, ilValoreCorrente);
        }
        if (!(theXMLconf.valoreNodo("/root/fixedValues/text()")).equals("")) {
          builder.insertNode("/" + xwconn.getPne() + "/text()", theXMLconf.valoreNodo("/root/fixedValues/text()"));
        }

        titleRule = theXMLconf.valoreNodo("/root/param/elemento[@id='codice_identificativo' and @auto_increment='true']/@titleRule");
        // gestione generazione unitid
        if (!titleRule.equals("")) {
View Full Code Here

        }
        if (!(theXMLconf.valoreNodo("/root/fixedValues/text()")).equals("")) {
          builder.insertNode("/" + xwconn.getPne() + "/text()", theXMLconf.valoreNodo("/root/fixedValues/text()"));
        }

        titleRule = theXMLconf.valoreNodo("/root/param/elemento[@id='codice_identificativo' and @auto_increment='true']/@titleRule");
        // gestione generazione unitid
        if (!titleRule.equals("")) {
          String unitid = "";
          String newUnitid = "";
          String fatherUnitid = "";
View Full Code Here

            xwconn.restoreTitleRole();
            e.printStackTrace();
          }

          try {
            if (!(theXMLconf.valoreNodo("/root/param/elemento[@id='codice_identificativo' and @auto_increment='true']/text()")).equals(""))
              builder.insertNode(theXMLconf.valoreNodo("/root/param/elemento[@id='codice_identificativo' and @auto_increment='true']/text()"), unitid);
          } catch (Exception e) {
            e.printStackTrace();
          }
        }
View Full Code Here

            e.printStackTrace();
          }

          try {
            if (!(theXMLconf.valoreNodo("/root/param/elemento[@id='codice_identificativo' and @auto_increment='true']/text()")).equals(""))
              builder.insertNode(theXMLconf.valoreNodo("/root/param/elemento[@id='codice_identificativo' and @auto_increment='true']/text()"), unitid);
          } catch (Exception e) {
            e.printStackTrace();
          }
        }
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.