public class SchemaResolverWrapper extends 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:
SchemaResolver
,
DefaultSchemaResolver
Constructor and Description |
---|
SchemaResolverWrapper(SchemaResolver resolver)
This constructor sets schemaResolver to the given value.
|
Modifier and Type | Method and Description |
---|---|
SchemaResolver |
getSchemaResolver()
Return the SchemaResolver for this wrapper instance.
|
Source |
resolveSchema(Source sourceXSD)
Resolve the Source if only a system ID is specified.
|
Source |
resolveSchema(Source sourceXSD,
String namespace,
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.
|
Source |
resolveSchema(String systemId) |
Source |
resolveSchema(String publicId,
String systemId) |
public SchemaResolverWrapper(SchemaResolver resolver)
resolver
- the SchemaResolver implementation that will be used to resolve
imports/includes from a give source schema.public Source resolveSchema(Source sourceXSD)
public Source resolveSchema(Source sourceXSD, String namespace, String schemaLocation)
sourceXSD
- The Source object of the source schemanamespace
- The namespace portion of the import/includeschemaLocation
- The schemaLocation portion of the import/includepublic SchemaResolver getSchemaResolver()
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.