Interface NamespaceResolver
-
- All Known Implementing Classes:
Resolver,XercesResolver
public interface NamespaceResolverInterface for resolving namespace URIs. This interface supports the RDDL notion of a nature and purpose for a namespace.The
NamespaceResolverinterface is an extension of theURIResolverinterface from the JAXP Transformer package.Use this
resolveNamespacemethod in your applications (instead of theURIResolver) where you are attempting to find information about a namespace URI.The intent of this method is that it returns the
Sourceassociated with the namespaceurithat has the specified RDDL nature and purpose.The XML Resolver implements catalog extension attributes that allow a user to specify the nature and purpose of a URI. It also parses RDDL (1.0) documents.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.xml.transform.SourceresolveNamespace​(java.lang.String uri, java.lang.String nature, java.lang.String purpose)Resolve a namespace URI into a Source.
-
-
-
Method Detail
-
resolveNamespace
javax.xml.transform.Source resolveNamespace​(java.lang.String uri, java.lang.String nature, java.lang.String purpose) throws javax.xml.transform.TransformerExceptionResolve a namespace URI into a Source.This method resolves a namespace URI, returning a resource that is associated with the namespace name and has the specified nature and purpose.
If no resource with a matching nature and purpose is found, a Source must be created for the namespace URI.
- Parameters:
uri- The namespace URI.nature- The RDDL nature of the resource.purpose- The RDDL purpose of the resource.- Returns:
- A Source object, or null if the href cannot be resolved, and the processor should try to resolve the URI itself.
- Throws:
javax.xml.transform.TransformerException- If an error occurs
-
-