Package com.inductiveautomation.rm.base
Class RMDateFormat
java.lang.Object
java.text.Format
java.text.DateFormat
java.text.SimpleDateFormat
com.inductiveautomation.rm.base.RMDateFormat
- All Implemented Interfaces:
Archivable
,RMFormat
,Serializable
,Cloneable
This is just a SimpleDateFormat subclass to support RM archiving and legacy formats.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.text.DateFormat
DateFormat.Field
-
Field Summary
FieldsFields inherited from class java.text.DateFormat
AM_PM_FIELD, calendar, DATE_FIELD, DAY_OF_WEEK_FIELD, DAY_OF_WEEK_IN_MONTH_FIELD, DAY_OF_YEAR_FIELD, ERA_FIELD, FULL, HOUR_OF_DAY0_FIELD, HOUR_OF_DAY1_FIELD, HOUR0_FIELD, HOUR1_FIELD, LONG, MEDIUM, MILLISECOND_FIELD, MINUTE_FIELD, MONTH_FIELD, numberFormat, SECOND_FIELD, SHORT, TIMEZONE_FIELD, WEEK_OF_MONTH_FIELD, WEEK_OF_YEAR_FIELD, YEAR_FIELD
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a plain format.RMDateFormat
(String aFormat) Creates a format from the given string format. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Standard equals implementation.Formats the given object.fromXML
(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the date format string.Returns the String that is substituted when this format is asked to provide stringForObjectValue(null).void
setFormatString
(String aFormat) Sets the date format string.void
setNullString
(String aString) Sets the String that is substituted when this format is asked to provide stringForObjectValue(null).toString()
Returns string representation of this format.toXML
(RXArchiver anArchiver) XML archival.Methods inherited from class java.text.SimpleDateFormat
applyLocalizedPattern, applyPattern, clone, format, formatToCharacterIterator, get2DigitYearStart, getDateFormatSymbols, hashCode, parse, set2DigitYearStart, setDateFormatSymbols, toLocalizedPattern, toPattern
Methods inherited from class java.text.DateFormat
format, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, isLenient, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZone
Methods inherited from class java.text.Format
format, parseObject
-
Field Details
-
DEFAULT
-
defaultFormat
-
-
Constructor Details
-
RMDateFormat
public RMDateFormat()Creates a plain format. -
RMDateFormat
Creates a format from the given string format.
-
-
Method Details
-
getNullString
Returns the String that is substituted when this format is asked to provide stringForObjectValue(null). -
setNullString
Sets the String that is substituted when this format is asked to provide stringForObjectValue(null). -
getFormatString
Returns the date format string.- Specified by:
getFormatString
in interfaceRMFormat
-
setFormatString
Sets the date format string. Has support for legacy RM formats and Java style.- Specified by:
setFormatString
in interfaceRMFormat
-
formatRM
Formats the given object. -
equals
Standard equals implementation.- Overrides:
equals
in classSimpleDateFormat
-
toXML
XML archival.- Specified by:
toXML
in interfaceArchivable
-
fromXML
XML unarchival.- Specified by:
fromXML
in interfaceArchivable
-
toString
Returns string representation of this format.
-