net.sf.mmm.util.nls.api.NlsFormatterManager Maven / Gradle / Ivy
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.nls.api;
/**
* This is the interface for a manager of {@link NlsFormatter}s.
* A legal implementation of this interface has to be thread-safe.
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 1.0.0
*/
public interface NlsFormatterManager {
/** @see java.text.NumberFormat */
String TYPE_NUMBER = "number";
/** @see java.text.DateFormat#getDateInstance(int, java.util.Locale) */
String TYPE_DATE = "date";
/** @see java.text.DateFormat#getTimeInstance(int, java.util.Locale) */
String TYPE_TIME = "time";
/** @see java.text.DateFormat#getDateTimeInstance(int, int, java.util.Locale) */
String TYPE_DATETIME = "datetime";
/** @see net.sf.mmm.util.nls.impl.formatter.NlsFormatterChoice */
String TYPE_CHOICE = "choice";
/** Format for {@link java.lang.reflect.Type} */
String TYPE_TYPE = "type";
/** @see java.text.DateFormat#SHORT */
String STYLE_SHORT = "short";
/** @see java.text.DateFormat#MEDIUM */
String STYLE_MEDIUM = "medium";
/** @see java.text.DateFormat#LONG */
String STYLE_LONG = "long";
/** @see java.text.DateFormat#FULL */
String STYLE_FULL = "full";
/** @see java.text.NumberFormat#getIntegerInstance() */
String STYLE_INTEGER = "integer";
/** @see java.text.NumberFormat#getCurrencyInstance() */
String STYLE_CURRENCY = "currency";
/** @see java.text.NumberFormat#getPercentInstance() */
String STYLE_PERCENT = "percent";
/** @see net.sf.mmm.util.date.api.Iso8601Util */
String STYLE_ISO_8601 = "iso8601";
/**
* This method gets the default {@link NlsFormatter}.
*
* @see #getFormatter(String, String)
*
* @return the default {@link NlsFormatter} instance.
*/
NlsFormatter