Examples of mapFactoryToNamespace()


Examples of org.jboss.xb.binding.Unmarshaller.mapFactoryToNamespace()

      LoginConfigObjectModelFactory lcomf = new SecurityConfigObjectModelFactory();
      UsersObjectModelFactory uomf = new UsersObjectModelFactory();

      InputStreamReader xmlReader = loadURL(loginConfigURL);
      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      unmarshaller.mapFactoryToNamespace(uomf, "http://www.jboss.org/j2ee/schemas/XMLLoginModule");
      Object root = null;
      PolicyConfig config = (PolicyConfig) unmarshaller.unmarshal(xmlReader, lcomf, root);
      Set<String> cnames = config.getConfigNames();
      configNames.addAll(cnames);
      appConfigs.copy(config);
View Full Code Here

Examples of org.jboss.xb.binding.Unmarshaller.mapFactoryToNamespace()

      UsersObjectModelFactory uomf = new UsersObjectModelFactory();
      URL xmlFileURL = tcl.getResource(xmlFile);
      assertNotNull("XML File URL is not null", xmlFileURL);
      InputStreamReader xmlReader = loadURL(xmlFileURL);
      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      unmarshaller.mapFactoryToNamespace(uomf, "http://www.jboss.org/j2ee/schemas/XMLLoginModule");
      unmarshaller.setSchemaValidation(true);
      unmarshaller.setNamespaceAware(true);
      unmarshaller.setFeature(Unmarshaller.SCHEMA_VALIDATION, Boolean.TRUE);
      Object root = null;
      config = (PolicyConfig) unmarshaller.unmarshal(xmlReader, lcomf, root);
View Full Code Here

Examples of org.jboss.xb.binding.Unmarshaller.mapFactoryToNamespace()

      SecurityConfigObjectModelFactory lcomf = new SecurityConfigObjectModelFactory();
      UsersObjectModelFactory uomf = new UsersObjectModelFactory();

      InputStreamReader xmlReader = new InputStreamReader(loginConfigURL.openStream());
      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      unmarshaller.mapFactoryToNamespace(uomf, "http://www.jboss.org/j2ee/schemas/XMLLoginModule");
      policyConfig = (PolicyConfig) unmarshaller.unmarshal(xmlReader, lcomf, (Object)null);
   }

   /**
    * Dummy CallbackHandler
View Full Code Here

Examples of org.jboss.xb.binding.Unmarshaller.mapFactoryToNamespace()

   }

   public static final XsdAnnotation unmarshal(String annotation)
   {
      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      unmarshaller.mapFactoryToNamespace(JaxbObjectModelFactory.INSTANCE, Constants.NS_JAXB);
      unmarshaller.mapFactoryToNamespace(JbxbObjectModelFactory.INSTANCE, Constants.NS_JBXB);

      try
      {
         return (XsdAnnotation)unmarshaller.unmarshal(new StringReader(annotation),
View Full Code Here

Examples of org.jboss.xb.binding.Unmarshaller.mapFactoryToNamespace()

   public static final XsdAnnotation unmarshal(String annotation)
   {
      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      unmarshaller.mapFactoryToNamespace(JaxbObjectModelFactory.INSTANCE, Constants.NS_JAXB);
      unmarshaller.mapFactoryToNamespace(JbxbObjectModelFactory.INSTANCE, Constants.NS_JBXB);

      try
      {
         return (XsdAnnotation)unmarshaller.unmarshal(new StringReader(annotation),
            XsdObjectModelFactory.INSTANCE,
View Full Code Here

Examples of org.jboss.xb.binding.Unmarshaller.mapFactoryToNamespace()

/*     */   }
/*     */
/*     */   public static final XsdAnnotation unmarshal(String annotation)
/*     */   {
/*  53 */     Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/*  54 */     unmarshaller.mapFactoryToNamespace(JaxbObjectModelFactory.INSTANCE, "http://java.sun.com/xml/ns/jaxb");
/*  55 */     unmarshaller.mapFactoryToNamespace(JbxbObjectModelFactory.INSTANCE, "http://www.jboss.org/xml/ns/jbxb");
/*     */     try
/*     */     {
/*  59 */       return (XsdAnnotation)unmarshaller.unmarshal(new StringReader(annotation), XsdObjectModelFactory.INSTANCE, (Object)null);
/*     */     }
View Full Code Here

Examples of org.jboss.xb.binding.Unmarshaller.mapFactoryToNamespace()

/*     */
/*     */   public static final XsdAnnotation unmarshal(String annotation)
/*     */   {
/*  53 */     Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/*  54 */     unmarshaller.mapFactoryToNamespace(JaxbObjectModelFactory.INSTANCE, "http://java.sun.com/xml/ns/jaxb");
/*  55 */     unmarshaller.mapFactoryToNamespace(JbxbObjectModelFactory.INSTANCE, "http://www.jboss.org/xml/ns/jbxb");
/*     */     try
/*     */     {
/*  59 */       return (XsdAnnotation)unmarshaller.unmarshal(new StringReader(annotation), XsdObjectModelFactory.INSTANCE, (Object)null);
/*     */     }
/*     */     catch (JBossXBException e)
View Full Code Here

Examples of org.jboss.xb.binding.Unmarshaller.mapFactoryToNamespace()

/* 415 */     LoginConfigObjectModelFactory lcomf = new SecurityConfigObjectModelFactory();
/* 416 */     UsersObjectModelFactory uomf = new UsersObjectModelFactory();
/*     */
/* 418 */     InputStreamReader xmlReader = loadURL(loginConfigURL);
/* 419 */     Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/* 420 */     unmarshaller.mapFactoryToNamespace(uomf, "http://www.jboss.org/j2ee/schemas/XMLLoginModule");
/* 421 */     Object root = null;
/* 422 */     PolicyConfig config = (PolicyConfig)unmarshaller.unmarshal(xmlReader, lcomf, root);
/* 423 */     Set cnames = config.getConfigNames();
/* 424 */     configNames.addAll(cnames);
/* 425 */     this.appConfigs.copy(config);
View Full Code Here

Examples of org.jboss.xb.binding.Unmarshaller.mapFactoryToNamespace()

      throws Exception
   {
      XMBeanMetaData xmbean = new XMBeanMetaData();

      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      unmarshaller.mapFactoryToNamespace(JDBCPmMetaDataFactory.INSTANCE, "http://jboss.org/xmbean/persistence/jdbc");
      unmarshaller.unmarshal(xmlReader, XMBeanMetaDataFactory.INSTANCE, xmbean);

      return xmbean;
   }
View Full Code Here

Examples of org.jboss.xb.binding.Unmarshaller.mapFactoryToNamespace()

      SecurityConfigObjectModelFactory lcomf = new SecurityConfigObjectModelFactory();
      UsersObjectModelFactory uomf = new UsersObjectModelFactory();

      InputStreamReader xmlReader = new InputStreamReader(loginConfigURL.openStream());
      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
      unmarshaller.mapFactoryToNamespace(uomf, "http://www.jboss.org/j2ee/schemas/XMLLoginModule");
      policyConfig = (PolicyConfig) unmarshaller.unmarshal(xmlReader, lcomf, (Object)null);
   }

   /**
    * Dummy CallbackHandler
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.