Package org.xdams.adv.configuration

Examples of org.xdams.adv.configuration.Element


    try {
      // System.out.println(arrayList.size());
      if (arrayList != null) {
        for (int i = 0; i < arrayList.size(); i++) {
          if (arrayList.get(i) instanceof Element) {
            Element element = (Element) arrayList.get(i);
            if (element.getPrefix() != null) {
              String newPrefix = element.getPrefix();
              if (newPrefix.startsWith("/*")) {
                newPrefix = prefix + element.getPrefix().replaceAll("/\\*", "");
              }
              list.addAll(extractMapping(element.getElemets(), newPrefix, filters));
            } else {
              if (element.getText() != null && controlla(element, filters)) {
                list.add(extractElement(element, prefix));
              }
              if (element.getElemets() != null) {
                list.addAll(extractMapping(element.getElemets(), null, filters));
              }
            }
          }
        }
      }
View Full Code Here


      // System.out.println("buildXML " + arrayList.size());
      if (arrayList != null) {
        for (int i = 0; i < arrayList.size(); i++) {
          if (arrayList.get(i) instanceof Element) {
            Element element = (Element) arrayList.get(i);
            // System.out.println("bbb " + element.getText());
            if (element.getPrefix() != null) {
              String newPrefix = element.getPrefix();
              if (newPrefix.startsWith("/*")) {
                newPrefix = prefix + element.getPrefix().replaceAll("/\\*", prefix_count);
                // System.out.println("BuildXML.buildPage()" + (prefix + element.getPrefix()).replaceAll("/\\*", ""));
              }
              int count = builderRecord.contaNodi(newPrefix);
              if (count == 0)
                count = 1;
              for (int x = 0; x < count; x++) {
                buildXML(element.getElemets(), builderRecord, newPrefix, "[" + (x + 1) + "]", genericInterface);
              }
            } else {
              if (element.getText() != null) {
                // System.out.println("aaaa " + element.getPrefix());
                // System.out.println("aaaa " + prefix);
                // System.out.println("aaaa " + prefix_count);
                // qui creo il bean per fare Field
                extractValue(element, builderRecord, prefix, prefix_count, genericInterface);
              }
              if (element.getElemets() != null) {
                buildXML(element.getElemets(), builderRecord, null, null, genericInterface);
              }
            }
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.xdams.adv.configuration.Element

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.