org.clazzes.jdbc2xml.sax
Class JDBC2XMLSchemaHelper

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

public abstract class JDBC2XMLSchemaHelper
extends Object

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

Author:
wglas

Field Summary
static String XML2JDBC_RESOURCE_PATH
          The resource path, where the jdbc2xml schema description is stored.
 
Constructor Summary
JDBC2XMLSchemaHelper()
           
 
Method Summary
static 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 Schema createSchema(SchemaFactory schemaFactory)
          Construct a schema for the jdbc2xml namespace using the given SchemaFactory and the default classloader.
static Schema createSchema(SchemaFactory schemaFactory, 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 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 Schema createSchema(SchemaFactory schemaFactory,
                                  ClassLoader loader)
                           throws 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:
SAXException

createSchema

public static Schema createSchema(SchemaFactory schemaFactory)
                           throws 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:
SAXException

createSchema

public static Schema createSchema()
                           throws 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
SAXException


Copyright © 2011. All Rights Reserved.