Package org.openbp.core.model.item.activity

Examples of org.openbp.core.model.item.activity.ActivityParam


        if (paramList != null)
        {
          int np = paramList.size();
          for (int ip = 0; ip < np; ++ip)
          {
            ActivityParam param = (ActivityParam) paramList.get(ip);

            String paramName = param.getName();
            String paramIdent = makeParamName(paramName);

            if (!definedParams.containsKey(paramName))
            {
              definedParams.put(paramName, Boolean.TRUE);
              w.addToPlaceholder("paramConstants", "/** Parameter " + paramName + " */");
              w.addToPlaceholder("paramConstants", "private static final String " + paramIdent + " = \"" + paramName + "\";");
              w.addToPlaceholder("paramConstants", "");
            }

            cm.append("    Parameter '");
            cm.append(paramName);
            cm.append("'");
            dn = param.getDisplayName();
            if (dn != null)
            {
              cm.append(": ");
              cm.append(dn);
            }
            cm.append("\n");

            DataTypeItem type = param.getDataType();
            if (type != null)
            {
              String className = type.getClassName();
              if (className == null)
                className = "Object";
View Full Code Here


    if (newParamList != null)
    {
      for (int i = 0; i < newParamList.length; ++i)
      {
        ActivityParam newParam = newParamList [i];
        ActivityParam param = socket.getParamByName(newParam.getName());
        if (param != null)
        {
          // Parameter exists, update the data type if necessary
          if (param.getDataType() != newParam.getDataType())
          {
            param.setDataType(newParam.getDataType());
            update = true;
          }
        }
        else
        {
View Full Code Here

   *    false  The parmeter is required.
   * @return The new parameter
   */
  public static ActivityParam makeParam(String name, String displayName, String description, DataTypeItem type, boolean optional)
  {
    ActivityParam param = new ActivityParamImpl();

    param.setName(name);
    param.setDisplayName(displayName);
    param.setDescription(description);

    param.setDataType(type);

    param.setOptional(optional);

    return param;
  }
View Full Code Here

   *    false  The parmeter is required.
   * @return The new parameter
   */
  public static ActivityParam makeParam(DisplayObject dob, DataTypeItem type, boolean optional)
  {
    ActivityParam param = new ActivityParamImpl();

    param.setName(dob.getName());
    param.setDisplayName(dob.getDisplayName());
    param.setDescription(dob.getDescription());

    param.setDataType(type);

    param.setOptional(optional);

    return param;
  }
View Full Code Here

    // Copy the parameters
    clearParams();
    for (Iterator it = activitySocket.getParams(); it.hasNext();)
    {
      ActivityParam activityParam = (ActivityParam) it.next();

      NodeParam nodeParam = new NodeParamImpl();
      nodeParam.copyFromActivityParam(activityParam);
      addParam(nodeParam);
    }
View Full Code Here

    activitySocket.clearParams();
    for (Iterator it = getParams(); it.hasNext();)
    {
      NodeParam nodeParam = (NodeParam) it.next();

      ActivityParam activityParam = new ActivityParamImpl();
      nodeParam.copyToActivityParam(activityParam);
      activitySocket.addParam(activityParam);
    }
  }
View Full Code Here

  {
    List foundObject = new ArrayList();
    Iterator parameter = socket.getParams();
    while (parameter.hasNext())
    {
      ActivityParam param = (ActivityParam) parameter.next();
      DataTypeItem dataType = param.getDataType();
      addIfMatch(param, dataType, item, foundObject);
    }
    return foundObject;
  }
View Full Code Here

TOP

Related Classes of org.openbp.core.model.item.activity.ActivityParam

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.