2
* Braille Utils (C) 2010-2011 Daisy Consortium
4
* This library is free software; you can redistribute it and/or modify it under
5
* the terms of the GNU Lesser General Public License as published by the Free
6
* Software Foundation; either version 2.1 of the License, or (at your option)
9
* This library is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with this library; if not, write to the Free Software Foundation, Inc.,
16
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
package org.daisy.braille.table;
22
* Provides a TableProvider which creates tables a specific type of
24
* @author Joel Håkansson
26
* @param <T> Identifier type used when creating a new Table
28
public interface ConfigurableTableProvider<T> extends TableProvider {
31
* Gets a feature for the provider
33
* @return returns the value
34
* @throws IllegalArgumentException if the feature is unknown
36
public Object getFeature(String key);
39
* Sets a feature for the provider.
41
* @param value the value
42
* @throws IllegalArgumentException if the feature is unknown
44
public void setFeature(String key, Object value);
47
* Gets a new BrailleConverter based on the factory's current settings.
48
* @param t the type to return
49
* @return returns a new BrailleConverter of type t
50
* @throws IllegalArgumentException if the type is unknown
52
public BrailleConverter newTable(T t);