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
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 identifierjava.lang.Object
getFeature(java.lang.String key)
Gets the value of a feature for this catalogjava.util.Collection<T>
list(FactoryFilter<T> filter)
Lists the Factories available to this catalog that the supplied FactoryFilter acceptsvoid
setFeature(java.lang.String key, java.lang.Object value)
Sets the value of a feature for this catalog
-
-
-
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 keyvalue
- 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
-
-