Package org.daisy.braille.table
Class EmbosserTable<T>
- java.lang.Object
-
- org.daisy.factory.AbstractFactory
-
- org.daisy.braille.table.AbstractTable
-
- org.daisy.braille.table.EmbosserTable<T>
-
- Type Parameters:
T
-
public class EmbosserTable<T> extends AbstractTable
Provides an embosser table implementation. This implementation assumes that each character matches a single braille pattern, and vice versa.- Author:
- Joel HÃ¥kansson
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EmbosserTable(java.lang.String name, java.lang.String desc, T type, ConfigurableTableProvider<T> provider)
Creates a new EmbosserTable with the supplied settings
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getFeature(java.lang.String key)
Gets the value of a feature used by this Factoryjava.lang.Object
getProperty(java.lang.String key)
Gets the value of a read-only property that applies to all objects returned by this Factory.BrailleConverter
newBrailleConverter()
Creates a new BrailleConverter based on the current configuration of this Table.void
setFeature(java.lang.String key, java.lang.Object value)
Sets a feature for new Objects returned by this Factory-
Methods inherited from class org.daisy.factory.AbstractFactory
compareTo, 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.factory.Factory
getDescription, getDisplayName, getIdentifier
-
-
-
-
Constructor Detail
-
EmbosserTable
public EmbosserTable(java.lang.String name, java.lang.String desc, T type, ConfigurableTableProvider<T> provider)
Creates a new EmbosserTable with the supplied settings- Parameters:
name
- the name for the tabledesc
- the description for the tabletype
- the type of tableprovider
- the provider
-
-
Method Detail
-
newBrailleConverter
public 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
-
setFeature
public void setFeature(java.lang.String key, java.lang.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
-
getProperty
public java.lang.Object getProperty(java.lang.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
-
getFeature
public java.lang.Object getFeature(java.lang.String key)
Description copied from interface:Factory
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
-
-