Package org.apache.tuscany.sdo.helper

Examples of org.apache.tuscany.sdo.helper.XMLStreamHelper.loadObject()


            // The XMLStreamHelper requires that the reader is posistioned at
            // START_ELEMENT
            while (source.getEventType() != XMLStreamConstants.START_ELEMENT && source.hasNext()) {
                source.next();
            }
            return streamHelper.loadObject(source);
        } catch (Exception e) {
            throw new TransformationException(e);
        }
    }
View Full Code Here


    public ModelObject load(CompositeComponent parent, XMLStreamReader reader, DeploymentContext deploymentContext) throws XMLStreamException, LoaderException {
        assert propertyQName.equals(reader.getName());
        // TODO: We need a way to get TypeHelper from deploymentContext
        TypeHelper typeHelper = TypeHelper.INSTANCE;
        XMLStreamHelper streamHelper = SDOUtil.createXMLStreamHelper(typeHelper);
        DataObject dataObject = streamHelper.loadObject(reader);
        // TODO: Is it required that the object always extends from ModelObject?
        return new ModelDataObject(dataObject);
    }

    @Autowire
View Full Code Here

            XMLStreamHelper streamHelper = SDOUtil.createXMLStreamHelper(typeHelper);
            // The XMLStreamHelper requires that the reader is posistioned at START_ELEMENT
            while (source.getEventType() != XMLStreamConstants.START_ELEMENT && source.hasNext()) {
                source.next();
            }
            return streamHelper.loadObject(source);
        } catch (Exception e) {
            throw new TransformationException(e);
        }
    }
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.