Package org.jboss.xb.binding.resolver

Examples of org.jboss.xb.binding.resolver.MultiClassSchemaResolver


    * @param encoding - optional string encoding
    * @return SchemaBinding mapping
    */
   public static SchemaBinding bind(String xsd, String encoding)
   {
      return bind(xsd, encoding, new MultiClassSchemaResolver());
   }
View Full Code Here


  
   public SchemaBinding parse(String xsdUrl)
   {
      if(resolver == null)
      {
         resolver = new MultiClassSchemaResolver();
      }

      XSModel model = Util.loadSchema(xsdUrl, resolver);
      return parse(model);
   }
View Full Code Here

  
   public SchemaBinding parse(InputStream xsdStream, String encoding)
   {
      if(resolver == null)
      {
         resolver = new MultiClassSchemaResolver();
      }

      XSModel model = Util.loadSchema(xsdStream, encoding, resolver);
      return parse(model);
   }
View Full Code Here

  
   public SchemaBinding parse(Reader xsdReader, String encoding)
   {
      if(resolver == null)
      {
         resolver = new MultiClassSchemaResolver();
      }
 
      XSModel model = Util.loadSchema(xsdReader, encoding, resolver);
      return parse(model);
   }
View Full Code Here

      if(SCHEMA == null)
      {
         String testXsd = findXML(rootName + ".xsd");

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

         SCHEMA = XsdBinder.bind(testXsd, resolver);
         SCHEMA.setIgnoreUnresolvedFieldOrClass(false);

         TermBeforeSetParentCallback callback = new TermBeforeSetParentCallback()
View Full Code Here

                  "  targetNamespace='http://www.jboss.org/xml/test/xop'>" +
                  "  <import namespace='http://www.w3.org/2005/05/xmlmime' schemaLocation='xmlmime.xsd'/>" +
                  "  <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

TOP

Related Classes of org.jboss.xb.binding.resolver.MultiClassSchemaResolver

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.