public class DefaultSchemaResolver extends java.lang.Object implements SchemaResolver
Purpose: Default implementation of the org.eclipse.persistence.sdo.helper.SchemaResolver interface
Responsibilities:
SchemaResolver
Constructor and Description |
---|
DefaultSchemaResolver() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseSchemaLocation() |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Satisfy EntityResolver interface implementation.
|
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
|
public javax.xml.transform.Source resolveSchema(javax.xml.transform.Source sourceXSD, java.lang.String namespace, java.lang.String schemaLocation)
resolveSchema
in interface SchemaResolver
sourceXSD
- The Source object of the source schemanamespace
- The namespace portion of the import/includeschemaLocation
- The schemaLocation portion of the import/includepublic org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
resolveEntity
in interface org.xml.sax.EntityResolver
publicId
- systemId
- public void setBaseSchemaLocation(java.lang.String baseSchemaLocation)
baseSchemaLocation
- optional baseSchemaLocationpublic java.lang.String getBaseSchemaLocation()