Examples of unmarshal()


Examples of org.apache.camel.spi.DataFormat.unmarshal()

                      MultivaluedMap<String, String> headers, InputStream is) throws IOException,
        WebApplicationException {
        DataFormat format = getValidDataFormat(mt);
        try {
            @SuppressWarnings("unchecked")
            T result = (T)format.unmarshal(null, is);
            return result;
        } catch (Exception ex) {
            throw new BadRequestException(ex);
        }
    }
View Full Code Here

Examples of org.apache.juddi.handler.IHandler.unmarshal()

          "specified is unknown or unsupported: " +operation);
     
      // Unmarshal the raw xml into the appropriate jUDDI
      // request object.

      RegistryObject uddiReqObj = requestHandler.unmarshal(uddiReq);
     
      // Grab a reference to the shared jUDDI registry
      // instance (make sure it's running) and execute the
      // requested UDDI function.
     
View Full Code Here

Examples of org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec.unmarshal()

            // JavaBin Content
            try {
                // We will use the JavaBin codec from solrj
                // unmarshal the input to a SolrUpdate request
                JavaBinUpdateRequestCodec codec = new JavaBinUpdateRequestCodec();
                UpdateRequest req = codec.unmarshal(new ByteArrayInputStream(request.content().array()), null);

                // Get the list of documents to index out of the UpdateRequest
                // Add each document to the bulk request
                // convert the SolrInputDocument into a map which will be used as the ES source field
                List<SolrInputDocument> docs = req.getDocuments();
View Full Code Here

Examples of org.apache.solr.common.util.JavaBinCodec.unmarshal()

          handler.document(listToSolrInputDocument((List<NamedList>) o), updateRequest);
        }
        return Collections.EMPTY_LIST;
      }
    };
    codec.unmarshal(is);
    delById = (List<String>) namedList[0].get("delById");
    delByQ = (List<String>) namedList[0].get("delByQ");
    doclist = (List<List<NamedList>>) namedList[0].get("docs");

    if (doclist != null && !doclist.isEmpty()) {
View Full Code Here

Examples of org.apache.ws.jaxme.JMUnmarshaller.unmarshal()

  /** Test for unmarshalling of simple elements.
   */
  public void testUnmarshalSimpleElements() throws Exception {
    JMUnmarshaller jmUnmarshaller = (JMUnmarshaller) getFactory().createUnmarshaller();
    StringReader sr = new StringReader(getAllTypesElementString());
    AllTypesElement result = (AllTypesElement) jmUnmarshaller.unmarshal(new InputSource(sr));
    verifyAllSimpleTypesElement(result.getAllSimpleTypesElement());
  }

  /** Test for unmarshalling of complex elements.
   */
 
View Full Code Here

Examples of org.apache.xmlbeans.unmarshal.MessagePlan.unmarshal()

                break;
            xinput.skip();
        }

        UnmarshalContext context = new UnmarshalContext();
        Object[] result = (Object[])messagePlan.unmarshal(xinput, context);
        context.complete();

        for (int i = 0; i < result.length; i++)
        {
            System.out.println("Result " + i + " = " + result[i]);
View Full Code Here

Examples of org.apdplat.platform.util.XMLFactory.unmarshal()

        }
        return dics;
    }   
    private static void parseDic(String xml, List<Dic> dics) {
        XMLFactory factory=new XMLFactory(Dic.class,DicItem.class);
        Dic dic=factory.unmarshal(xml);
        //将XML表示的数据字典转变为JAVA对象表示的数据字典
        assembleDic(dic);
        dics.add(dic);
    }
    /**
 
View Full Code Here

Examples of org.docx4j.openpackaging.parts.DrawingML.DiagramColorsPart.unmarshal()

    DiagramLayoutPart layout = new DiagramLayoutPart();
    layout.setJaxbElement(gloxPackage.getDiagramLayoutPart().getJaxbElement());
    gloxPackage.getDiagramLayoutPart().getJaxbElement().setUniqueId("mylayout");

    DiagramColorsPart colors = new DiagramColorsPart();
    colors.unmarshal("colorsDef-accent1_2.xml");
    //colors.CreateMinimalContent("mycolors");

    DiagramStylePart style = new DiagramStylePart();
    style.unmarshal("quickStyle-simple1.xml");
    //style.CreateMinimalContent("mystyle");
View Full Code Here

Examples of org.docx4j.openpackaging.parts.DrawingML.DiagramStylePart.unmarshal()

    DiagramColorsPart colors = new DiagramColorsPart();
    colors.unmarshal("colorsDef-accent1_2.xml");
    //colors.CreateMinimalContent("mycolors");

    DiagramStylePart style = new DiagramStylePart();
    style.unmarshal("quickStyle-simple1.xml");
    //style.CreateMinimalContent("mystyle");

    // DiagramDataPart
    DiagramDataPart data = new DiagramDataPart();
View Full Code Here

Examples of org.docx4j.openpackaging.parts.ThemePart.unmarshal()

      // Theme part
      ThemePart themePart = new ThemePart(new PartName("/ppt/theme/theme1.xml"));
      java.io.InputStream is = ResourceUtils.getResourceViaProperty(
          "pptx4j.openpackaging.packages.PresentationMLPackage.DefaultTheme",
            "org/docx4j/openpackaging/parts/PresentationML/theme.xml");
      themePart.unmarshal(is);
     
      // .. add it in 2 places ..
      masterPart.addTargetPart(themePart);
      pp.addTargetPart(themePart);
     
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.