Examples of transform()


Examples of org.apache.tuscany.sca.databinding.xml.Node2String.transform()

        XMLStreamReader reader = new DataObject2XMLStreamReader().transform(dataObject, context);
        XMLStreamReader2Node t2 = new XMLStreamReader2Node(new DefaultExtensionPointRegistry());
        org.w3c.dom.Node node = t2.transform(reader, context);
        assertNotNull(node);
        Node2String t3 = new Node2String(new DefaultExtensionPointRegistry());
        String xml = t3.transform(node, context);
        assertTrue(xml.contains("xmlns:xsi"));
    }

}

Examples of org.apache.tuscany.sca.databinding.xml.Node2XMLStreamReader.transform()

public class CallableReferenceXMLAdapter extends XmlAdapter<Element, CallableReference> {

    @Override
    public CallableReference unmarshal(Element v) throws Exception {
        Node2XMLStreamReader tf = new Node2XMLStreamReader();
        XMLStreamReader reader = tf.transform(v, null);
        XMLStreamReader2CallableReference t2 = new XMLStreamReader2CallableReference();
        return t2.transform(reader, null);
    }

    @Override

Examples of org.apache.tuscany.sca.databinding.xml.XMLStreamReader2Node.transform()

    }
   
    public final void testTransform1() throws XMLStreamException {
        XMLStreamReader reader = new DataObject2XMLStreamReader().transform(dataObject, context);
        XMLStreamReader2Node t2 = new XMLStreamReader2Node(new DefaultExtensionPointRegistry());
        org.w3c.dom.Node node = t2.transform(reader, context);
        assertNotNull(node);
        Node2String t3 = new Node2String(new DefaultExtensionPointRegistry());
        String xml = t3.transform(node, context);
        assertTrue(xml.contains("xmlns:xsi"));
    }

Examples of org.apache.tuscany.sca.databinding.xml.XMLStreamReader2String.transform()

    public void testReader() throws Exception {
        XMLInputFactory factory = XMLInputFactory.newInstance();
        XMLStreamReader r1 = factory.createXMLStreamReader(new StringReader(xml));
        XMLDocumentStreamReader r2 = new XMLDocumentStreamReader(r1);
        XMLStreamReader2String t1 = new XMLStreamReader2String();
        String result = t1.transform(r2, null);
        System.out.println(result);
        XMLStreamReader r3 = factory.createXMLStreamReader(new StringReader(xml));
        r3.nextTag();
        r3.nextTag();
        Assert.assertEquals(XMLStreamConstants.START_ELEMENT, r3.getEventType());

Examples of org.apache.xalan.xsltc.Translet.transform()

      tohFactory.setOutputType(TransletOutputHandlerFactory.STREAM);
      tohFactory.setEncoding(_translet._encoding);
      tohFactory.setOutputMethod(_translet._method);

      if (_iterations == -1) {
    translet.transform(dom, _useOldOutputSystem ?
          tohFactory.getOldTransletOutputHandler() :
          tohFactory.getTransletOutputHandler());
      }
      else if (_iterations > 0) {
    long mm = System.currentTimeMillis();

Examples of org.apache.xalan.xsltc.runtime.AbstractTranslet.transform()

    _dtdMonitor.buildIdIndex(_dom, 0, translet);
    // Pass unparsed entities to translet
    translet.setUnparsedEntityURIs(_dtdMonitor.
                 getUnparsedEntityURIs());
    // Do the actual transformation
    translet.transform(_dom, tohFactory.getTransletOutputHandler());

    final long done = System.currentTimeMillis() - start;
    out.println("<!-- transformed by XSLTC in "+done+"msecs -->");
      }
      // Now close up the sink, and return the HTML output in the

Examples of org.apache.xml.security.stax.ext.Transformer.transform()

                    Map<String, Object> transformerProperties = new HashMap<String, Object>(2);
                    transformerProperties.put(
                            AttachmentContentSignatureTransform.ATTACHMENT, attachment);
                    transformer.setProperties(transformerProperties);
                    transformer.transform(inputStream);
                    transformer.doFinal();

                    digestOutputStream.close();

                    //reset the inputStream to be able to reuse it

Examples of org.apache.xml.security.stax.impl.transformer.TransformBase64Decode.transform()

            if (xmlSecEvent.isStartElement() && xmlSecEvent.asStartElement().getName().equals(new QName("urn:example:po", "PaymentInfo"))) {
                break;
            }
        }
        while (xmlSecEventReader.hasNext()) {
            transformBase64Decode.transform(xmlSecEvent);
            if (xmlSecEvent.isEndElement() && xmlSecEvent.asEndElement().getName().equals(new QName("urn:example:po", "PaymentInfo"))) {
                break;
            }
            xmlSecEvent = (XMLSecEvent) xmlSecEventReader.nextEvent();
        }

Examples of org.apache.xml.security.stax.impl.transformer.TransformEnvelopedSignature.transform()

                        "com/phaos/phaos-xmldsig-three/signature-rsa-enveloped.xml")
        );

        while (xmlSecEventReader.hasNext()) {
            XMLSecEvent xmlSecEvent = (XMLSecEvent) xmlSecEventReader.nextEvent();
            transformEnvelopedSignature.transform(xmlSecEvent);
        }

        transformEnvelopedSignature.doFinal();

        Assert.assertEquals(19, xmlSecEvents.size());

Examples of org.apache.xml.security.stax.impl.transformer.TransformIdentity.transform()

            if (xmlSecEvent.isStartElement() && xmlSecEvent.asStartElement().getName().equals(new QName("urn:example:po", "PaymentInfo"))) {
                break;
            }
        }
        while (xmlSecEventReader.hasNext()) {
            transformIdentity.transform(xmlSecEvent);
            if (xmlSecEvent.isEndElement() && xmlSecEvent.asEndElement().getName().equals(new QName("urn:example:po", "PaymentInfo"))) {
                break;
            }
            xmlSecEvent = (XMLSecEvent) xmlSecEventReader.nextEvent();
        }
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.