Package org.daisy.braille.table
Class AbstractConfigurableTableProvider<T>
java.lang.Object
org.daisy.braille.table.AbstractConfigurableTableProvider<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
ConfigurableTableProvider<T>
,TableProvider
,Provider<Table>
- Direct Known Subclasses:
DefaultTableProvider
public abstract class AbstractConfigurableTableProvider<T>
extends Object
implements ConfigurableTableProvider<T>
Provides an abstract base for TableProviders, implementing basic features
such as the ability to set page fallback action and replacement character.
- Author:
- Joel HÃ¥kansson
-
Field Summary
Modifier and TypeFieldDescriptionprotected char
-
Constructor Summary
ConstructorDescriptionAbstractConfigurableTableProvider
(EmbosserBrailleConverter.EightDotFallbackMethod fallback, char replacement) -
Method Summary
Modifier and TypeMethodDescriptiongetFeature
(String key) Gets a feature for the providervoid
setFeature
(String key, Object value) Sets a feature for the provider.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.daisy.braille.table.ConfigurableTableProvider
newTable
-
Field Details
-
fallback
-
replacement
protected char replacement
-
-
Constructor Details
-
AbstractConfigurableTableProvider
public AbstractConfigurableTableProvider(EmbosserBrailleConverter.EightDotFallbackMethod fallback, char replacement)
-
-
Method Details
-
setFeature
Description copied from interface:ConfigurableTableProvider
Sets a feature for the provider.- Specified by:
setFeature
in interfaceConfigurableTableProvider<T>
- Parameters:
key
- the keyvalue
- the value
-
getFeature
Description copied from interface:ConfigurableTableProvider
Gets a feature for the provider- Specified by:
getFeature
in interfaceConfigurableTableProvider<T>
- Parameters:
key
- the key- Returns:
- returns the value
-