Examples of transform()


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

        this.exchangeId = null; // ???;
        this.interfaceName = packet.interfaceName;
        CopyTransformer ct = new CopyTransformer();
        if (packet.in != null) {
            in = new NormalizedMessageImpl();
            ct.transform(null, packet.in, in);
        }
        if (packet.out != null) {
            out = new NormalizedMessageImpl();
            ct.transform(null, packet.out, out);
        }

Examples of org.apache.sling.installer.api.tasks.ResourceTransformer.transform()

                        continue;
                    }
                    final ResourceTransformer transformer = (ResourceTransformer) this.transformerTracker.getService(reference);
                    if ( transformer != null ) {
                        try {
                            final TransformationResult[] result = transformer.transform(resource);
                            final String newTransformers = (transformers == null ? ":" + id + ':' : transformers + id + ':');
                            ((RegisteredResourceImpl)resource).setAttribute(ResourceTransformer.class.getName(), newTransformers);
                            if ( logger.isDebugEnabled() ) {
                                logger.debug("Invoked transformer {} on {} : {}",
                                        new Object[] {transformer, resource, Arrays.toString(result)});

Examples of org.apache.tapestry.services.ComponentClassTransformWorker.transform()

        replay();

        ComponentClassTransformWorker worker = new ApplicationStateWorker(manager);

        worker.transform(ct, model);

        verify();
    }

    @SuppressWarnings("unchecked")

Examples of org.apache.tapestry5.services.ComponentClassTransformWorker.transform()

        replay();

        ComponentClassTransformWorker worker = new ComponentLifecycleMethodWorker(
                TransformConstants.SETUP_RENDER_SIGNATURE, SetupRender.class, false);

        worker.transform(tf, model);

        verify();
    }

    @Test

Examples of org.apache.tapestry5.services.assets.ResourceTransformer.transform()

        // http://jashkenas.github.com/coffee-script/
        ResourceTransformer rt = configuration.get(fileSuffix);

        InputStream buffered = new BufferedInputStream(url.openStream());

        InputStream transformed = rt == null ? buffered : rt.transform(buffered);

        BytestreamCache bytestreamCache = readStream(transformed);

        transformed.close();
        buffered.close();

Examples of org.apache.torque.generator.source.transform.SourceTransformer.transform()

                log.debug("No element found, nothing transformed");
            }
            for (SourceElement sourceElement : toTransform)
            {
                log.debug("transforming element " + sourceElement);
                SourceElement transformedElement = sourceTransformer.transform(
                        sourceElement,
                        controllerState);
                if (transformedElement == null)
                {
                    throw new SourceTransformerException("Transformer "

Examples of org.apache.torque.templates.transformer.LoadExternalSchemaTransformer.transform()

                    CombinedFileSource.PATH_ATTRIBUTE_NAME);
            File pathFile = new File(path);
            SourceTransformer loadExternalSchemaTransformer
                   = new LoadExternalSchemaTransformer(
                           pathFile.getParentFile());
            loadExternalSchemaTransformer.transform(
                    databaseElement,
                    controllerState);

            SourceElement allTablesRoot
                = databaseElement.getChild(DatabaseChildElementName.ALL_TABLES);

Examples of org.apache.tuscany.core.databinding.xml.InputStream2Node.transform()

                url = uri.toURL();
            }
            InputStream is = url.openStream();
            try {
                InputStream2Node transformer = new InputStream2Node();
                return (Document)transformer.transform(is, null);
            } finally {
                is.close();
            }
        } catch (Exception e) {
            throw new LoaderException(e);

Examples of org.apache.tuscany.core.databinding.xml.String2Node.transform()

        super.setUp();
    }

    public void testXPath() throws Exception {
        String2Node t = new String2Node();
        Node node = t.transform(IPO_XML, null);

        Document doc = PropertyHelper.evaluate(null, node, "/ipo:purchaseOrder/billTo");
        assertNotNull(doc);

        NamespaceContext context = EasyMock.createMock(NamespaceContext.class);

Examples of org.apache.tuscany.databinding.jaxb.JAXB2Node.transform()

        TransformationContext tContext1 = createMock(TransformationContext.class);
        expect(tContext1.getSourceDataType()).andReturn(sourceDataType).anyTimes();
        replay(tContext1);

        JAXB2Node t3 = new JAXB2Node();
        Node node = t3.transform(object2, tContext1);

        Node2XmlObject t4 = new Node2XmlObject();
        XmlObject object3 = t4.transform(node, null);

        Assert.assertNotNull(object3);
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.