Module org.eclipse.persistence.sdo
Interface SchemaResolver
- All Superinterfaces:
EntityResolver
- All Known Implementing Classes:
DefaultSchemaResolver
Purpose: Interface that can be optionally implemented to resolve imported and included schemas.
Responsibilities:
- Given the source schema and namespace and schemaLocation values from an import or include return the referenced Schema
- Used by XSDHelper define methods and ClassGenerator generate methods
- Given the publicId and systemId of an external entity, return the file associated with that entity
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionresolveSchema
(Source sourceXSD, String namespace, String schemaLocation) Given the source schema and namespace and schemaLocation values from an import or include return the referenced SchemaMethods inherited from interface org.xml.sax.EntityResolver
resolveEntity
-
Method Details
-
resolveSchema
Given the source schema and namespace and schemaLocation values from an import or include return the referenced Schema- Parameters:
sourceXSD
- The Source object of the source schemanamespace
- The namespace portion of the import/includeschemaLocation
- The schemaLocation portion of the import/include- Returns:
- Source for the referenced Schema or null if processing the referenced schema should be skipped. If this method throws an exception, processing will stop.
-