Examples of FormalParameter


Examples of org.enhydra.shark.xpdl.elements.FormalParameter

         FormalParameters fps=app.getApplicationTypes().getFormalParameters();
         Map m=createContextMap(aps,fps);
         Iterator itFps=fps.toElements().iterator();
         Iterator itAps=aps.toElements().iterator();
         while (itFps.hasNext() && itAps.hasNext()) {
            FormalParameter fp=(FormalParameter)itFps.next();
            ActualParameter ap=(ActualParameter)itAps.next();
            String fpMode=fp.getMode();
            String fpId=fp.getId();
            Object paramVal=m.get(fpId);

            param=new AppParameter(ap.toValue(),fpId,fpMode,paramVal,SharkUtilities.getJavaClass(fp));
            parameters.add(param);
         }
View Full Code Here

Examples of org.enhydra.shark.xpdl.elements.FormalParameter

    }

    public FormalParameter createXPDLObject(FormalParameters fps,
            String type,
            boolean addToCollection) {
        FormalParameter fp = (FormalParameter) fps.generateNewElement();
        adjustType(fp, type);

        JaWETypes jts = JaWEManager.getInstance().getJaWEController().getJaWETypes();
        boolean hasTemplate = jts.hasTemplateId(type);
        if (hasTemplate) {
            jts.fillFromTemplate(fp, type);
        }
        String id = fp.getId();
        if (!hasTemplate || id.equals("") || fps.getFormalParameter(id) != null) {
            if (id.equals("")) {
                id = JaWEManager.getInstance().getIdFactory().generateUniqueId(fps);
            } else {
                id = JaWEManager.getInstance().getIdFactory().generateSimilarOrIdenticalUniqueId(fps, new HashSet(), id);
            }
            int i = 0;
            while (fps.getFormalParameter(id) != null) {
                id = id + String.valueOf(++i);
            }
            fp.setId(id);
        }

        adjustXPDLObject(fp, type);

        if (addToCollection) {
View Full Code Here

Examples of org.enhydra.shark.xpdl.elements.FormalParameter

        }
        if(!fullCheck && existingErrors.size() != 0)
            return;
        for(int i = 0; i < fps.size(); i++)
        {
            FormalParameter fp = (FormalParameter)fps.get(i);
            if(aps.size() - 1 < i)
                return;
            ActualParameter ap = (ActualParameter)aps.get(i);
            String fpMode = fp.getMode();
            if(fpMode.equals("IN") && !checkExpression)
                continue;
            DataType fpdt = fp.getDataType();
            DataTypes fpdtt = fpdt.getDataTypes();
            XMLElement fpType = fpdtt.getChoosen();
            Map idToDFOrFP = XMLUtil.getWorkflowProcess(aps).getAllVariables();
            String apWRD = ap.toValue();
            XMLCollectionElement ce = (XMLCollectionElement)idToDFOrFP.get(apWRD);
View Full Code Here

Examples of org.huihoo.workflow.xpdl.parameter.FormalParameter

  }
 
  public FormalParameter findFormalParameter(int index)
  {
    int sizeParams=parameters.size();
    FormalParameter result=null;
   
    for(int i=0;i<sizeParams;++i)
    {
      result=(FormalParameter)parameters.get(i);
     
      if(result.getIndex()==index)
      {
        return result;
      }
     
    }
View Full Code Here

Examples of org.huihoo.workflow.xpdl.parameter.FormalParameter

  }
 
  public FormalParameter findFormalParameter(String id)
  {
    int sizeParams=parameters.size();
    FormalParameter result=null;
   
    for(int i=0;i<sizeParams;++i)
    {
      result=(FormalParameter)parameters.get(i);
     
      if(result.getUUID().equals(id))
      {
        return result;
      }
     
    }
View Full Code Here

Examples of org.huihoo.workflow.xpdl.parameter.FormalParameter

  private WorkflowParameter[] makeParamerers(WorkflowCase workflowCase, WorkflowApplication app)
    throws CloneNotSupportedException
  {
    WorkflowParameter[] params = null;

    FormalParameter formalParameter = null;
    WorkflowParameter initParameter = null;
    ActualParameter actualParameter = null;

    ParameterMode paramMode = null;
    Class srcClass = null;
    Class dstClass = null;

    int sizeParams = app.getFormalParameters().size();

    params = new WorkflowParameter[sizeParams];

    for (int i = 0; i < sizeParams; ++i)
    {
      formalParameter = app.findFormalParameter(i);
      actualParameter = (ActualParameter) parameters.get(i);
      initParameter = workflowCase.getCaseContext().getParameterByName(actualParameter.getUUID());

      srcClass = formalParameter.getType();
      dstClass = initParameter.getType();
      paramMode = formalParameter.getMode();

      if (dstClass.equals(srcClass))
      {
        if (paramMode.equals(ParameterMode.MODE_IN))
        {
View Full Code Here

Examples of org.netbeans.modules.php.editor.parser.astnodes.FormalParameter

        int count = 0;
        for (JLabel key : componentsMap.keySet()) {
            JTextField value = componentsMap.get(key);
            String valueText = value.getText();
            if (valueText.isEmpty()) {
                FormalParameter param = params.get(count);
                Expression defaultValue = param.getDefaultValue();
                if (defaultValue != null) {
                    count++;
                    continue;
                }
            }
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.