Package org.xdams.adv.utility

Examples of org.xdams.adv.utility.MappingAdv


                      boolean modificato = false;
                      int numDoc = xwconn.getNumDocFromQRElement(qr, a);
                      XMLBuilder builder = new XMLBuilder(xwconn.getSingleXMLFromNumDoc(numDoc), "ISO-8859-1");
                      // out.println("strPrefix "+strPrefix+"<br>");
                      if (elementToFindBean.isAdvEditing()) {
                        MappingAdv mappingAdv = new MappingAdv();
                        List<Element> list = mappingAdv.extractMapping(elementToFindBean.getConfigurationXMLReader().getObjects(), null, new HashMap<String, String>());
                        ArrayList<Element> arrayList = new ArrayList<Element>(list);
                        for (Element element : arrayList) {
                          List<Element> arrayListA = new ArrayList<Element>();
                          arrayListA.add(element);
                          mappingAdv.buildXML(arrayListA, builder, null, null, new GenericInterface<XMLBuilder>() {
                            public void invoke(XMLBuilder builder, Element element) {
                              try {
                                if (!nameToChange.equals(element.getFieldValue())) {
                                  System.out.println(element.getFieldValue());
                                }
View Full Code Here


          for (int z = 0; z < countElementAdv; z++) {
            Node node = theXMLconf.getSingleNode(fixXpath + "/workArchive[" + (x + 1) + "]/root");
            //System.out.println(theXMLconf.getXMLFromNode(node, "ISO-8859-1"));
            final ConfigurationXMLReader configurationXMLReader = new ConfigurationXMLReader(theXMLconf.getXMLFromNode(node, "ISO-8859-1"));
            System.out.println(configurationXMLReader.getObjects());
            MappingAdv mappingAdv = new MappingAdv();
            List<Element> list = mappingAdv.extractMapping(configurationXMLReader.getObjects(), null, new HashMap<String, String>());
            ArrayList<Element> arrayList = new ArrayList<Element>(list);
            for (Element element : arrayList) {
              final ElementToFindBean elementToFindBean = new ElementToFindBean();
              List<Element> arrayListA = new ArrayList<Element>();
              arrayListA.add(element);
              mappingAdv.buildXML(arrayListA, theXMLconf, null, null, new GenericInterface<XMLBuilder>() {
                public void invoke(XMLBuilder builder, Element element) {
                  try {
                    System.out.println(element.getFieldXPath());
                    System.out.println(element.getFieldValue());
                    System.out.println(element.getQuery());
View Full Code Here

TOP

Related Classes of org.xdams.adv.utility.MappingAdv

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.