@Deprecated public interface FormattingConfig extends Config
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DATE_FORMAT
Deprecated.
The default date format.
|
static String |
DEFAULT_DATE_TIME_FORMAT
Deprecated.
The default date and time format.
|
static String |
DEFAULT_TIME_FORMAT
Deprecated.
The default time format.
|
static String |
DEFAULT_TIMESTAMP_FORMAT
Deprecated.
The default timestamp format.
|
Modifier and Type | Method and Description |
---|---|
String |
getDateFormat()
Deprecated.
Returns the date format.
|
String |
getDateTimeFormat()
Deprecated.
Returns the date and time format.
|
String |
getTimeFormat()
Deprecated.
Returns the time format.
|
String |
getTimestampFormat()
Deprecated.
Returns the timestamp format.
|
DateFormat |
newDateFormat()
Deprecated.
Create a Date Format object based upon the specified date format.
|
DateFormat |
newDateTimeFormat()
Deprecated.
Create a Date Format object based upon the specified data and time
format.
|
DateFormat |
newTimeFormat()
Deprecated.
Create a Date Format object based upon the specified time format.
|
DateFormat |
newTimestampFormat()
Deprecated.
Create a Date Format object based upon the specified timestamp format.
|
void |
setDateFormat(String format)
Deprecated.
Sets the date format.
|
void |
setDateTimeFormat(String format)
Deprecated.
Sets the date and time format.
|
void |
setTimeFormat(String format)
Deprecated.
Sets the time format.
|
void |
setTimestampFormat(String format)
Deprecated.
Sets the timestamp format.
|
static final String DEFAULT_DATE_FORMAT
static final String DEFAULT_TIME_FORMAT
static final String DEFAULT_DATE_TIME_FORMAT
static final String DEFAULT_TIMESTAMP_FORMAT
void setDateFormat(String format) throws ConfigException
The format should be a pattern as defined by SimpleDateFormat
.
If not specified the default value of DEFAULT_DATE_FORMAT
will
be used.
format
- the date formatConfigException
- unable to set the propertyString getDateFormat()
DateFormat newDateFormat()
void setDateTimeFormat(String format) throws ConfigException
The format should be a pattern as defined by SimpleDateFormat
.
If not specified the default value of DEFAULT_DATE_TIME_FORMAT
will be used.
format
- the date and time formatConfigException
- unable to set the propertyDateFormat newDateTimeFormat()
String getDateTimeFormat()
void setTimeFormat(String format) throws ConfigException
The format should be a pattern as defined by SimpleDateFormat
.
If not specified the default value of DEFAULT_TIME_FORMAT
will
be used.
format
- the time formatConfigException
- unable to set the propertyString getTimeFormat()
DateFormat newTimeFormat()
void setTimestampFormat(String format) throws ConfigException
The format should be a pattern as defined by SimpleDateFormat
.
If not specified the default value of DEFAULT_TIMESTAMP_FORMAT
will be used.
format
- the timestamp formatConfigException
- unable to set the propertyString getTimestampFormat()
DateFormat newTimestampFormat()
Copyright © 2022 Push Technology Ltd. All Rights Reserved.