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

    Modifier and Type
    Method
    Description
    get(String identifier)
    Gets the Factory with this identifier
    Gets the value of a feature for this catalog
    list(FactoryFilter<T> filter)
    Lists the Factories available to this catalog that the supplied FactoryFilter accepts
    void
    setFeature(String key, Object value)
    Sets the value of a feature for this catalog

    Methods inherited from interface org.daisy.factory.Provider

    list
  • Method Details

    • getFeature

      Object getFeature(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(String key, Object value)
      Sets the value of a feature for this catalog
      Parameters:
      key - the feature key
      value - the feature value
    • get

      T get(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

      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