Package org.jboss.xb.binding.sunday.marshalling

Examples of org.jboss.xb.binding.sunday.marshalling.MarshallerImpl$MarshallingContextImpl


   }
  
   public void testTermBeforeMarshallingHandler_stringType() throws Exception
   {
      SchemaBinding schema = getSchema();
      MarshallerImpl marshaller = getMarshaller();
      StringWriter writer = new StringWriter();
      GlobalElement global = new GlobalElement();
      global.stringType = GlobalElement.STRING_TYPE;
      marshaller.marshal(schema, null, global, writer);
      assertXmlEqual(XML_STRING_TYPE, writer.getBuffer().toString());
   }
View Full Code Here


   }

   public void testTermBeforeMarshallingHandler_stringElement() throws Exception
   {
      SchemaBinding schema = getSchema();
      MarshallerImpl marshaller = getMarshaller();
      StringWriter writer = new StringWriter();
      GlobalElement global = new GlobalElement();
      global.stringElement = GlobalElement.TEXT;
      marshaller.marshal(schema, null, global, writer);
      assertXmlEqual(XML_STRING_ELEMENT, writer.getBuffer().toString());
   }
View Full Code Here

   }

   public void testTermBeforeMarshallingHandler_sequenceItem() throws Exception
   {
      SchemaBinding schema = getSchema();
      MarshallerImpl marshaller = getMarshaller();
      StringWriter writer = new StringWriter();
      GlobalElement global = new GlobalElement();
      global.sequenceItem = GlobalElement.STRING_TYPE;
      marshaller.marshal(schema, null, global, writer);
      assertXmlEqual(XML_SEQUENCE_ITEM, writer.getBuffer().toString());
   }
View Full Code Here

   // private
  
   private MarshallerImpl getMarshaller()
   {
      MarshallerImpl marshaller = new MarshallerImpl();
      //marshaller.addRootElement(new QName("http://jboss.org/ns/test", "global"));
      //marshaller.mapFieldToWildcard(GlobalElement.class, "anyObject", null);
      //marshaller.mapClassToGlobalElement(GlobalElement.Any.class, "intElement", "http://jboss.org/ns/test", null, null);
      return marshaller;
   }
View Full Code Here

    * XercesXsMarshaller does not support marshalling of model groups since
    * it is not based on annotations
    */
   public void testMarshallingSunday() throws Exception
   {
      marshallingTest(new MarshallerImpl());
   }
View Full Code Here

   public void testListOfListsMarshalling() throws Exception
   {
      GlobalElement global = new GlobalElement();
      global.listOfLists = LIST_OF_LISTS;

      MarshallerImpl marshaller = new MarshallerImpl();
      marshaller.setProperty(Marshaller.PROP_OUTPUT_INDENTATION, "false");
      StringWriter writer = new StringWriter();
      marshaller.marshal(SCHEMA, null, global, writer);

      String marshalled = writer.getBuffer().toString();
      assertXmlEqual(LIST_OF_LISTS_XML, marshalled);
   }
View Full Code Here

   private static String marshal(XOPMarshaller xopMarshaller, E e)
         throws IOException, SAXException
   {
      SCHEMA.setXopMarshaller(xopMarshaller);
      StringWriter writer = new StringWriter();
      MarshallerImpl marshaller = new MarshallerImpl();
      marshaller.marshal(SCHEMA, null, e, writer);
      return writer.getBuffer().toString();
   }
View Full Code Here

      assertMarshalling(new XercesXsMarshaller());
   }

   public void testMarshallingSunday() throws Exception
   {
      assertMarshalling(new MarshallerImpl());
   }
View Full Code Here

      assertMarshallingArray(new XercesXsMarshaller());
   }

   public void testMarshallingArraySunday() throws Exception
   {
      assertMarshallingArray(new MarshallerImpl());
   }
View Full Code Here

      assertMarshalling(marshaller);
   }

   public void testMarshallingSunday() throws Exception
   {
      MarshallerImpl marshaller = new MarshallerImpl();
      marshaller.setSchemaResolver(RESOLVER);
      assertMarshalling(marshaller);
   }
View Full Code Here

TOP

Related Classes of org.jboss.xb.binding.sunday.marshalling.MarshallerImpl$MarshallingContextImpl

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.