Package org.jboss.xb.binding

Examples of org.jboss.xb.binding.ObjectModelFactory


   /**
    * Test if we can unmarshal a ra.xml with DTD
    */
   public void testRARwithSchema() throws Exception
   {
      ObjectModelFactory factory = new ResourceAdapterObjectModelFactory();
      Object metaData = unmarshaller.unmarshal(systemId, factory, null);
      assertNotNull("Null meta data", metaData);
   }
View Full Code Here


         {
            Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
            unmarshaller.setValidation(true);
            unmarshaller.setSchemaValidation(true);
            unmarshaller.setEntityResolver(new JBossWSEntityResolver());
            ObjectModelFactory factory = new HandlerChainsObjectFactory();
            handlerChainsMetaData = (UnifiedHandlerChainsMetaData)unmarshaller.unmarshal(is, factory, null);
         }
         finally
         {
            is.close();
View Full Code Here

         {
            Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
            unmarshaller.setValidation(true);
            unmarshaller.setSchemaValidation(true);
            unmarshaller.setEntityResolver(new JBossWSEntityResolver());
            ObjectModelFactory factory = new HandlerChainsObjectFactory();
            handlerChainsMetaData = (UnifiedHandlerChainsMetaData)unmarshaller.unmarshal(is, factory, null);
         }
         finally
         {
            is.close();
View Full Code Here

      if (defaultWSRPURL != null)
      {
         InputStream inputStream = defaultWSRPURL.openStream();

         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

      this.metaData = metaData;
   }
  
   protected ConnectorMetaData getConnectorMetaData() throws Exception
  
      ObjectModelFactory factory = new ResourceAdapterObjectModelFactory();
      UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
      Unmarshaller unmarshaller = unmarshallerFactory.newUnmarshaller();
     
      URL rar = Thread.currentThread().getContextClassLoader().getResource(rarName);
      JarFile rarFile = new JarFile(rar.getFile());
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 testUnmarshalBookXs() throws Exception
   {
      // create an object model factory
      ObjectModelFactory factory = new BookObjectFactory();
      unmarshalBook("book-xs.xml", factory);
   }
View Full Code Here

   private void checkMarshalledBook(String content, Book book)
      throws Exception
   {
      Book unmarshalled = new Book();
      ObjectModelFactory factory = new BookObjectFactory();

      Unmarshaller unmarshaller = getBookUnmarshaller();

      StringReader strReader = new StringReader(content);
      unmarshaller.unmarshal(strReader, factory, unmarshalled);
View Full Code Here

         InputStream in = config.openStream();
         // create unmarshaller
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();

         // create an instance of ObjectModelFactory
         ObjectModelFactory factory = new ProfileMetaDataFactory();

         // let the object model factory to create an instance of Map and populate it with data from XML
         meta = (ProfileMetaData)unmarshaller.unmarshal(in, factory, null);

         // close the XML stream
View Full Code Here

         InputStream in = config.openStream();
         // create unmarshaller
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();

         // create an instance of ObjectModelFactory
         ObjectModelFactory factory = new IdentityConfigurationMetaDataFactory();

         // let the object model factory to create an instance of Map and populate it with data from XML
         meta = (IdentityConfigurationMetaData)unmarshaller.unmarshal(in, factory, null);

         // close the XML stream
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.