Package org.cfeclipse.cfml.dictionary

Examples of org.cfeclipse.cfml.dictionary.Parameter


              }
              if (matcher.group(1).toLowerCase().equals("default")) {
                defaultvalue = value;
              }
            }
            Parameter newParam = new Parameter(name, type, Boolean.valueOf(required), defaultvalue);
            name = type = required = defaultvalue = "";
            function.addParameter(newParam);
          }

        }
      }
      functions.add(function);
    }
    i = scriptNodes.iterator();
    while (i.hasNext()) {
      FunctionInfo currItem = (FunctionInfo) i.next();
      String funcName = currItem.getFunctionName();
      String funcReturn = currItem.getReturnType();
      Function function = new Function(funcName, funcReturn, Byte.parseByte("8"));
      // System.out.println(currItem.getItemData());
      List args = currItem.getParameters();
      Iterator j = args.iterator();
      while (j.hasNext()) {
        Map<String, String> parameterAttribs = (Map) j.next();
        name = parameterAttribs.get("name");
        type = parameterAttribs.get("type");
        required = parameterAttribs.get("required");
        defaultvalue = parameterAttribs.get("default");
        Parameter newParam = new Parameter(name, type, Boolean.valueOf(required), defaultvalue);
        name = type = required = defaultvalue = "";
        function.addParameter(newParam);
      }
      functions.add(function);
    }
View Full Code Here


            // If it is not defined, it isnt displayed.
           
           
            Iterator i = this.attributes.iterator();
            while(i.hasNext()){
              Parameter pr = (Parameter)i.next();
              //System.out.println("\t\t" + fields.item(f).getAttributes().getNamedItem("name").getNodeValue());
             
           
              String maskField = fields.item(f).getAttributes().getNamedItem("name").getNodeValue();
              String defaultValue = "";
              if(fields.item(f).getAttributes().getNamedItem("value") != null){
                defaultValue = fields.item(f).getAttributes().getNamedItem("value").getNodeValue();
               
              }
             
              if(pr.getName().equals(maskField)){
                String labelname = pr.getName() + " : ";
              if(pr.isRequired()){
                labelname = pr.getName() + " *: ";
               
              }
             
              Label label = new Label(tagContents, SWT.HORIZONTAL);
              label.setText(labelname);
              label.setToolTipText(pr.getHelp());
              GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
              gridData.widthHint = 200;

              if (!pr.getValues().isEmpty()) {
                addComboField(tagContents, pr.getValues(), gridData, pr.getName(), defaultValue);
              } else {
                addTextField(tagContents, gridData, pr.getName(), defaultValue);
              }
               
              }
            }
            /*
 
View Full Code Here

          mainContents.setLayout(gl);   
         
          //Loop through the category getting the parameters
          Iterator tagIter = cat.getParams().iterator();
          while(tagIter.hasNext()){
            Parameter pr = (Parameter)tagIter.next();
            String labelname = pr.getName() + " : ";
          if(pr.isRequired()){
            labelname = pr.getName() + " *: ";
           
          }
          Label label = new Label(mainContents, SWT.HORIZONTAL);
          label.setText(labelname);
          label.setToolTipText(pr.getHelp());
          GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
          gridData.widthHint = 200;

          if (!pr.getValues().isEmpty()) {
            addComboField(mainContents, pr.getValues(), gridData, pr
                .getName(), "");
          } else {
            addTextField(mainContents, gridData, pr.getName(), "");
          }
           
          }
         
       
View Full Code Here

   
    if (this.attributes != null) {
   
      Iterator i = this.attributes.iterator();
      while(i.hasNext()){
        Parameter pr = (Parameter) i.next();
        Category cat = null;
       
        if(!cl.hasCategory(pr.getCategory())){
          cat = new Category(pr.getCategory());
         
          //add the Parameter
          cat.addParameter(pr);
          cl.addCategory(cat);
        }
        else {
          cat = cl.getCategory(pr.getCategory());
          cat.addParameter(pr);
        }
       
      }
    }
View Full Code Here

          attributesList.setLayoutData(attributesListLData);
         
          Iterator iter = this.tag.getParameters().iterator();
         
          while(iter.hasNext()){
            Parameter param = (Parameter)iter.next();
            attributesList.add(param.getName());
          }
         
         
          attributesList.addMouseListener(new MouseAdapter() {
            public void mouseDown(MouseEvent evt) {
View Full Code Here

      //Assert.isTrue(paramObj instanceof Parameter, "A parameter proposal from a tag attribute contributor is not of type Parameter");
     
      if(!(paramObj instanceof Parameter))
        throw new IllegalArgumentException("A parameter proposal from a tag attribute contributor is not of type Parameter");
     
      Parameter currParam = (Parameter)paramObj;
      Iterator set1Iter = set2.iterator();
      while(set1Iter.hasNext()) {
        String set1Val = (String)set1Iter.next();
        if(set1Val.equalsIgnoreCase(currParam.getName())) {
          params2Remove.add(currParam);
          break;
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.cfeclipse.cfml.dictionary.Parameter

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.