Package it.eng.spago.base

Examples of it.eng.spago.base.SourceBeanAttribute


        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


      String nameP="";
      String value="";
     
     
      for (Iterator iterator2 = atts.iterator(); iterator2.hasNext();) {
        SourceBeanAttribute object = (SourceBeanAttribute) iterator2.next();

        nameP=new String(object.getKey());
        value=new String((String)object.getValue());
        if(nameP.equalsIgnoreCase("x"))
        {           
            xVal = new Double(value).intValue()
            col = (xVal/blockWidth)-1;
        }
View Full Code Here

    DefaultKeyedValues keyedValues=new DefaultKeyedValues();



    for (Iterator iterator = listAtts.iterator(); iterator.hasNext();) {
      SourceBeanAttribute att = (SourceBeanAttribute) iterator.next();
      String name=att.getKey();
      String valueS=(String)att.getValue();

      //try Double and Integer Conversion

      Double valueD=null;
      try{
View Full Code Here

      //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.error("Name:"+nameP);
          logger.error("Value:"+value);
          if(nameP.equalsIgnoreCase("x"))
          {
            catValue=value;
View Full Code Here

      String value="";
      String tmpSerieName = "";
      //run all the attributes of the serie

      for (Iterator iterator2 = attsRow.iterator(); iterator2.hasNext();) {  // run attributes, serieName, x, y, z
        SourceBeanAttribute object = (SourceBeanAttribute) iterator2.next();

        name=new String(object.getKey());
        value=new String((String)object.getValue());

        boolean newSerie=true;
        if(name.equalsIgnoreCase("serie_name"))
        {
          serieName=value;
View Full Code Here

      List atts=colors.getContainedAttributes();
      String colorNum="";
      String colorSerie="";
      String num="";
      for (Iterator iterator = atts.iterator(); iterator.hasNext();) {
        SourceBeanAttribute object = (SourceBeanAttribute) iterator.next();
        //System.out.println(object.getKey());
        String seriesName=new String(object.getKey());

        colorSerie=new String((String)object.getValue());
        Color col=new Color(Integer.decode(colorSerie).intValue());
        if(col!=null){
          colorMap.put(seriesName,col);
        }
      }   
View Full Code Here

    if (getSubName() != null && getSubName().indexOf("$F") >= 0){
      setSubTitleParameter(atts);
    }

    for (Iterator iterator = listAtts.iterator(); iterator.hasNext();) {
      SourceBeanAttribute att = (SourceBeanAttribute) iterator.next();
      String name=att.getKey();
      String valueS=(String)att.getValue();

      //try Double and Integer Conversion

      Double valueD=null;
      try{
View Full Code Here

      //defines real dimension of attributes x1,y1,x2,y2...the number must be the same for x and y column
      int  numAttsX = 0;
      int  numAttsY = 0;
     
      for (Iterator iterator2 = atts.iterator(); iterator2.hasNext();) {
        SourceBeanAttribute object = (SourceBeanAttribute) iterator2.next();

        String name=new String(object.getKey());
        if(!name.equalsIgnoreCase("x")) {
          if (String.valueOf(name.charAt(0)).equalsIgnoreCase("x"))        
            numAttsX++;
          else if (String.valueOf(name.charAt(0)).equalsIgnoreCase("y"))    
            numAttsY++;
        }
      }
      int  maxNumAtts = (numAttsX < numAttsY)? numAttsY : numAttsX;
      //double[] x=new double[atts.size()];
      //double[] y=new double[atts.size()];
      double[] x=new double[maxNumAtts];
      double[] y=new double[maxNumAtts];

      String name="";
      String value="";

      //run all the attributes of the serie
      for (Iterator iterator2 = atts.iterator(); iterator2.hasNext();) {
        SourceBeanAttribute object = (SourceBeanAttribute) iterator2.next();

        name=new String(object.getKey());
        value=(((String)object.getValue()).equals("null"))?"0":new String((String)object.getValue());

        if(name.equalsIgnoreCase("x"))
        {
          catValue=value;
        }
View Full Code Here

      String tmpYLabel=new String(yMarkerLabel);
      if (tmpYLabel.indexOf("$F{") >= 0){
        String fieldName = tmpYLabel.substring(tmpYLabel.indexOf("$F{")+3, tmpYLabel.indexOf("}"));

        for (Iterator iterator2 = atts.iterator(); iterator2.hasNext();) {
          SourceBeanAttribute object = (SourceBeanAttribute) iterator2.next();

          String nameP=new String(object.getKey());
          String value=new String((String)object.getValue());
          if(nameP.equalsIgnoreCase(fieldName))
          {
            int pos = tmpYLabel.indexOf("$F{"+fieldName+"}") + (fieldName.length()+4);
            yMarkerLabel = yMarkerLabel.replace("$F{" + fieldName + "}", value);
            tmpYLabel = tmpYLabel.substring(pos);
View Full Code Here

          JSONObject valueJSON = new JSONObject();
         
          if(MODE_COMPLETE.equalsIgnoreCase( mode )) {
            List columns = row.getContainedAttributes();
            for(int i = 0; i < columns.size(); i++) {
              SourceBeanAttribute attribute = (SourceBeanAttribute)columns.get(i);           
              valueJSON.put(attribute.getKey().toUpperCase(), attribute.getValue());
            }
          } else {
            String value = (String) row.getAttribute(valueColumn);
            String description = (String) row.getAttribute(descriptionColumn);         
            valueJSON.put("value", value);
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.