Package org.apache.xerces.xs

Examples of org.apache.xerces.xs.XSModel


    * @param encoding - optional stream encoding
    * @return SchemaBinding mapping
    */
   public static final SchemaBinding bind(InputStream xsdStream, String encoding, String baseURI)
   {
      XSModel model = loadSchema(xsdStream, encoding, baseURI);
      return bind(model, baseURI);
   }
View Full Code Here


    * @param encoding - optional reader encoding
    * @return SchemaBinding mapping
    */
   public static final SchemaBinding bind(Reader xsdReader, String encoding, String baseURI)
   {
      XSModel model = loadSchema(xsdReader, encoding, baseURI);
      return bind(model, baseURI);
   }
View Full Code Here

    * @param encoding - optional string encoding
    * @return SchemaBinding mapping
    */
   public static final SchemaBinding bind(String xsd, String encoding)
   {
      XSModel model = loadSchema(xsd, encoding);
      return bind(model);
   }
View Full Code Here

   {
      log.debug("loading xsd: " + xsdURL);

      XSImplementation impl = getXSImplementation();
      XSLoader schemaLoader = impl.createXSLoader(null);
      XSModel model = schemaLoader.loadURI(xsdURL);
      if(model == null)
      {
         throw new IllegalArgumentException("Invalid URI for schema: " + xsdURL);
      }
View Full Code Here

      log.debug("loading xsd from InputStream");
      LSInputAdaptor input = new LSInputAdaptor(is, encoding, baseURI);

      XSImplementation impl = getXSImplementation();
      XSLoader schemaLoader = impl.createXSLoader(null);
      XSModel model = schemaLoader.load(input);
      return model;
   }
View Full Code Here

      log.debug("loading xsd from Reader");
      LSInputAdaptor input = new LSInputAdaptor(reader, encoding, baseURI);

      XSImplementation impl = getXSImplementation();
      XSLoader schemaLoader = impl.createXSLoader(null);
      XSModel model = schemaLoader.load(input);
      return model;
   }
View Full Code Here

      log.debug("loading xsd from string");
      LSInputAdaptor input = new LSInputAdaptor(data, encoding);

      XSImplementation impl = getXSImplementation();
      XSLoader schemaLoader = impl.createXSLoader(null);
      XSModel model = schemaLoader.load(input);
      return model;
   }
View Full Code Here

   // AbstractMarshaller implementation

   public void marshal(Reader xsdReader, ObjectModelProvider provider, Object root, Writer writer)
      throws IOException, SAXException, ParserConfigurationException
   {
      XSModel model = loadSchema(xsdReader);
      marshallInternal(provider, root, model, writer);
   }
View Full Code Here

   }

   public void marshal(String xsdURL, ObjectModelProvider provider, Object root, Writer writer) throws IOException,
      SAXException
   {
      XSModel model = loadSchema(xsdURL);
      marshallInternal(provider, root, model, writer);
   }
View Full Code Here

      this.root = stack.peek();
      this.provider = mapping.provider;
      this.stack = new StackImpl();

      boolean marshalled = false;
      XSModel model = loadSchema(mapping.schemaUrl);
      XSNamedMap components = model.getComponents(XSConstants.ELEMENT_DECLARATION);
      for(int i = 0; i < components.getLength(); ++i)
      {
         XSElementDeclaration element = (XSElementDeclaration)components.item(i);
         marshalled =
            marshalElement(element.getNamespace(),
View Full Code Here

TOP

Related Classes of org.apache.xerces.xs.XSModel

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.