Examples of mapSchemaLocation()


Examples of org.jboss.xb.binding.resolver.MultiClassSchemaResolver.mapSchemaLocation()

                  "  <element name='applxml' xmime:expectedContentTypes='application/xml' type='xmime:base64Binary'/>" +
                  "</schema>";

      MultiClassSchemaResolver resolver = new MultiClassSchemaResolver();
      String xmimeXsd = getSchemaLocation(getClass(), "xmlmime.xsd");
      resolver.mapSchemaLocation("http://www.w3.org/2005/05/xmlmime", xmimeXsd);

      SchemaBinding schema = XsdBinder.bind(new StringReader(xsd), null, resolver);
      schema.setIgnoreUnresolvedFieldOrClass(false);
      schema.setXopUnmarshaller(XOP_ENABLED_UNMARSH);
View Full Code Here

Examples of org.jboss.xb.binding.resolver.MutableSchemaResolver.mapSchemaLocation()

   {
      MutableSchemaResolver resolver = SingletonSchemaResolverFactory.getInstance().getSchemaBindingResolver();
      Class clazz = SingletonSchemaBindingResolverUnitTestCase.class;
      resolver.mapSchemaInitializer(ContainerInitializer.NS, ContainerInitializer.class.getName());
      String location = getSchemaLocation(clazz, "SchemaBindingInitializerUnitTestCaseContainer.xsd");
      resolver.mapSchemaLocation(ContainerInitializer.NS, location);
      return resolver;
   }

   public void testBean() throws Exception
   {
View Full Code Here

Examples of org.jboss.xb.binding.resolver.MutableSchemaResolver.mapSchemaLocation()

      super.setUp();
      unmarshallerFactory = UnmarshallerFactory.newInstance();
      resolver = SingletonSchemaResolverFactory.getInstance().getSchemaBindingResolver();
      MutableSchemaResolver defaultSchemaResolver = (MutableSchemaResolver) resolver;
      defaultSchemaResolver.mapSchemaInitializer("urn:jboss:spring-beans:2.0", new SpringSchemaInitializer());
      defaultSchemaResolver.mapSchemaLocation("urn:jboss:spring-beans:2.0", "mc-spring-beans_2_0.xsd");
      defaultSchemaResolver.setParseXSDAnnotations("urn:jboss:spring-beans:2.0", Boolean.FALSE);
   }


   /**
 
View Full Code Here

Examples of org.jboss.xb.binding.resolver.MutableSchemaResolver.mapSchemaLocation()

   public void setUp() throws Exception
   {
      SchemaBindingResolver resolver = SingletonSchemaResolverFactory.getInstance().getSchemaBindingResolver();
      MutableSchemaResolver defaultSchemaResolver = (MutableSchemaResolver) resolver;
      defaultSchemaResolver.mapSchemaInitializer("urn:jboss:spring-beans:2.0", new SpringSchemaInitializer());
      defaultSchemaResolver.mapSchemaLocation("urn:jboss:spring-beans:2.0", "mc-spring-beans_2_0.xsd");
      defaultSchemaResolver.setParseXSDAnnotations("urn:jboss:spring-beans:2.0", Boolean.FALSE);
      super.setUp();
   }

   protected BasicXMLDeployer createDeployer()
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.