Package org.daisy.dotify.text.impl
Class EnglishInteger2TextFactoryService
- java.lang.Object
-
- org.daisy.dotify.text.impl.EnglishInteger2TextFactoryService
-
- All Implemented Interfaces:
Integer2TextFactoryService
public class EnglishInteger2TextFactoryService extends Object implements Integer2TextFactoryService
Provides an English implementation of integer to text.
-
-
Constructor Summary
Constructors Constructor Description EnglishInteger2TextFactoryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>
listLocales()
Returns a list of supported locales as defined by IETF RFC 3066.Integer2TextFactory
newFactory()
Creates a new integer to text factory.boolean
supportsLocale(String locale)
Returns true if this instance can create instances for the specified locale.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.daisy.dotify.api.text.Integer2TextFactoryService
setCreatedWithSPI
-
-
-
-
Method Detail
-
supportsLocale
public boolean supportsLocale(String locale)
Description copied from interface:Integer2TextFactoryService
Returns true if this instance can create instances for the specified locale.- Specified by:
supportsLocale
in interfaceInteger2TextFactoryService
- Parameters:
locale
- a valid locale as defined by IETF RFC 3066- Returns:
- returns true if the specified locale is supported, false otherwise
-
newFactory
public Integer2TextFactory newFactory()
Description copied from interface:Integer2TextFactoryService
Creates a new integer to text factory.- Specified by:
newFactory
in interfaceInteger2TextFactoryService
- Returns:
- returns a new factory
-
listLocales
public Collection<String> listLocales()
Description copied from interface:Integer2TextFactoryService
Returns a list of supported locales as defined by IETF RFC 3066.- Specified by:
listLocales
in interfaceInteger2TextFactoryService
- Returns:
- returns a list of locales
-
-