net.sf.mmm.util.nls.impl.formatter
Class NlsFormatterTime
java.lang.Object
net.sf.mmm.util.component.base.AbstractComponent
net.sf.mmm.util.component.base.AbstractLoggableComponent
net.sf.mmm.util.nls.base.AbstractNlsFormatter<O>
net.sf.mmm.util.nls.base.AbstractNlsFormatterPlugin<O>
net.sf.mmm.util.nls.base.SimpleNlsFormatter<Object>
net.sf.mmm.util.nls.impl.formatter.AbstractSimpleNlsFormatterDate
net.sf.mmm.util.nls.impl.formatter.NlsFormatterTime
- All Implemented Interfaces:
- NlsFormatter<Object>, NlsFormatterPlugin<Object>
- Direct Known Subclasses:
- NlsFormatterTimeFull, NlsFormatterTimeLong, NlsFormatterTimeMedium, NlsFormatterTimeShort
public class NlsFormatterTime
- extends AbstractSimpleNlsFormatterDate
This is an implementation of NlsFormatter
using DateFormat.getTimeInstance(int, java.util.Locale).
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
NlsFormatterTime
public NlsFormatterTime(int style)
- The constructor.
- Parameters:
style - is the style used for formatting times (e.g.
DateFormat.SHORT).
getType
public String getType()
- This method gets the
type of this formatter. See TYPE_* constants of
NlsFormatterManager e.g.
NlsFormatterManager.TYPE_NUMBER.
- Returns:
- the type or
null for the
default formatter. If type is null then also
style needs to be null.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.