org.daisy.dotify.api.text.Integer2TextFactory Maven / Gradle / Ivy
package org.daisy.dotify.api.text;
/**
* Provides a integer2text factory interface. This interface is used to retreive
* a integer2text instance.
*
* @author Joel Håkansson
*/
public interface Integer2TextFactory {
/**
* Returns a new integer2text configured for the specified locale.
*
* @param locale the locale for the new integer2text
* @return returns a new integer2text
* @throws Integer2TextConfigurationException if the locale is not supported
*/
public Integer2Text newInteger2Text(String locale) throws Integer2TextConfigurationException;
/**
* Gets the value of a integer2text feature.
*
* @param key the feature to get the value for
* @return returns the value, or null if not set
*/
public Object getFeature(String key);
/**
* Sets the value of a integer2text feature.
*
* @param key the feature to set the value for
* @param value the value for the feature
* @throws Integer2TextConfigurationException if the feature is not supported
*/
public void setFeature(String key, Object value) throws Integer2TextConfigurationException;
}