EclipseLink 1.1.4, build 'v20100812-r7860' API Reference

org.eclipse.persistence.sdo.helper
Class SchemaResolverWrapper

java.lang.Object
  extended by org.eclipse.persistence.sdo.helper.SchemaResolverWrapper

public class SchemaResolverWrapper
extends java.lang.Object

Purpose: Allow the contained schema resolver to resolve a schema based on a given namespace and schema location, and return either the resolved schema source or null, depending on whether the schema had been processed previously.

Responsibilities:

See Also:
SchemaResolver, DefaultSchemaResolver

Constructor Summary
SchemaResolverWrapper(SchemaResolver resolver)
          This constructor sets schemaResolver to the given value.
 
Method Summary
 SchemaResolver getSchemaResolver()
          Return the SchemaResolver for this wrapper instance.
 javax.xml.transform.Source resolveSchema(javax.xml.transform.Source sourceXSD, java.lang.String namespace, java.lang.String schemaLocation)
          Allow the SchemaResolver implementation to attempt to return the referenced Schema based on given source schema, namespace and schemaLocation values from an import or include.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaResolverWrapper

public SchemaResolverWrapper(SchemaResolver resolver)
This constructor sets schemaResolver to the given value.

Parameters:
resolver - the SchemaResolver implementation that will be used to resolve imports/includes from a give source schema.
Method Detail

resolveSchema

public javax.xml.transform.Source resolveSchema(javax.xml.transform.Source sourceXSD,
                                                java.lang.String namespace,
                                                java.lang.String schemaLocation)
Allow the SchemaResolver implementation to attempt to return the referenced Schema based on given source schema, namespace and schemaLocation values from an import or include. If the resolver fails, this method will attemt to resolve the schema

Parameters:
sourceXSD - The Source object of the source schema
namespace - The namespace portion of the import/include
schemaLocation - The schemaLocation portion of the import/include
Returns:
Source for the referenced Schema or null if processing the referenced schema should be skipped

getSchemaResolver

public SchemaResolver getSchemaResolver()
Return the SchemaResolver for this wrapper instance.

Returns:

EclipseLink 1.1.4, build 'v20100812-r7860' API Reference