EclipseLink 1.0_1.0M2 API Reference - Incubation

org.eclipse.persistence.sdo.helper
Class DefaultSchemaResolver

java.lang.Object
  extended by org.eclipse.persistence.sdo.helper.DefaultSchemaResolver
All Implemented Interfaces:
SchemaResolver

public class DefaultSchemaResolver
extends java.lang.Object
implements SchemaResolver

Purpose: Default implementation of the org.eclipse.persistence.sdo.helper.SchemaResolver interface

Responsibilities:

See Also:
SchemaResolver

Constructor Summary
DefaultSchemaResolver()
           
 
Method Summary
 java.lang.String getBaseSchemaLocation()
           
 javax.xml.transform.Source resolveSchema(javax.xml.transform.Source sourceXSD, java.lang.String namespace, java.lang.String schemaLocation)
          Given the source schema and namespace and schemaLocation values from an import or include return the referenced Schema.
 void setBaseSchemaLocation(java.lang.String baseSchemaLocation)
          Optional baseSchemaLocation can be specified If set, all schemaLocations passed into the resolveSchema methods will be resolved against this base location according to the java.net.URI API
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSchemaResolver

public DefaultSchemaResolver()
Method Detail

resolveSchema

public javax.xml.transform.Source resolveSchema(javax.xml.transform.Source sourceXSD,
                                                java.lang.String namespace,
                                                java.lang.String schemaLocation)
Given the source schema and namespace and schemaLocation values from an import or include return the referenced Schema.

Specified by:
resolveSchema in interface SchemaResolver
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

setBaseSchemaLocation

public void setBaseSchemaLocation(java.lang.String baseSchemaLocation)
Optional baseSchemaLocation can be specified If set, all schemaLocations passed into the resolveSchema methods will be resolved against this base location according to the java.net.URI API

Parameters:
baseSchemaLocation - optional baseSchemaLocation

getBaseSchemaLocation

public java.lang.String getBaseSchemaLocation()

EclipseLink 1.0_1.0M2 API Reference - Incubation