public class DefaultFormatSettingsManager extends Object implements FormatSettingsManager
FormatSettingsManager
which persists the date format settings in Bandana.
Returns constant default values if the configuration has not been set.
BandanaManager
Modifier and Type | Field and Description |
---|---|
static String |
BLOG_DATE_PATTERN |
static String |
DEFAULT_DATE_PATTERN |
static String |
DEFAULT_DATE_TIME_PATTERN |
static String |
DEFAULT_DECIMAL_NUMBER_PATTERN |
static String |
DEFAULT_LONG_NUMBER_PATTERN |
static String |
DEFAULT_TIME_PATTERN |
static String |
EDITOR_BLOG_DATE_PATTERN |
Constructor and Description |
---|
DefaultFormatSettingsManager() |
Modifier and Type | Method and Description |
---|---|
String |
getDateFormat()
Returns the formatting pattern used for dates.
|
String |
getDateTimeFormat()
Returns the formatting pattern used for date and time together.
|
String |
getDecimalNumberFormat()
Returns the formatting pattern used for decimal numbers.
|
String |
getEditorBlogPostDate()
Returns the date time format for the editor blog post date
|
String |
getLongNumberFormat()
Returns the formatting pattern used for integer numbers.
|
String |
getTimeFormat()
Returns the formatting pattern used for times.
|
void |
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager) |
void |
setDateFormat(String pattern)
Stores the formatting pattern to be used for dates.
|
void |
setDateTimeFormat(String pattern)
Stores the formatting pattern to be used for date and time together.
|
void |
setDecimalNumberFormat(String pattern)
Stores the formatting pattern to be used for decimal numbers.
|
void |
setLongNumberFormat(String pattern)
Stores the formatting pattern to be used for integer numbers.
|
void |
setTimeFormat(String pattern)
Stores the formatting pattern to be used for times.
|
public static final String DEFAULT_DATE_PATTERN
public static final String DEFAULT_DATE_TIME_PATTERN
public static final String BLOG_DATE_PATTERN
public static final String EDITOR_BLOG_DATE_PATTERN
public static final String DEFAULT_TIME_PATTERN
public static final String DEFAULT_LONG_NUMBER_PATTERN
public static final String DEFAULT_DECIMAL_NUMBER_PATTERN
public String getDateFormat()
FormatSettingsManager
getDateFormat
in interface FormatSettingsManager
public void setDateFormat(String pattern)
FormatSettingsManager
setDateFormat
in interface FormatSettingsManager
pattern
- a pattern compatible with SimpleDateFormat
public String getTimeFormat()
FormatSettingsManager
getTimeFormat
in interface FormatSettingsManager
public void setTimeFormat(String pattern)
FormatSettingsManager
setTimeFormat
in interface FormatSettingsManager
pattern
- a pattern compatible with SimpleDateFormat
public String getDateTimeFormat()
FormatSettingsManager
getDateTimeFormat
in interface FormatSettingsManager
public void setDateTimeFormat(String pattern)
FormatSettingsManager
setDateTimeFormat
in interface FormatSettingsManager
pattern
- a pattern compatible with SimpleDateFormat
public String getEditorBlogPostDate()
FormatSettingsManager
getEditorBlogPostDate
in interface FormatSettingsManager
public String getLongNumberFormat()
FormatSettingsManager
getLongNumberFormat
in interface FormatSettingsManager
public void setLongNumberFormat(String pattern)
FormatSettingsManager
setLongNumberFormat
in interface FormatSettingsManager
pattern
- a pattern compatible with DecimalFormat
public String getDecimalNumberFormat()
FormatSettingsManager
getDecimalNumberFormat
in interface FormatSettingsManager
public void setDecimalNumberFormat(String pattern)
FormatSettingsManager
setDecimalNumberFormat
in interface FormatSettingsManager
pattern
- a pattern compatible with DecimalFormat
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
Copyright © 2003–2017 Atlassian. All rights reserved.