Package org.example.b.test

Examples of org.example.b.test.TestExtends


   @Test public void testManual() throws Exception
   {
      String output = marshall();
      System.out.println(output);
      TestExtends val = unmarshall(output);

   }
View Full Code Here


   private String marshall() throws JAXBException
   {
      JAXBContext jc = JAXBContext.newInstance(TestExtends.class, TestBase.class);

      TestExtends result = new TestExtends();
      result.setId("12121");
      result.setName("Test");
      result.setDesc("Desc");
      result.setElement2("Test");
      result.setSomeMoreEl("test");

      Configuration config = new Configuration();
      Map<String, String> xmlToJsonNamespaces = new HashMap<String,String>(1);
      xmlToJsonNamespaces.put("http://www.example.org/b/Test", "test");
      xmlToJsonNamespaces.put("http://www.example.org/a/TestCanonical", "can");
View Full Code Here

              @XmlNsMap(jsonName = "test", namespace = "http://www.example.org/b/Test"),
              @XmlNsMap(jsonName = "can", namespace = "http://www.example.org/a/TestCanonical")
      })
      public TestExtends getTestExtends()
      {
         TestExtends result = new TestExtends();
         result.setId("12121");
         result.setName("Test");
         result.setDesc("Desc");
         result.setElement2("Test");
         result.setSomeMoreEl("test");
         return result;
      }
View Full Code Here

TOP

Related Classes of org.example.b.test.TestExtends

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.