Examples of unmarshal()


Examples of com.caucho.quercus.marshal.Marshal.unmarshal()

    int length = Array.getLength(obj);
     
    for (int i = 0; i < length; i++) {
      Object component = Array.get(obj, i);
     
      arrayValueImpl.put(componentClassMarshal.unmarshal(env, component));
    }

    return arrayValueImpl;
  }
}
View Full Code Here

Examples of com.cuubez.core.transform.json.DefaultJSONTransformer.unMarshal()

        DefaultJSONTransformer transformer = new DefaultJSONTransformer();
        Class<?> inputObjectType = messageContext.getRequestContext().getSelectedResource().getSelectedMethodMetaData().getInputObjectType();

        try {
            output = transformer.unMarshal(new InputStreamReader(messageContext.getRequestConfigurationContext().getRequest().getInputStream()), inputObjectType);
            setInputObjectToParameterArray(messageContext, output);
        } catch (IOException e) {
            log.error(e);
            throw new CuubezException(CuubezExceptionConstance.PARSING_EXCEPTION);
        }
View Full Code Here

Examples of com.cuubez.core.transform.xml.DefaultXMLTransformer.unMarshal()

        }

        if (content != null) {
            Class<?> inputObjectType = messageContext.getRequestContext().getSelectedResource().getSelectedMethodMetaData().getInputObjectType();
            String rootNode = XMLTransformerUtil.getRootNodeName(document);
            output = transformer.unMarshal(rootNode, content, inputObjectType);
            setInputObjectToParameterArray(messageContext, output);
        }

    }
View Full Code Here

Examples of com.elevenware.ladybird.entities.ContentHandler.unmarshal()

    @Override
    public <T> T getEntity(Class<T> clazz) {
        ContentType contentType = ContentType.parse(response.getEntity().getContentType().getValue());
        ContentHandler handler = ContentHandlers.getInstance().forType(contentType,originalAccept);
        return handler.unmarshal(payload, clazz);
    }
}
View Full Code Here

Examples of com.sun.jersey.json.impl.JSONUnmarshaller.unmarshal()

        final Charset c = getCharset(mediaType);
        if (type.isAnnotationPresent(XmlRootElement.class)) {
            if (u instanceof JSONUnmarshaller) {
                JSONUnmarshaller ju = (JSONUnmarshaller)u;
                ju.setJsonEnabled(true);
                JAXBElement jaxbElem = (JAXBElement)ju.
                        unmarshal(new InputStreamReader(entityStream, c),
                        type);
                return jaxbElem.getValue();
            } else {
                return u.unmarshal(
View Full Code Here

Examples of com.sun.xml.bind.api.Bridge.unmarshal()

                                                                    typeRefs, null, null, true, null);
            Bridge bridge = riContext.createBridge(ref);
          
            if (source instanceof XMLStreamReader) {
                //DOMUtils.writeXml(StaxUtils.read((XMLStreamReader)source), System.out);
                return bridge.unmarshal((XMLStreamReader)source);              
            } else if (source instanceof InputStream) {
                return bridge.unmarshal((InputStream)source);
            } else if (source instanceof Node) {
                return bridge.unmarshal((Node)source, am);
            } else {
View Full Code Here

Examples of com.sun.xml.internal.bind.api.Bridge.unmarshal()

    abstract protected Throwable getProtocolException();

    private Object getJAXBObject(Node jaxbBean, CheckedException ce) throws JAXBException {
        Bridge bridge = ce.getBridge();
        return bridge.unmarshal(jaxbBean);
    }

    private Exception createUserDefinedException(CheckedExceptionImpl ce) {
        Class exceptionClass = ce.getExceptionClass();
        Class detailBean = ce.getDetailBean();
View Full Code Here

Examples of com.sun.xml.ws.spi.db.RepeatedElementBridge.unmarshal()

            if (bridge instanceof RepeatedElementBridge) {
                RepeatedElementBridge rbridge = (RepeatedElementBridge)bridge;
                ArrayList list = new ArrayList();
                QName name = r.getName();
                while (r.getEventType()==XMLStreamReader.START_ELEMENT && name.equals(r.getName())) {
                    list.add(rbridge.unmarshal(r, au));
                    XMLStreamReaderUtil.toNextTag(r, name);
                }
                obj = rbridge.collectionHandler().convert(list);
            } else {
                obj = bridge.unmarshal(r, au);
View Full Code Here

Examples of com.sun.xml.ws.spi.db.XMLBridge.unmarshal()

    abstract protected Throwable getProtocolException();

    private Object getJAXBObject(Node jaxbBean, CheckedExceptionImpl ce) throws JAXBException {
        XMLBridge bridge = ce.getBond();
        return bridge.unmarshal(jaxbBean,null);
    }

    private Exception createUserDefinedException(CheckedExceptionImpl ce) {
        Class exceptionClass = ce.getExceptionClass();
        Class detailBean = ce.getDetailBean();
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.unmarshal()

        XQueryModule compiled1 = proc.parse(query1);
        Sequence<? extends Item> items = proc.execute(compiled1);
        INodeSequence<DTMElement> nodes = ProxyNodeSequence.wrap(items, DynamicContext.DUMMY);

        for(DTMElement node : nodes) {
            Object unmarshalled = xstream.unmarshal(new DTMReader(node));
            Author author = (Author) unmarshalled;
            System.out.println("author: " + author.getName());
        }
    }
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.