All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.daisy.dotify.impl.text.Integer2TextFactoryServiceImpl Maven / Gradle / Ivy

There is a newer version: 5.0.0
Show newest version
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