Package org.apache.xmlbeans.impl.tool
Class SchemaImportResolver
java.lang.Object
org.apache.xmlbeans.impl.tool.SchemaImportResolver
- Direct Known Subclasses:
BaseSchemaResourceManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Used to supply a schema resource with an optional associated expected-namespace-URI and original-location-URL. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SchemaImportResolver.SchemaResource
lookupResource
(String nsURI, String URL) Called when the ImportLoader wishes to resolve the given import.abstract void
reportActualNamespace
(SchemaImportResolver.SchemaResource resource, String actualNamespace) Called to notify that the expected namespace is different from the actual namespace, or if no namespace is known, to report the discovered namespace.
-
Constructor Details
-
SchemaImportResolver
public SchemaImportResolver()
-
-
Method Details
-
lookupResource
Called when the ImportLoader wishes to resolve the given import. Should return a SchemaResource whose "equals" relationship reveals when a SchemaResource is duplicated and shouldn't be examined again. Returns null if the resource reference should be ignored. -
reportActualNamespace
public abstract void reportActualNamespace(SchemaImportResolver.SchemaResource resource, String actualNamespace) Called to notify that the expected namespace is different from the actual namespace, or if no namespace is known, to report the discovered namespace.
-