Package it.eng.spago.base

Examples of it.eng.spago.base.SourceBean.toXML()


          }
        }
      }
    }
    if(xmlData==null && dsValuesXml!=null){
      xmlData = dsValuesXml.toXML(false);
      kpiValueToReturn.setValueXml(xmlData);
      logger.debug("Setted the kpiValue xmlData:"+xmlData);
    }

    if (kpiValueToReturn == null && valueFound == true){
View Full Code Here


    if(subreports!=null && !subreports.isEmpty()){
      logger.debug("There are subreports!");
      Iterator suit = subreports.iterator();
      while(suit.hasNext()){
        SourceBean subTemplateContent = (SourceBean)suit.next();
        String subTemplate = subTemplateContent.toXML(false);
        for (Iterator iterator = nameResolution.iterator(); iterator.hasNext();) {
          NameRes nameR = (NameRes) iterator.next();
          String toReplace = nameR.getToSubstitute();
          String replaceWith=nameR.getCorrectString();
          subTemplate=subTemplate.replaceAll("<"+toReplace, "<"+replaceWith);
View Full Code Here

          continue;
        source = (String) attrSB.getAttribute("source");
        nameattr = (String) attrSB.getAttribute("name");
        if (nameattr == null) {
          throw new EMFInternalError(EMFErrorSeverity.ERROR,
              "Attribute 'name' missing in SourceBean\n" + attrSB.toXML(false));
        }
        defaultvalue = (String) attrSB.getAttribute("default");
        if ("absolute".equalsIgnoreCase(source)) {
          toReturn.put(nameattr, defaultvalue);
        } else if ("exo".equalsIgnoreCase(source)) {
View Full Code Here

        } else if ("exo".equalsIgnoreCase(source)) {
          String exoname = (String) attrSB.getAttribute("exoname");
          if (exoname == null) {
            throw new EMFInternalError(EMFErrorSeverity.ERROR,
                "Attribute 'exoname', required for attributes with source='exo', " +
                "missing in SourceBean\n" + attrSB.toXML(false));
          }
          String exovalue = (String) exoProfileAttrs.get(exoname);
          if (exovalue != null) toReturn.put(nameattr, exovalue);
          else toReturn.put(nameattr, defaultvalue);
        } else {
View Full Code Here

          String exovalue = (String) exoProfileAttrs.get(exoname);
          if (exovalue != null) toReturn.put(nameattr, exovalue);
          else toReturn.put(nameattr, defaultvalue);
        } else {
          throw new EMFInternalError(EMFErrorSeverity.ERROR,
              "Source '" + source + "' not recognized in SourceBean\n" + attrSB.toXML(false));
        }
      }
    }
    return toReturn;
  }
View Full Code Here

        if (attrSB == null)
          continue;
        nameattr = (String) attrSB.getAttribute("name");
        if (nameattr == null) {
          throw new EMFInternalError(EMFErrorSeverity.ERROR,
              "Attribute 'name' missing in SourceBean\n" + attrSB.toXML(false));
        }
        toReturn.add(nameattr);
      }
    }
    return toReturn;
View Full Code Here

      dataConnection = dsUtil.getDataConnection(conn);
      sqlCommand = dataConnection.createSelectCommand(statement, false);
      dataResult = sqlCommand.execute();
      ScrollableDataResult scrollableDataResult = (ScrollableDataResult) dataResult.getDataObject();
      SourceBean result = scrollableDataResult.getSourceBean();
      resStr = result.toXML(false);
      resStr = resStr.trim();
      if(resStr.startsWith("<?")) {
        resStr = resStr.substring(2);
        int indFirstTag = resStr.indexOf("<");
        resStr = resStr.substring(indFirstTag);
View Full Code Here

    }

    // START converting the SourceBean into a string and then into SourceBean again:
    // this a necessary work-around (workaround, work around) because the getFilteredSourceBeanAttribute is not able to filter on numbers!!!
    // By making this conversion, the information on data type is lost and every attribute becomes a String
    String xml = result.toXML(false);
    result = SourceBean.fromXMLString(xml);
    // END converting the SourceBean into a string and then into SourceBean again:

    Iterator<String> it = values.iterator();
    while (it.hasNext()) {
View Full Code Here

    // transform all row sourcebean of the list 2 into strings and put them into a list
    Iterator rowsSBList2Iter = list2.iterator();
    List rowsList2 = new ArrayList();
    while(rowsSBList2Iter.hasNext()) {
      SourceBean rowSBList2 = (SourceBean)rowsSBList2Iter.next();
      String rowStrList2 = rowSBList2.toXML(false).toLowerCase();
      rowsList2.add(rowStrList2);
      margedList.add(rowSBList2);
    }
    // if a row of the list one is not contained into list 2 then add it to the list 2
    Iterator rowsSBList1Iter = list1.iterator();
View Full Code Here

    }
    // if a row of the list one is not contained into list 2 then add it to the list 2
    Iterator rowsSBList1Iter = list1.iterator();
    while(rowsSBList1Iter.hasNext()) {
      SourceBean rowSBList1 = (SourceBean)rowsSBList1Iter.next();
      String rowStrList1 = rowSBList1.toXML(false).toLowerCase();
      if(!rowsList2.contains(rowStrList1)) {
        margedList.add(rowSBList1);
      }
    }
    // return list 2
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.