Package org.apache.tuscany.databinding.xmlbeans

Examples of org.apache.tuscany.databinding.xmlbeans.XmlObject2XMLStreamReader


        transformers.add(new Node2JAXB());
        transformers.add(new XMLStreamReader2JAXB());

        // Adding XMLBeans transformers
        transformers.add(new XmlObject2Node());
        transformers.add(new XmlObject2XMLStreamReader());
        transformers.add(new Node2XmlObject());
        transformers.add(new XMLStreamReader2XmlObject());

        transformers.add(new DataObject2XMLStreamReader());
        transformers.add(new XMLStreamReader2DataObject());
View Full Code Here


    public void testTransform() throws Exception {
        // URL/Stream/Reader to XmlObject
        XmlObject object = XmlObject.Factory.parse(new StringReader(IPO_XML));

        // XmlObject to XMLStreamReader
        XmlObject2XMLStreamReader t1 = new XmlObject2XMLStreamReader();
        XMLStreamReader reader = t1.transform(object, null);

        DataType targetDataType = new DataType<Class>(Object.class, null);
        targetDataType.setMetadata(JAXBContextHelper.JAXB_CONTEXT_PATH, contextPath);

        TransformationContext tContext = createMock(TransformationContext.class);
View Full Code Here

    public void testTransform() throws Exception {
        XmlObject object = XmlObject.Factory.parse(new StringReader(IPO_XML));

        // XmlObject to XMLStreamReader
        XmlObject2XMLStreamReader t1 = new XmlObject2XMLStreamReader();
        XMLStreamReader reader = t1.transform(object, null);

        // XMLStreamReader to XmlObject
        XMLStreamReader2XmlObject t2 = new XMLStreamReader2XmlObject();
        XmlObject object2 = t2.transform(reader, null);
View Full Code Here

TOP

Related Classes of org.apache.tuscany.databinding.xmlbeans.XmlObject2XMLStreamReader

Copyright © 2018 www.massapicom. 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.