2 ******************************************************************************
3 * Copyright (C) 2007-2009, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 ******************************************************************************
8 package com.ibm.icu.impl.duration;
10 import java.util.Collection;
13 * Provider of Factory instances for building PeriodBuilders, PeriodFormatters,
14 * and DurationFormatters.
16 public interface PeriodFormatterService {
19 * Creates a new factory for creating DurationFormatters.
21 * @return a new DurationFormatterFactory.
23 DurationFormatterFactory newDurationFormatterFactory();
26 * Creates a new factory for creating PeriodFormatters.
28 * @return a new PeriodFormatterFactory
30 PeriodFormatterFactory newPeriodFormatterFactory();
33 * Creates a new factory for creating PeriodBuilders.
35 * @return a new PeriodBuilderFactory
37 PeriodBuilderFactory newPeriodBuilderFactory();
40 * Return the names of locales supported by factories produced by this
43 * @return a collection of String (locale names)
45 Collection<String> getAvailableLocaleNames();