Examples of transform()


Examples of org.openhab.core.transform.TransformationService.transform()

  public static String transform(String type, String function, String value) {
    String result;
    TransformationService service = TransformationHelper.getTransformationService(TransformationActivator.getContext(), type);
    if(service!=null) {
      try {
        result = service.transform(function, value);
      } catch (TransformationException e) {
        logger.error("Error executing the transformation '" + type + "': " + e.getMessage());
        result = value;
      }     
    } else {

Examples of org.renjin.compiler.ir.ssa.SsaTransformer.transform()

   
    DominanceTree dtree = new DominanceTree(cfg);
    System.out.println(dtree);
   
    SsaTransformer transformer = new SsaTransformer(cfg, dtree);
    transformer.transform();
   
    // See Figure 6 in
    // http://www.cs.utexas.edu/~pingali/CS380C/2010/papers/ssaCytron.pdf
   
   

Examples of org.restlet.ext.xml.Transformer.transform()

    }

    public void testTransform() throws Exception {
        final Transformer transformer = new Transformer(
                Transformer.MODE_REQUEST, this.xslt);
        final String result = transformer.transform(this.source).getText();

        assertEquals(this.output, result);
    }
}

Examples of org.salamandra.web.core.transformer.node.binder.AbstractXmlBinding.transform()

      XmlBindingFactory xbf = new XmlBindingFactory(lst);
      xbf.setSAXTransformer(saxTransformer);
      
      AbstractXmlBinding axb = xbf.create(protocol ,bean);

      axb.transform(new SAXResult(sax));
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
}

Examples of org.servicemix.components.util.CopyTransformer.transform()

        CopyTransformer ct = new CopyTransformer();
        if (packet.messages != null && packet.messages.size() > 0) {
            for (Iterator it = packet.messages.entrySet().iterator(); it.hasNext();) {
                Map.Entry entry = (Map.Entry) it.next();
                NormalizedMessage copy = new NormalizedMessageImpl();
                ct.transform(null, (NormalizedMessage) entry.getValue(), copy);
                setMessage(copy, (String) entry.getKey());
            }
        }
        this.operationName = packet.operationName;
        this.pattern = packet.pattern;

Examples of org.sgx.yuigwt.yuigallery.nodeTransform2d.NodeTransform2d.transform()

    n2.on("click", new EventCallback<YuiEvent>() {

      @Override
      public void call(YuiEvent e) {
        CSSMatrix2d matrix = n1.getMatrix().scale(2.5).skewX(1.5);
        n2.transform(matrix, TransitionVal.create().duration(0.5).easing("linear"));
      }
    });
   
    //AND NOW TRANSFORM A THIRD NODE, USING ONLY THE API OF gallery-cssmatrix2d   
    final NodeTransform2d n3 = p.appendChild("<p>mouse over me once</p>").cast();

Examples of org.sintef.umt.transformer.XMLUtility.transform()

      try
        XMLUtility xmlutil = new XMLUtility();
        // xmlutil.addLookupPath(UMTMain.resource_dir);
        File schemaFile = new File(XMLSchemaFileName);
        File convertFile = new File(UMTMain.resource_dir + "convert-enumerations.xsl");
        String insensitiveSchema = xmlutil.transform(schemaFile,convertFile);
        FileWriter writer = new FileWriter (new File("insensitive_"+XMLSchemaFileName))
        writer.write(insensitiveSchema);
        writer.close();
        writer = null;   
      } catch (Exception ex) {

Examples of org.springframework.xml.transform.TransformerHelper.transform()

    xmlBuilder.append("<soap:Body><payload xmlns='http://example.com'/></soap:Body>");
    xmlBuilder.append("</soap:Envelope>");
    String xml = xmlBuilder.toString();
    DOMResult result = new DOMResult();
    TransformerHelper transformerHelper = new TransformerHelper();
    transformerHelper.transform(new StringSource(xml), result);
        SoapMessage message = createMock(SoapMessage.class);
        expect(message.getDocument()).andReturn((Document)result.getNode()).once();
        replay(message);

        SoapEnvelopeDiffMatcher matcher = new SoapEnvelopeDiffMatcher(new StringSource(xml));

Examples of org.switchyard.transform.Transformer.transform()

            System.out.println("------------XML to Java Result:\n" + javaObject);
            System.out.println("-------------------------------");
        }

        // Java to XML...
        String xmlResult = (String) java2xmlTransformer.transform(javaObject);
        Assert.assertNotNull("Java to XML transformation failed.  null object returned.", javaObject);
        if (_dumpResultsToSysout) {
            System.out.println("------------Java to XML Result:\n" + xmlResult);
            System.out.println("-------------------------------");
        }

Examples of org.tautua.markdownpapers.Markdown.transform()

        final StringWriter writer = new StringWriter();
        final Markdown markdown = new Markdown();

        try {
            markdown.transform(new StringReader(markdownText), writer);
        } catch (final ParseException e) {
            LOGGER.log(Level.ERROR, "Markdown error", e);
           
            return "Markdown error";
        }
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.