public class

TestingFormatSettingsManager

extends Object
implements FormatSettingsManager
java.lang.Object
   ↳ com.atlassian.confluence.it.TestingFormatSettingsManager

Summary

Public Constructors
TestingFormatSettingsManager()
Public Methods
String getDateFormat()
Returns the formatting pattern used for dates.
String getDateTimeFormat()
Returns the formatting pattern used for date and time together.
String getDayFormat()
Returns the formatting pattern used for date.
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 setDayFormat(String pattern)
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.core.FormatSettingsManager

Public Constructors

public TestingFormatSettingsManager ()

Public Methods

public String getDateFormat ()

Returns the formatting pattern used for dates. Typically something like "d MMM, yyyy".

public String getDateTimeFormat ()

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

public String getDayFormat ()

Returns the formatting pattern used for date. Typically something like "MMM dd"

Returns
  • the String representation of the date format

public String getDecimalNumberFormat ()

Returns the formatting pattern used for decimal numbers. Typically something like "###############.##########".

public String getLongNumberFormat ()

Returns the formatting pattern used for integer numbers. Typically something like "###############".

public String getTimeFormat ()

Returns the formatting pattern used for times. Typically something like "h:mm a".

public void setDateFormat (String pattern)

Stores the formatting pattern to be used for dates.

Parameters
pattern a pattern compatible with SimpleDateFormat

public void setDateTimeFormat (String pattern)

Stores the formatting pattern to be used for date and time together.

Parameters
pattern a pattern compatible with SimpleDateFormat

public void setDayFormat (String pattern)

public void setDecimalNumberFormat (String pattern)

Stores the formatting pattern to be used for decimal numbers.

Parameters
pattern a pattern compatible with java.text.DecimalFormat

public void setLongNumberFormat (String pattern)

Stores the formatting pattern to be used for integer numbers.

Parameters
pattern a pattern compatible with java.text.DecimalFormat

public void setTimeFormat (String pattern)

Stores the formatting pattern to be used for times.

Parameters
pattern a pattern compatible with SimpleDateFormat