Package org.daisy.factory
Interface Factory
- All Superinterfaces:
Comparable<Factory>
- All Known Subinterfaces:
Embosser
,FileFormat
,Paper
,Table
,Validator
- All Known Implementing Classes:
AbstractEmbosser
,AbstractFactory
,AbstractPaper
,AbstractTable
,EmbosserTable
,PEFValidator
,RollPaper
,SheetPaper
,TractorPaper
Provides an interface for common properties of a Factory.
- Author:
- Joel HÃ¥kansson
-
Method Summary
Modifier and TypeMethodDescriptionGets the description for this FactoryGets the display name for this FactorygetFeature
(String key) Gets the value of a feature used by this FactoryGets the identifier for this FactorygetProperty
(String key) Gets the value of a read-only property that applies to all objects returned by this Factory.void
setFeature
(String key, Object value) Sets a feature for new Objects returned by this FactoryMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getIdentifier
String getIdentifier()Gets the identifier for this Factory- Returns:
- returns the identifier for this Factory
-
getDisplayName
String getDisplayName()Gets the display name for this Factory- Returns:
- returns the display name for this Factory
-
getDescription
String getDescription()Gets the description for this Factory- Returns:
- returns the description for this Factory
-
getProperty
Gets the value of a read-only property that applies to all objects returned by this Factory.- Parameters:
key
- the name of the property to get- Returns:
- returns the value associated with this property or null if none is found
-
getFeature
Gets the value of a feature used by this Factory- Parameters:
key
- the key for the feature- Returns:
- returns the current value of the feature
- Throws:
IllegalArgumentException
- if the underlying implementation does not recognize the feature
-
setFeature
Sets a feature for new Objects returned by this Factory- Parameters:
key
- the key for the featurevalue
- the value of the feature- Throws:
IllegalArgumentException
- if the underlying implementation does not recognize the feature
-