Package org.daisy.dotify.api.text
Interface Integer2TextFactory
-
public interface Integer2TextFactory
Provides a integer2text factory interface. This interface is used to retreive a integer2text instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getFeature(String key)
Gets the value of a integer2text feature.Integer2Text
newInteger2Text(String locale)
Returns a new integer2text configured for the specified locale.void
setFeature(String key, Object value)
Sets the value of a integer2text feature.
-
-
-
Method Detail
-
newInteger2Text
Integer2Text newInteger2Text(String locale) throws Integer2TextConfigurationException
Returns a new integer2text configured for the specified locale.- Parameters:
locale
- the locale for the new integer2text- Returns:
- returns a new integer2text
- Throws:
Integer2TextConfigurationException
- if the locale is not supported
-
getFeature
Object getFeature(String key)
Gets the value of a integer2text feature.- Parameters:
key
- the feature to get the value for- Returns:
- returns the value, or null if not set
-
setFeature
void setFeature(String key, Object value) throws Integer2TextConfigurationException
Sets the value of a integer2text feature.- Parameters:
key
- the feature to set the value forvalue
- the value for the feature- Throws:
Integer2TextConfigurationException
- if the feature is not supported
-
-