~ubuntu-branches/ubuntu/raring/brailleutils/raring

« back to all changes in this revision

Viewing changes to src/org/daisy/braille/table/ConfigurableTableProvider.java

  • Committer: Package Import Robot
  • Author(s): Sebastian Humenda
  • Date: 2011-08-27 12:21:13 UTC
  • Revision ID: package-import@ubuntu.com-20110827122113-72udcdbhzrqtdlgx
Tags: upstream-1.2~b
Import upstream version 1.2~b

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Braille Utils (C) 2010-2011 Daisy Consortium 
 
3
 * 
 
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)
 
7
 * any later version.
 
8
 * 
 
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
 
12
 * details.
 
13
 * 
 
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
 
17
 */
 
18
package org.daisy.braille.table;
 
19
 
 
20
 
 
21
/**
 
22
 * Provides a TableProvider which creates tables a specific type of
 
23
 * identifier
 
24
 * @author Joel Håkansson
 
25
 *
 
26
 * @param <T> Identifier type used when creating a new Table
 
27
 */
 
28
public interface ConfigurableTableProvider<T> extends TableProvider {
 
29
 
 
30
        /**
 
31
         * Gets a feature for the provider
 
32
         * @param key the key
 
33
         * @return returns the value
 
34
         * @throws IllegalArgumentException if the feature is unknown 
 
35
         */
 
36
        public Object getFeature(String key);
 
37
        
 
38
        /**
 
39
         * Sets a feature for the provider.
 
40
         * @param key the key
 
41
         * @param value the value
 
42
         * @throws IllegalArgumentException if the feature is unknown
 
43
         */
 
44
        public void setFeature(String key, Object value);
 
45
 
 
46
        /**
 
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
 
51
         */
 
52
        public BrailleConverter newTable(T t);
 
53
 
 
54
}