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 SummaryNested classes/interfaces inherited from class java.text.DateFormatDateFormat.Field
- 
Field SummaryFieldsFields inherited from class java.text.DateFormatAM_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 SummaryConstructorsConstructorDescriptionCreates a plain format.RMDateFormat(String aFormat) Creates a format from the given string format.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanStandard 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).voidsetFormatString(String aFormat) Sets the date format string.voidsetNullString(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.SimpleDateFormatapplyLocalizedPattern, applyPattern, clone, format, formatToCharacterIterator, get2DigitYearStart, getDateFormatSymbols, hashCode, parse, set2DigitYearStart, setDateFormatSymbols, toLocalizedPattern, toPatternMethods inherited from class java.text.DateFormatformat, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, isLenient, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZoneMethods inherited from class java.text.Formatformat, parseObject
- 
Field Details- 
DEFAULT
- 
defaultFormat
 
- 
- 
Constructor Details- 
RMDateFormatpublic RMDateFormat()Creates a plain format.
- 
RMDateFormatCreates a format from the given string format.
 
- 
- 
Method Details- 
getNullStringReturns the String that is substituted when this format is asked to provide stringForObjectValue(null).
- 
setNullStringSets the String that is substituted when this format is asked to provide stringForObjectValue(null).
- 
getFormatStringReturns the date format string.- Specified by:
- getFormatStringin interface- RMFormat
 
- 
setFormatStringSets the date format string. Has support for legacy RM formats and Java style.- Specified by:
- setFormatStringin interface- RMFormat
 
- 
formatRMFormats the given object.
- 
equalsStandard equals implementation.- Overrides:
- equalsin class- SimpleDateFormat
 
- 
toXMLXML archival.- Specified by:
- toXMLin interface- Archivable
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
 
- 
toStringReturns string representation of this format.
 
-