Examples of XSModel


Examples of org.apache.xerces.xs.XSModel

    }

    private void processPSVISchemaInformation(ElementPSVI elemPSVI) {
        if (elemPSVI == null)
            return;
        XSModel schemaInfo = elemPSVI.getSchemaInformation();
        XSNamespaceItemList schemaNamespaces =
            schemaInfo == null ? null : schemaInfo.getNamespaceItems();
        if (schemaNamespaces == null || schemaNamespaces.getLength() == 0) {
            sendElementEvent("psv:schemaInformation");
        }
        else {
            sendIndentedElement("psv:schemaInformation");
View Full Code Here

Examples of org.apache.xerces.xs.XSModel

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

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

Examples of org.apache.xerces.xs.XSModel

    * @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

Examples of org.apache.xerces.xs.XSModel

    * @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

Examples of org.apache.xerces.xs.XSModel

   {
      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

Examples of org.apache.xerces.xs.XSModel

      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

Examples of org.apache.xerces.xs.XSModel

      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

Examples of org.apache.xerces.xs.XSModel

      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

Examples of org.apache.xerces.xs.XSModel

   // 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
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.