com.atlassian.confluence.core
Interface FormatSettingsManager

All Known Implementing Classes:
DefaultFormatSettingsManager

public interface FormatSettingsManager

Persistent storage and retrieval of format settings. Implementations should return a default value if no configuration currently exists.


Method Summary
 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 getLongNumberFormat()
          Returns the formatting pattern used for integer numbers.
 String getTimeFormat()
          Returns the formatting pattern used for times.
 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.
 

Method Detail

getDateFormat

public String getDateFormat()
Returns the formatting pattern used for dates. Typically something like "d MMM, yyyy".


setDateFormat

public void setDateFormat(String pattern)
Stores the formatting pattern to be used for dates.

Parameters:
pattern - a pattern compatible with SimpleDateFormat

getTimeFormat

public String getTimeFormat()
Returns the formatting pattern used for times. Typically something like "h:mm a".


setTimeFormat

public void setTimeFormat(String pattern)
Stores the formatting pattern to be used for times.

Parameters:
pattern - a pattern compatible with SimpleDateFormat

getDateTimeFormat

public String getDateTimeFormat()
Returns the formatting pattern used for date and time together. Typically something like "d MMM, yyyy HH:mm".


setDateTimeFormat

public void setDateTimeFormat(String pattern)
Stores the formatting pattern to be used for date and time together.

Parameters:
pattern - a pattern compatible with SimpleDateFormat

getLongNumberFormat

public String getLongNumberFormat()
Returns the formatting pattern used for integer numbers. Typically something like "###############".


setLongNumberFormat

public void setLongNumberFormat(String pattern)
Stores the formatting pattern to be used for integer numbers.

Parameters:
pattern - a pattern compatible with DecimalFormat

getDecimalNumberFormat

public String getDecimalNumberFormat()
Returns the formatting pattern used for decimal numbers. Typically something like "###############.##########".


setDecimalNumberFormat

public void setDecimalNumberFormat(String pattern)
Stores the formatting pattern to be used for decimal numbers.

Parameters:
pattern - a pattern compatible with DecimalFormat


Confluence is developed by Atlassian.