Examples of marshal()


Examples of org.jboss.xb.binding.SchemalessMarshaller.marshal()

   {
      Person person = Person.newInstance();
      StringWriter writer = new StringWriter();

      SchemalessMarshaller marshaller = new SchemalessMarshaller();
      marshaller.marshal(person, writer);

      log.info("marshalled:\n" + writer.getBuffer());

      StringReader reader = new StringReader(writer.getBuffer().toString());
      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
View Full Code Here

Examples of org.jboss.xb.binding.XercesXsMarshaller.marshal()

      marshaller.mapClassToXsiType(USAddress.class, PO_NS, "USAddress");

      MappingObjectModelProvider provider = new MappingObjectModelProvider();

      StringWriter writer = new StringWriter();
      marshaller.marshal(new StringReader(PO_XSD), provider, PurchaseOrder.INSTANCE, writer);
      assertXmlEqual(PO_XML, writer.getBuffer().toString());
   }

   public void testMarshallingSunday() throws Exception
   {
View Full Code Here

Examples of org.jboss.xb.binding.sunday.marshalling.MarshallerImpl.marshal()

      marshaller.mapClassToXsiType(UKAddress.class, PO_NS, "UKAddress");
      marshaller.mapClassToXsiType(USAddress.class, PO_NS, "USAddress");

      StringWriter writer = new StringWriter();

      marshaller.marshal(schema, null, PurchaseOrder.INSTANCE, writer);
      assertXmlEqual(PO_XML, writer.getBuffer().toString());
   }

   public void testUnmarshalCollection() throws Exception
   {
View Full Code Here

Examples of org.jibx.runtime.IMarshaller.marshal()

//        m_marshalContext.attribute(0, "targetNamespace", def.getWsdlNamespace());
//        m_marshalContext.closeStartContent();
       
        // marshal out remaining data
        IMarshaller mar = m_marshalContext.getMarshaller(Definitions.class.getName());
        mar.marshal(def, m_marshalContext);
        m_marshalContext.endDocument();
//       
//        // finish with close tag
//        m_marshalContext.endTag(s_wsdlNamespaceIndex, "definitions");
//        m_marshalContext.endDocument();
View Full Code Here

Examples of org.kie.api.marshalling.ObjectMarshallingStrategy.marshal()

            if ( belief.getObject() != null ) {
                ObjectMarshallingStrategy strategy = objectMarshallingStrategyStore.getStrategyObject( belief.getObject() );

                Integer index = context.getStrategyIndex( strategy );
                _logicalDependency.setObjectStrategyIndex( index.intValue() );
                _logicalDependency.setObject( ByteString.copyFrom( strategy.marshal( context.strategyContext.get( strategy ),
                                                                                     context,
                                                                                     belief.getObject() ) ) );
            }

            if ( belief.getValue() != null ) {
View Full Code Here

Examples of org.kie.marshalling.ObjectMarshallingStrategy.marshal()

            if ( belief.getObject() != null ) {
                ObjectMarshallingStrategy strategy = objectMarshallingStrategyStore.getStrategyObject( belief.getObject() );

                Integer index = context.getStrategyIndex( strategy );
                _logicalDependency.setObjectStrategyIndex( index.intValue() );
                _logicalDependency.setObject( ByteString.copyFrom( strategy.marshal( context.strategyContext.get( strategy ),
                                                                          context,
                                                                          belief.getObject() ) ) );
            }
           
            if ( belief.getValue() != null ) {
View Full Code Here

Examples of org.marc4j.marc.Leader.marshal()

        assertEquals("00714cam a2200205 a 4500", leader.toString());
    }

    public void testMarshal() {
        Leader leader = factory.newLeader("00714cam a2200205 a 4500");
        assertEquals("00714cam a2200205 a 4500", leader.marshal());
    }

    public void tearDown() {
        factory = null;
    }
View Full Code Here

Examples of org.objectweb.celtix.bus.bindings.soap.SOAPBindingImpl.marshal()

        SOAPMessageContext soapContext = (SOAPMessageContext)binding.createBindingMessageContext(objContext);
        soapContext.put(ObjectMessageContext.MESSAGE_INPUT, false);
        String arg0 = new String("TestSOAPInputPMessage");
        objContext.setMessageObjects(arg0);

        binding.marshal(objContext,
                         soapContext,
                         new JAXBDataBindingCallback(objContext.getMethod(),
                                                     DataBindingCallback.Mode.PARTS,
                                                     null));
        SOAPMessage msg = soapContext.getMessage();
View Full Code Here

Examples of org.omg.ETF.Profile.marshal()

        {
            Profile p = (Profile)profiles.get(i);
            TaggedComponentList c =
                (TaggedComponentList)componentMap.get(ObjectUtil.newInteger (p.tag()));
            tc.value = c.asArray();
            p.marshal (tp, tc);
            tps[i] = tp.value;
        }

        return new IOR(repId, tps);
    }
View Full Code Here

Examples of org.platformlayer.xml.JaxbHelper.marshal()

            if (debug != null) {
              debug.println("Data: [XML Content]");
            }

            JaxbHelper jaxbHelper = JaxbHelper.get(sendData.getClass());
            String xml = jaxbHelper.marshal(sendData, false);
            httpRequest.setRequestContent(new Utf8StringByteSource(xml));
            // jaxbHelper.marshal(sendData, false, getOutputStream());
            break;
          case JSON:
            if (debug != null) {
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.