org.clazzes.jdbc2xml.sax
Class JDBC2XMLSchemaHelper

java.lang.Object
  extended by org.clazzes.jdbc2xml.sax.JDBC2XMLSchemaHelper

public abstract class JDBC2XMLSchemaHelper
extends java.lang.Object

This class helps in contructing a Schema instance, which is suitable for parsing jdbc2xml XML documents.

Author:
wglas

Field Summary
static java.lang.String XML2JDBC_RESOURCE_PATH
          The resource path, where the jdbc2xml schema description is stored.
 
Constructor Summary
JDBC2XMLSchemaHelper()
           
 
Method Summary
static javax.xml.validation.Schema createSchema()
          Construct a schema for the jdbc2xml namespace using the SchemaFactory returned by SchemaFactory.newInstance(String) for the XML w3C schema URI XMLConstants.W3C_XML_SCHEMA_NS_URI.
static javax.xml.validation.Schema createSchema(javax.xml.validation.SchemaFactory schemaFactory)
          Construct a schema for the jdbc2xml namespace using the given SchemaFactory and the default classloader.
static javax.xml.validation.Schema createSchema(javax.xml.validation.SchemaFactory schemaFactory, java.lang.ClassLoader loader)
          Construct a schema for the jdbc2xml namespace using the given SchemaFactory and classloader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML2JDBC_RESOURCE_PATH

public static final java.lang.String XML2JDBC_RESOURCE_PATH
The resource path, where the jdbc2xml schema description is stored.

See Also:
Constant Field Values
Constructor Detail

JDBC2XMLSchemaHelper

public JDBC2XMLSchemaHelper()
Method Detail

createSchema

public static javax.xml.validation.Schema createSchema(javax.xml.validation.SchemaFactory schemaFactory,
                                                       java.lang.ClassLoader loader)
                                                throws org.xml.sax.SAXException
Construct a schema for the jdbc2xml namespace using the given SchemaFactory and classloader.

Parameters:
schemaFactory - The schema factory to be used, which must be configured to parse W3C XML schema descriptions.
loader - The classloader to be used.
Throws:
org.xml.sax.SAXException

createSchema

public static javax.xml.validation.Schema createSchema(javax.xml.validation.SchemaFactory schemaFactory)
                                                throws org.xml.sax.SAXException
Construct a schema for the jdbc2xml namespace using the given SchemaFactory and the default classloader.

Parameters:
schemaFactory - The schema factory to be used, which must be configured to parse W3C XML schema descriptions.
Throws:
org.xml.sax.SAXException

createSchema

public static javax.xml.validation.Schema createSchema()
                                                throws org.xml.sax.SAXException
Construct a schema for the jdbc2xml namespace using the SchemaFactory returned by SchemaFactory.newInstance(String) for the XML w3C schema URI XMLConstants.W3C_XML_SCHEMA_NS_URI.

Throws:
b
org.xml.sax.SAXException


Copyright © 2007. All Rights Reserved.