public class DefaultSchemaResolver extends 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 |
|---|---|
String |
getBaseSchemaLocation() |
InputSource |
resolveEntity(String publicId,
String systemId)
Satisfy EntityResolver interface implementation.
|
Source |
resolveSchema(Source sourceXSD,
String namespace,
String schemaLocation)
Given the source schema and namespace and schemaLocation values from an import
or include return the referenced Schema.
|
void |
setBaseSchemaLocation(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 Source resolveSchema(Source sourceXSD, String namespace, String schemaLocation)
resolveSchema in interface SchemaResolversourceXSD - The Source object of the source schemanamespace - The namespace portion of the import/includeschemaLocation - The schemaLocation portion of the import/includepublic InputSource resolveEntity(String publicId, String systemId)
resolveEntity in interface EntityResolverpublicId - systemId - public void setBaseSchemaLocation(String baseSchemaLocation)
baseSchemaLocation - optional baseSchemaLocationpublic String getBaseSchemaLocation()
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.