Package org.daisy.dotify.text.impl
Class Integer2TextFactoryServiceImpl
- java.lang.Object
-
- org.daisy.dotify.text.impl.Integer2TextFactoryServiceImpl
-
- All Implemented Interfaces:
Integer2TextFactoryService
public class Integer2TextFactoryServiceImpl extends Object implements Integer2TextFactoryService
Provides an integer to text factory service.
-
-
Constructor Summary
Constructors Constructor Description Integer2TextFactoryServiceImpl()
-
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
-
-