Class EmbosserTable
- java.lang.Object
-
- org.daisy.dotify.api.factory.AbstractFactory
-
- org.daisy.braille.utils.impl.tools.table.AbstractTable
-
- org.daisy.braille.utils.impl.tools.table.EmbosserTable
-
- All Implemented Interfaces:
Serializable
,Factory
,FactoryProperties
,Table
public abstract class EmbosserTable extends AbstractTable
Provides an embosser table implementation. This implementation assumes that each character matches a single braille pattern, and vice versa.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.daisy.dotify.api.factory.FactoryProperties
FactoryProperties.ComparatorBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected EightDotFallbackMethod
fallback
protected char
replacement
-
Constructor Summary
Constructors Constructor Description EmbosserTable(FactoryProperties fp, EightDotFallbackMethod fallback, char replacement)
Creates a new EmbosserTable with the supplied settings.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
getFeature(String key)
Gets the value of a feature used by this Factory.Object
getProperty(String key)
Gets the value of a read-only property that applies to all objects returned by this Factory.abstract BrailleConverter
newBrailleConverter()
Creates a new BrailleConverter based on the current configuration of this Table.void
setFeature(String key, Object value)
Sets a feature for new Objects returned by this Factory.-
Methods inherited from class org.daisy.dotify.api.factory.AbstractFactory
getDescription, getDisplayName, getIdentifier, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.daisy.dotify.api.factory.FactoryProperties
getDescription, getDisplayName, getIdentifier
-
-
-
-
Field Detail
-
fallback
protected EightDotFallbackMethod fallback
-
replacement
protected char replacement
-
-
Constructor Detail
-
EmbosserTable
public EmbosserTable(FactoryProperties fp, EightDotFallbackMethod fallback, char replacement)
Creates a new EmbosserTable with the supplied settings.- Parameters:
fp
- factory properties for this tablefallback
- fallback methodreplacement
- replacement character
-
-
Method Detail
-
newBrailleConverter
public abstract BrailleConverter newBrailleConverter()
Description copied from interface:Table
Creates a new BrailleConverter based on the current configuration of this Table.- Returns:
- returns a new BrailleConverter instance
-
getProperty
public Object getProperty(String key)
Description copied from interface:Factory
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
-
setFeature
public void setFeature(String key, Object value)
Description copied from interface:Factory
Sets a feature for new Objects returned by this Factory.- Parameters:
key
- the key for the featurevalue
- the value of the feature
-
-