Interface SchemaResolver
-
- All Superinterfaces:
org.xml.sax.EntityResolver
- All Known Implementing Classes:
DefaultSchemaResolver
public interface SchemaResolver extends org.xml.sax.EntityResolverPurpose: 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:
DefaultSchemaResolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.xml.transform.SourceresolveSchema(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
-
-
-
Method Detail
-
resolveSchema
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- 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.
-
-