Package org.daisy.factory
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
Provides an interface for factory catalogs.
- Author:
- Joel HÃ¥kansson
-
Method Summary
Modifier and TypeMethodDescriptionGets the Factory with this identifiergetFeature(String key) Gets the value of a feature for this cataloglist(FactoryFilter<T> filter) Lists the Factories available to this catalog that the supplied FactoryFilter acceptsvoidsetFeature(String key, Object value) Sets the value of a feature for this catalog
-
Method Details
-
getFeature
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
Sets the value of a feature for this catalog- Parameters:
key- the feature keyvalue- the feature value
-
get
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
Lists the Factories available to this catalog that the supplied FactoryFilter accepts- Parameters:
filter- the FactoryFilter to use- Returns:
- returns a collection of Factories
-