Interface FactoryCatalog<T extends Factory>

  • Type Parameters:
    T - the type of factory objects that this catalog contains
    All Superinterfaces:
    Provider<T>
    All Known Implementing Classes:
    EmbosserCatalog, PaperCatalog, TableCatalog

    public interface FactoryCatalog<T extends Factory>
    extends Provider<T>
    Provides an interface for factory catalogs.
    Author:
    Joel HÃ¥kansson
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T get​(java.lang.String identifier)
      Gets the Factory with this identifier
      java.lang.Object getFeature​(java.lang.String key)
      Gets the value of a feature for this catalog
      java.util.Collection<T> list​(FactoryFilter<T> filter)
      Lists the Factories available to this catalog that the supplied FactoryFilter accepts
      void setFeature​(java.lang.String key, java.lang.Object value)
      Sets the value of a feature for this catalog
      • Methods inherited from interface org.daisy.factory.Provider

        list
    • Method Detail

      • getFeature

        java.lang.Object getFeature​(java.lang.String key)
        Gets the value of a feature for this catalog
        Parameters:
        key - the feature to get the value for
        Returns:
        returns the value of a feature for this factory
      • setFeature

        void setFeature​(java.lang.String key,
                        java.lang.Object value)
        Sets the value of a feature for this catalog
        Parameters:
        key - the feature key
        value - the feature value
      • get

        T get​(java.lang.String identifier)
        Gets the Factory with this identifier
        Parameters:
        identifier - the identifier for the requested Factory
        Returns:
        returns the Factory with this identifier, or null if none is found
      • list

        java.util.Collection<T> list​(FactoryFilter<T> filter)
        Lists the Factories available to this catalog that the supplied FactoryFilter accepts
        Parameters:
        filter - the FactoryFilter to use
        Returns:
        returns a collection of Factories