Interface ConfigurableResourceResolver

  • All Known Implementing Classes:
    CatalogResourceResolver

    public interface ConfigurableResourceResolver
    A ResourceResolver that allows properties to be set and examined
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T getFeature​(org.xmlresolver.ResolverFeature<T> feature)
      Calls XMLResolverConfiguration.getFeature(org.xmlresolver.ResolverFeature<T>) on the underlying resolver configuration.
      <T> void setFeature​(org.xmlresolver.ResolverFeature<T> feature, T value)
      Calls XMLResolverConfiguration.setFeature(org.xmlresolver.ResolverFeature<T>, T) on the underlying resolver configuration.
    • Method Detail

      • getFeature

        <T> T getFeature​(org.xmlresolver.ResolverFeature<T> feature)
        Calls XMLResolverConfiguration.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)
        Calls XMLResolverConfiguration.setFeature(org.xmlresolver.ResolverFeature<T>, T) on the underlying resolver configuration.
        Type Parameters:
        T - The feature type
        Parameters:
        feature - The feature setting
        value - The desired value for that feature
        Throws:
        java.lang.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.