
org.daisy.dotify.impl.text.Integer2TextFactoryServiceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dotify.text.impl Show documentation
Show all versions of dotify.text.impl Show documentation
Implementation of Dotify Text API
package org.daisy.dotify.impl.text;
import java.util.Collection;
import java.util.Locale;
import org.daisy.dotify.api.text.Integer2TextFactory;
import org.daisy.dotify.api.text.Integer2TextFactoryService;
import aQute.bnd.annotation.component.Component;
@Component
public class Integer2TextFactoryServiceImpl implements Integer2TextFactoryService {
public boolean supportsLocale(String locale) {
return Integer2TextFactoryImpl.locales.containsKey(locale.toLowerCase(Locale.ENGLISH));
}
public Integer2TextFactory newFactory() {
return new Integer2TextFactoryImpl();
}
public Collection listLocales() {
return Integer2TextFactoryImpl.displayNames;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy