Package it.eng.spago.base

Examples of it.eng.spago.base.SourceBeanAttribute


        valueS="";


        // run all the attributes contained in the row
        for (Iterator iterator2 = atts.iterator(); iterator2.hasNext();) {
          SourceBeanAttribute object = (SourceBeanAttribute) iterator2.next();
          name=new String(object.getKey());
          value=new String((String)object.getValue());

          if(name.equalsIgnoreCase(MONTH_DS)){
            month=value;
          }
          else if(name.equalsIgnoreCase(YEAR_DS)){
View Full Code Here


      else{
        thresholds=new HashMap<Double, TargetThreshold>();
        //thresholdColors=new HashMap<String, Color>();     
        Iterator targetsAttrsIter = thresAttrsList.iterator();
        while(targetsAttrsIter.hasNext()) {
          SourceBeanAttribute paramSBA = (SourceBeanAttribute)targetsAttrsIter.next();
          SourceBean param = (SourceBean)paramSBA.getValue();
          String name= (String)param.getAttribute("name");
          String value= (String)param.getAttribute("value");
          String main= (String)param.getAttribute("main");
          String colorS = (String)param.getAttribute("color");
          String visibleS = (String)param.getAttribute("visible");
View Full Code Here

      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

      List atts=colors.getContainedAttributes();
      String colorNum="";
      String colorSerie="";
      String num="";
      for (Iterator iterator = atts.iterator(); iterator.hasNext();) {
        SourceBeanAttribute object = (SourceBeanAttribute) iterator.next();

        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

          // finds the name of the first attribute of the rows if exists
          String defaultName = "";
          SourceBean rowSB = (SourceBean) rowsList.get(0);
          List attributes = rowSB.getContainedAttributes();
          if (attributes != null && attributes.size() > 0) {
            SourceBeanAttribute attribute = (SourceBeanAttribute) attributes.get(0);
            defaultName = attribute.getKey();
          }
          // if a value column is specified, it is considered
          SourceBean valueColumnSB = (SourceBean) source.getAttribute("VALUE-COLUMN");
          if (valueColumnSB != null) {
            String valueColumn = valueColumnSB.getCharacters();
View Full Code Here

    // get Parameters
    Map parameters=new HashMap();

    List attributes=request.getContainedAttributes();
    for (Iterator iterator = attributes.iterator(); iterator.hasNext();) {
      SourceBeanAttribute object = (SourceBeanAttribute) iterator.next();
      String key=object.getKey();
      Object value=object.getValue();
      parameters.put(key, value);
    }


    serviceStart(userId, documentId, parameters, session, httpRequest, true);
View Full Code Here

   
      try{
        List atts = ((SourceBean)sbConfig).getContainedAttributes();
        for (int i=0; i< atts.size();i++) {

        SourceBeanAttribute object = (SourceBeanAttribute) atts.get(i);

        String key=(String)object.getKey();
        if(key.endsWith("_LIST")){
          String arrayKey = key.substring(0, key.indexOf("_LIST"));
          toReturn.write("      " + convertKeyString(arrayKey) +": [ \n")
          toReturn = getAllArrayAttributes(object, toReturn);
          toReturn.write("       ]\n");
View Full Code Here

        List containedSB = sbSubConfig.getContainedSourceBeanAttributes();
        int numberOfSb = containedSB.size();
        int sbCounter = 1;
        //standard tag attributes
        for(int i =0; i< subAtts.size(); i++){
          SourceBeanAttribute object = (SourceBeanAttribute)subAtts.get(i);
          if (object.getValue() instanceof SourceBean){
           
            String key=(String)object.getKey();

            if(key.endsWith("_LIST")){
              String arrayKey = key.substring(0, key.indexOf("_LIST"));
              toReturn.write("      " + convertKeyString(arrayKey) +": [ \n")
              toReturn = getAllArrayAttributes(object, toReturn);
              toReturn.write("       ]\n");
            }else{
              toReturn.write("      " + convertKeyString(key) +": { \n")
              toReturn = getAllAttributes(object, toReturn);
              toReturn.write("       }\n");
            }
            if(i != subAtts.size()-1){
              toReturn.write("       , ");
            }
            sbCounter++;
          }else{
            SourceBeanAttribute subObject2 = (SourceBeanAttribute) subAtts.get(i);
            toReturn = writeTagAttribute(subObject2, toReturn, false);
            if(i != subAtts.size()-1){
              toReturn.write("       , ");
            }
          }
View Full Code Here

        List containedSB = sbSubConfig.getContainedSourceBeanAttributes();
        int numberOfSb = containedSB.size();
        int sbCounter = 1;
        //standard tag attributes
        for(int i =0; i< containedSB.size(); i++){
          SourceBeanAttribute object = (SourceBeanAttribute)containedSB.get(i);
          Object o = object.getValue();
          SourceBean sb1 = SourceBean.fromXMLString(o.toString());
          String v = sb1.getCharacters();
          if(v!= null){
            toReturn.write(v + "\n" );
View Full Code Here

      List captions = captionsSB.getContainedSourceBeanAttributes();
      Iterator iter = captions.iterator();

      while (iter.hasNext()) {

        SourceBeanAttribute captionSBA = (SourceBeanAttribute)iter.next();
        SourceBean captionSB = (SourceBean)captionSBA.getValue();
        String captionName = captionSB.getName();
        SourceBean conditionsSB = (SourceBean) captionSB.getAttribute("CONDITIONS");
        boolean conditionsVerified = verifyConditions(conditionsSB, row);

        //verifies if it's a checklist
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.