Package it.eng.spago.base

Examples of it.eng.spago.base.SourceBeanAttribute


      //run all the attributes, to define series!
      int numColumn = 0;
      if (!atts.isEmpty()){
        for (Iterator iterator2 = atts.iterator(); iterator2.hasNext();) {
          numColumn ++;
          SourceBeanAttribute object = (SourceBeanAttribute) iterator2.next();
 
          nameP=new String(object.getKey());
          value=new String((String)object.getValue());
          logger.debug("Name:"+nameP);
          logger.debug("Value:"+value);
          if(nameP.equalsIgnoreCase("x"))
          {
            catValue=value;
View Full Code Here


      confParameters = new LinkedHashMap();
      SourceBean confSB = (SourceBean) content.getAttribute("CONF");
      List confAttrsList = confSB.getContainedSourceBeanAttributes();
      Iterator confAttrsIter = confAttrsList.iterator();
      while (confAttrsIter.hasNext()) {
      SourceBeanAttribute paramSBA = (SourceBeanAttribute) confAttrsIter.next();
      SourceBean param = (SourceBean) paramSBA.getValue();
      String nameParam = (String) param.getAttribute("name");
      String valueParam = replaceParsInString((String) param.getAttribute("value"))
     
      confParameters.put(nameParam, valueParam);
      }   
View Full Code Here

      if(obj.getDataSetId()!=null){
        String dataSetId=obj.getDataSetId().toString();
        dataParameters.put("datasetid", dataSetId);
      }
      while (dataAttrsIter.hasNext()) {
      SourceBeanAttribute paramSBA = (SourceBeanAttribute) dataAttrsIter.next();
      SourceBean param = (SourceBean) paramSBA.getValue();
      String nameParam = (String) param.getAttribute("name");
      String valueParam = (String) param.getAttribute("value");
 
      dataParameters.put(nameParam, valueParam);
      }
View Full Code Here

      Map dataParameters = new HashMap();
      SourceBean dataSB = (SourceBean) content.getAttribute("CONF");
      List dataAttrsList = dataSB.getContainedSourceBeanAttributes();
      Iterator dataAttrsIter = dataAttrsList.iterator();
      while (dataAttrsIter.hasNext()) {
        SourceBeanAttribute paramSBA = (SourceBeanAttribute) dataAttrsIter.next();
        SourceBean param = (SourceBean) paramSBA.getValue();
        String nameParam = (String) param.getAttribute("name");
        String valueParam = (String) param.getAttribute("value");
        dataParameters.put(nameParam, valueParam);
      }
View Full Code Here

    jdm.put("empty", "empty");
    if(jobParameters!=null) {
      List paramsSB = jobParameters.getContainedAttributes();
      Iterator iterParSb = paramsSB.iterator();
      while(iterParSb.hasNext()) {
          SourceBeanAttribute paramSBA = (SourceBeanAttribute)iterParSb.next();
          String nameAttr = (String)paramSBA.getKey();
          if(nameAttr.equalsIgnoreCase("PARAMETER")) {
            SourceBean paramSB = (SourceBean)paramSBA.getValue();
            String name = (String)paramSB.getAttribute("name");
            String value = (String)paramSB.getAttribute("value");
            jdm.put(name, value);
          }
      }
View Full Code Here

      if((rows!=null) && (rows.size()!=0)) {
        SourceBean row = (SourceBean)rows.get(0);
        List rowAttrs = row.getContainedAttributes();
        Iterator rowAttrsIter = rowAttrs.iterator();
        while(rowAttrsIter.hasNext()) {
          SourceBeanAttribute rowAttr = (SourceBeanAttribute)rowAttrsIter.next();
          colNames.add(rowAttr.getKey());
        }
      }
    }
   
    // build module configuration for the list
View Full Code Here

   
    HashMap<String , Object> params = new HashMap <String , Object>();
    List reqParams = (List)request.getContainedAttributes();
    Iterator it = reqParams.iterator();
    while (it.hasNext()) {
      SourceBeanAttribute param = (SourceBeanAttribute)it.next();
      String paramName = param.getKey();
      String paramValue;
      try {
        paramValue = (String) param.getValue();
      } catch (Exception e) {
        logger.debug("OUT");
        logger.error("Impossible read value for the parameter [" + paramName + "] into request's content", e);
        throw new SpagoBIServiceException("", "Impossible read value for the parameter [" + paramName + "] into request's content", e);
      }
View Full Code Here

      if (rows != null && rows.size() != 0) {
        SourceBean row = (SourceBean) rows.get(0);
        List rowAttrs = row.getContainedAttributes();
        Iterator rowAttrsIter = rowAttrs.iterator();
        while (rowAttrsIter.hasNext()) {
          SourceBeanAttribute rowAttr = (SourceBeanAttribute) rowAttrsIter.next();
          columnsNames.add(rowAttr.getKey());
        }
      }
    }
    return columnsNames;
  }
View Full Code Here

      }
      else

        Iterator intervalsAttrsIter = intervalsAttrsList.iterator();
        while(intervalsAttrsIter.hasNext()) {
          SourceBeanAttribute paramSBA = (SourceBeanAttribute)intervalsAttrsIter.next();
          SourceBean param = (SourceBean)paramSBA.getValue();
          String min= (String)param.getAttribute(MIN_INTERVAL);
          String max= (String)param.getAttribute(MAX_INTERVAL);
          String col= (String)param.getAttribute(COLOR_INTERVAL);

          KpiInterval interval=new KpiInterval();
View Full Code Here

        logger.error("subranges not correctly defined");      }
      else

        Iterator subrangesAttrsIter = subrangesAttrsList.iterator();
        while(subrangesAttrsIter.hasNext()) {
          SourceBeanAttribute paramSBA = (SourceBeanAttribute)subrangesAttrsIter.next();
          SourceBean param = (SourceBean)paramSBA.getValue();
          String range= (String)param.getAttribute(LABEL_INTERVAL);
          String min= (String)param.getAttribute(MIN_INTERVAL);
          String max= (String)param.getAttribute(MAX_INTERVAL);
          String col= (String)param.getAttribute(COLOR_INTERVAL);
View Full Code Here

TOP

Related Classes of it.eng.spago.base.SourceBeanAttribute

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.