Examples of addLine()


Examples of org.activiti.workflow.simple.alfresco.conversion.script.ScriptTaskListenerBuilder.addLine()

    userTaskType.setParentName(AlfrescoConversionConstants.OUTCOME_BASE_FORM_TYPE);
   
    // Add script to the complete-task listener to update approval count (if needed)
    ScriptTaskListenerBuilder listenerBuilder = AlfrescoConversionUtil.getScriptTaskListenerBuilder(conversion, userTask.getId(), AlfrescoConversionConstants.TASK_LISTENER_EVENT_COMPLETE);
    String approverCount = getCountVariableName(id, namespacePrefix);
    listenerBuilder.addLine("if(task.getVariableLocal('" + getTransitionProperty(userTaskType, namespacePrefix) + "') == '" + AlfrescoConversionConstants.TRANSITION_APPROVE +"') {");
    listenerBuilder.addLine("execution.setVariable('" +approverCount + "', " + approverCount + " + 1);");
    listenerBuilder.addLine("}");
   
    if(stepDefinition.getAssignmentType() == HumanStepAssignmentType.USERS) {
      String assignmentVariableName = id + "Assignee";
View Full Code Here

Examples of org.apache.webbeans.exception.helper.ViolationMessageBuilder.addLine()

            Class type, InjectionPoint injectionPoint, Annotation... qualifiers)
    {
        ViolationMessageBuilder violationMessage =
                newViolation("Api type [", type.getName(), "] is not found with the qualifiers ");

        violationMessage.addLine(createQualifierMessage(qualifiers));

        if (injectionPoint != null)
        {
            violationMessage.addLine("for injection into ", injectionPoint.toString());
        }
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaClassInitializer.addLine()

      JavaClassInitializer jci = pSource.newJavaClassInitializer();
      LocalJavaField set = jci.newJavaField(Set.class);
      set.addLine("new ", HashSet.class, "()");
      XsAnyURI[] uris = namespaceList.getUris();
      for (int i = 0;  i < uris.length;  i++) {
          jci.addLine(set, ".add(", JavaSource.getQuoted(uris[i].toString()), ");");
      }
      if (namespaceList.isLocalSet()) {
          jci.addLine(set, ".add(\"\");");
      }
      if (namespaceList.isTargetNamespaceSet()) {
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaComment.addLine()

    /** Generates the abstract invoker class.
     */
    public JavaSource getInvokerClass(JavaSource pSource) {
        JavaInnerClass invoker = pSource.newJavaInnerClass("Invoker", JavaSource.PUBLIC);
        JavaComment comment = invoker.newComment();
        comment.addLine("The dispatcher is implemented with a {@link java.util.Map}.");
        comment.addLine("The map keys are the method names, the values");
        comment.addLine("are instances of <code>Invoker</code>.");
        invoker.setType(JavaSource.INTERFACE);
        JavaMethod jm = invoker.newJavaMethod("invoke", Object.class, JavaSource.PUBLIC);
        comment = jm.newComment();
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaConstructor.addLine()

       jcon.addParam(getChainInterface(), "o");
       jcon.addIf("o == null");
       jcon.addThrowNew(NullPointerException.class,
           JavaSource.getQuoted("The supplied object must not be null."));
       jcon.addEndIf();
       jcon.addLine("backingObject = o;");
       return jcon;
     }

     public JavaMethod getInterfaceMethod(JavaSource pSource, JavaMethod pMethod) {
       JavaMethod jm = pSource.newJavaMethod(pMethod);
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaField.addLine()

        Object o = pController.getSimpleTypeSG().getInitialValue(pSource);
        if (o == null && pDefaultValue != null) {
            o = pController.getSimpleTypeSG().getCastFromString(pDefaultValue);
        }
        if (o != null) {
            jf.addLine(o);
        }
      }
      return jf;
    }
  }
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addLine()

    else {
      runtimeType = pController.getRuntimeType();
    }
    JavaMethod jm = pSource.newJavaMethod(pMethodName, runtimeType, JavaSource.PUBLIC);
    if (!pSource.isInterface()) {
      jm.addLine("return " + pFieldName + ";");
    }
    return jm;
  }

  public JavaMethod getXMLSetMethod(TypeSG pController, JavaSource pSource,
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addLine()

      else {
        runtimeType = pController.getRuntimeType();
      }
      DirectAccessible param = jm.addParam(runtimeType, pParamName);
      if (!pSource.isInterface()) {
        jm.addLine(pFieldName, " = ", param, ";");
      }
      return jm;
    } else {
      JavaMethod jm = pController.getSimpleTypeSG().getXMLSetMethod(pSource, pFieldName, pParamName, pMethodName);
      if (pSetIsSet  &&  pController.getRuntimeType().isPrimitive()) {
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addLine()

      }
      return jm;
    } else {
      JavaMethod jm = pController.getSimpleTypeSG().getXMLSetMethod(pSource, pFieldName, pParamName, pMethodName);
      if (pSetIsSet  &&  pController.getRuntimeType().isPrimitive()) {
        jm.addLine(getIsSetCheckFieldName(pFieldName), " = true;");
        }
        return jm;
    }
  }
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addLine()

      throws SAXException {
    JavaMethod jm = pSource.newJavaMethod(pMethodName, BooleanSG.BOOLEAN_TYPE, JavaSource.PUBLIC);
    if (!pSource.isInterface()) {
      if (pController.getRuntimeType().isPrimitive()) {
        JavaField jf = pSource.newJavaField(getIsSetCheckFieldName(pFieldName), BooleanSG.BOOLEAN_TYPE);
        jm.addLine("return ", jf, ";");
      } else {
        jm.addLine("return (" + pFieldName + " != null);");
      }
    }
    return jm;
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.