Examples of Output


Examples of org.pentaho.aggdes.output.Output

    List<UIAggregate> aggList = getEnabledAggs();
    List<String> sqls = new ArrayList<String>();

    for (UIAggregate agg : aggList) {
      Output output = agg.getOutput();

      if (exportDdl) {
        try {
          sqls.add(outputService.getArtifact(output, CreateScriptGenerator.class));
        } catch (OutputValidationException e) {
          e.printStackTrace();
          return Collections.emptyList();
        }
      }
    }

    for (UIAggregate agg : aggList) {
      Output output = agg.getOutput();

      if (exportDml) {
        try {
          sqls.add(outputService.getArtifact(output, PopulateScriptGenerator.class) + "\n\n"); //$NON-NLS-1$
        } catch (OutputValidationException e) {
View Full Code Here

Examples of org.red5.io.amf.Output

     */
  private void writeMetadataTag(double duration, Integer videoCodecId, Integer audioCodecId) throws IOException {
    metaPosition = channel.position();
    IoBuffer buf = IoBuffer.allocate(1024);
    buf.setAutoExpand(true);
    Output out = new Output(buf);
    out.writeString("onMetaData");
    Map<Object, Object> params = new HashMap<Object, Object>(4);
    params.put("duration", duration);
    if (videoCodecId != null) {
      params.put("videocodecid", videoCodecId.intValue());
    }
    if (audioCodecId != null) {
      params.put("audiocodecid", audioCodecId.intValue());
    }
    params.put("canSeekToEnd", true);
    out.writeMap(params, new Serializer());
    buf.flip();

    if (fileMetaSize == 0) {
      fileMetaSize = buf.limit();
    }
View Full Code Here

Examples of org.red5.io.object.Output

   * @param so shared object
   * @param out output buffer
   */
  private void doEncodeSharedObject(ISharedObjectMessage so, IoBuffer out) {
    final Encoding encoding = Red5.getConnectionLocal().getEncoding();
    final Output output = new org.red5.io.amf.Output(out);
    final Output amf3output = new org.red5.io.amf3.Output(out);
    output.putString(so.getName());
    // SO version
    out.putInt(so.getVersion());
    // Encoding (this always seems to be 2 for persistent shared objects)
    out.putInt(so.isPersistent() ? 2 : 0);
View Full Code Here

Examples of org.sbml.jsbml.ext.qual.Output

        return input;

      } else if (elementName.equals("output") && groupList.equals(QualList.listOfOutputs)) {
        Transition transition = (Transition) listOf.getParentSBMLObject();

        Output output = new Output();
        transition.addOutput(output);
        return output;

      } else if (elementName.equals("functionTerm") && groupList.equals(QualList.listOfFunctionTerms)) {
        Transition transition = (Transition) listOf.getParentSBMLObject();
View Full Code Here

Examples of org.useware.kernel.model.structure.Output

        }
        else if("output".equals(name))
        {

            unit = new Output(id.getNamespaceURI(), id.getLocalPart(),
                    label);
        }
        else if("select".equals(name))
        {
            unit = new Select(id.getNamespaceURI(), id.getLocalPart(),
View Full Code Here

Examples of org.wso2.carbon.business.messaging.paypal.mediator.Output

   * @param valueAttr
   * @return
   */
  private Output createOutput(OMElement parameterElement) {

    Output parameter = new Output();

    OMAttribute srcXPathAttr = parameterElement
        .getAttribute(ATT_SOURCE_XPATH);
    OMAttribute targetXPathAttr = parameterElement
        .getAttribute(ATT_TARGET_XPATH);
    OMAttribute targetKeyAttr = parameterElement
        .getAttribute(ATT_TARGET_KEY);

    if ((null == targetXPathAttr || null == targetXPathAttr
        .getAttributeValue())
        && (null == targetKeyAttr || null == targetKeyAttr
            .getAttributeValue())) {
      handleException("Output without a target-xpath or target-key attribute, "
          + "but it is required to have a target-xpath or target-key attribute for all outputs");
    }
    if (null != targetXPathAttr
        && null != targetXPathAttr.getAttributeValue()) {

      if (null == srcXPathAttr
          || null == srcXPathAttr.getAttributeValue()) {
        handleException("Output without source-xpath attribute, "
            + "but it is required to have  source-xpath attribute when target-xpath is present for all outputs");
      }
      try {
        parameter.setSourceXPath(SynapseXPathFactory.getSynapseXPath(
            parameterElement, ATT_SOURCE_XPATH));
      } catch (JaxenException e) {
        handleException(
            String
                .format(
                    "Couldn't build the source-xpath from the expression: %s for the output",
                    srcXPathAttr.getAttributeValue()), e);
      }

      try {
        parameter.setTargetXPath(SynapseXPathFactory.getSynapseXPath(
            parameterElement, ATT_TARGET_XPATH));
      } catch (JaxenException e) {
        handleException(
            String
                .format(
                    "Couldn't build the target-xpath from the expression: %s for the output",
                    srcXPathAttr.getAttributeValue()), e);
      }

    } else {
      parameter.setTargetKey(targetKeyAttr.getAttributeValue());
    }

    return parameter;
  }
View Full Code Here

Examples of org.wso2.carbon.cep.core.Output

/**
* This class will help to build Output Object from a given OMELement
*/
public class OutputHelper {
    public static Output fromOM(OMElement outputElement) {
        Output output = new Output();

        String topic = outputElement.getAttributeValue(new QName(CEPConstants.CEP_CONF_ATTR_TOPIC));
        output.setTopic(topic);

        String brokerProxy = outputElement.getAttributeValue(new QName(CEPConstants.CEP_CONF_ELE_BROKER_NAME));
        output.setBrokerName(brokerProxy);

        OMElement elementMappingElement = outputElement.getFirstChildWithName(new QName(CEPConstants.CEP_CONF_NAMESPACE,
                CEPConstants.CEP_CONF_ELE_EMAPPING));

        if (elementMappingElement != null) {
            output.setElementMapping(ElementMappingHelper.fromOM(elementMappingElement));
        }

        OMElement xmlMappingElement = outputElement.getFirstChildWithName(new QName(CEPConstants.CEP_CONF_NAMESPACE,
                CEPConstants.CEP_CONF_ELE_XML_MAPPING));
        if (xmlMappingElement != null) {
            output.setXmlMapping(XMLMappingHelper.fromOM(xmlMappingElement));
        }
        return output;
    }
View Full Code Here

Examples of org.wso2.carbon.mediator.transform.Output

        OMElement outputElement = omElement.getFirstChildWithName(
                new QName(SynapseConstants.SYNAPSE_NAMESPACE, "output"));
        if (inputElement != null) {
            smooks.setOutput(createOutput(outputElement));
        } else {
            smooks.setOutput(new Output());
        }

        return smooks;
    }
View Full Code Here

Examples of se.rupy.http.Output

          Item item = new Item();
          item.path = "file";
          item = save(event, item);

          String path = frame(item);
          Output out = event.output();

          out.println("<script>");
          out.println("  var doc = window.top.document;");
          out.println("  doc.user.picture.value = '" + path + "';");
          out.println("  doc.picture.src = '" + path + "';");
          out.println("</script>");
        }
        catch(Exception e) {
          e.printStackTrace();
          throw e;
        }
View Full Code Here

Examples of vash.Output

      tree.setGenerationParameters(ip);
      byte[] actual = tree.generateCurrentFrame();
      TestOperationIntegration.compare(actual, width, height, String.format("./test/reference-%s/%03d.png", name, i), null);
     
      OutputParameters op = new OutputParameters(String.format("./gallery-%s/%03d.png", name, i), width, height);
      Output out = new Output(op, tree);
      try {
        out.generate();
      } catch(IOException e) {
        System.err.println(e.toString());
        Assert.assertTrue(false);
      }
    }
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.