Package net.sf.saxon.lib
Interface ConfigurableResourceResolver
- All Known Implementing Classes:
CatalogResourceResolver
public interface ConfigurableResourceResolver
A ResourceResolver that allows properties to be set and examined
-
Method Summary
Modifier and TypeMethodDescription<T> TgetFeature(org.xmlresolver.ResolverFeature<T> feature) CallsXMLResolverConfiguration.getFeature(org.xmlresolver.ResolverFeature<T>)on the underlying resolver configuration.<T> voidsetFeature(org.xmlresolver.ResolverFeature<T> feature, T value) CallsXMLResolverConfiguration.setFeature(org.xmlresolver.ResolverFeature<T>, T)on the underlying resolver configuration.
-
Method Details
-
getFeature
<T> T getFeature(org.xmlresolver.ResolverFeature<T> feature) CallsXMLResolverConfiguration.getFeature(org.xmlresolver.ResolverFeature<T>)on the underlying resolver configuration.- Type Parameters:
T- The feature type- Parameters:
feature- The feature setting- Returns:
- The value for the specified feature.
-
setFeature
<T> void setFeature(org.xmlresolver.ResolverFeature<T> feature, T value) CallsXMLResolverConfiguration.setFeature(org.xmlresolver.ResolverFeature<T>, T)on the underlying resolver configuration.- Type Parameters:
T- The feature type- Parameters:
feature- The feature settingvalue- The desired value for that feature- Throws:
NullPointerException- if the underlying resolver is null. Some features will also throw this exception if the value provided is null and that's not a meaningful feature value.
-