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