Package org.jboss.xb.binding

Examples of org.jboss.xb.binding.ObjectModelFactory


/* 113 */     unmarshaller.setSchemaValidation(isUseSchemaValidation());
/* 114 */     unmarshaller.setValidation(isUseValidation());
/* 115 */     Object parsed = null;
/*     */     try
/*     */     {
/* 118 */       ObjectModelFactory factory = getObjectModelFactory(root);
/* 119 */       URL url = file.toURL();
/* 120 */       parsed = unmarshaller.unmarshal(url.toString(), factory, root);
/*     */     }
/*     */     catch (Throwable t)
/*     */     {
View Full Code Here


/*      */   private Class ejbClass;
/*      */
/*      */   public static EjbJarDD parse(URL ddResource, EjbJarDD dd)
/*      */     throws JBossXBException, IOException
/*      */   {
/*   64 */     ObjectModelFactory factory = null;
/*   65 */     Unmarshaller unmarshaller = null;
/*      */
/*   67 */     if (ddResource != null)
/*      */     {
/*   69 */       log.debug("found jboss.xml " + ddResource);
View Full Code Here

/*    */     throws DeploymentException
/*    */   {
/*    */     try
/*    */     {
/* 50 */       Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/* 51 */       ObjectModelFactory factory = getObjectModelFactory();
/* 52 */       Object root = null;
/* 53 */       di.metaData = unmarshaller.unmarshal(url.toString(), factory, root);
/*    */     }
/*    */     catch (Throwable t)
/*    */     {
View Full Code Here

/*      */ {
/*   62 */   private static final Logger log = Logger.getLogger(EjbJarDDObjectFactory.class);
/*      */
/*      */   public static EjbJarDD parse(URL ddResource) throws JBossXBException, IOException
/*      */   {
/*   66 */     ObjectModelFactory factory = null;
/*   67 */     Unmarshaller unmarshaller = null;
/*   68 */     EjbJarDD dd = null;
/*      */
/*   70 */     if (ddResource != null)
/*      */     {
View Full Code Here

/* 132 */       InputStream wsXmlStream = new FileInputStream(wsXmlFile);
/*     */       WebservicesMetaData existingWebservices;
/*     */       try
/*     */       {
/* 135 */         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/* 136 */         ObjectModelFactory factory = new WebservicesFactory(wsXmlFile.toURL());
/* 137 */         existingWebservices = (WebservicesMetaData)unmarshaller.unmarshal(wsXmlStream, factory, null);
/*     */       }
/*     */       catch (JBossXBException e)
/*     */       {
/* 141 */         throw new WSException("Could not unmarshal existing webservices descriptor: " + wsXmlFile, e);
View Full Code Here

            throw new RuntimeException("Couldn't open default XML WSRP Consumer configuration file", e);
         }
      }

      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      ObjectModelFactory factory = new XMLWSRPConsumerFactory(this);
      if (entityResolver == null)
      {
         log.debug("Could not obtain entity resolver for XMLConsumerRegistry");
         entityResolver = new NullEntityResolver();
      }
View Full Code Here

   public void testObjectModelFactory() throws Exception
   {
      String url = findXML("IgnorableWhitespaceContent.xml");
     
      ObjectModelFactory omf = new OMF();
     
      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      Object o = unmarshaller.unmarshal(url, omf, null);
     
      assertNotNull(o);
View Full Code Here

   }

   public void testUnmarshalBookDtd() throws Exception
   {
      // create an object model factory
      ObjectModelFactory factory = new BookObjectFactory();
      unmarshalBook("book-dtd.xml", factory);
   }
View Full Code Here

    */
   public void testUnmarshalBooks2Dtd() throws Exception
   {
      // create an object model factory
      String xmlSource = "books2-dtd.xml";
      ObjectModelFactory factory = new BookObjectFactory();
      log.debug("<test-unmarshal-" + xmlSource + '>');

      // get the XML stream
      URL xmlUrl = getResource("/xml/book/" + xmlSource);

View Full Code Here

   }

   public void testUnmarshalBookXs() throws Exception
   {
      // create an object model factory
      ObjectModelFactory factory = new BookObjectFactory();
      unmarshalBook("book-xs.xml", factory);
   }
View Full Code Here

TOP

Related Classes of org.jboss.xb.binding.ObjectModelFactory

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.