Class SpelledMonthSymbol
java.lang.Object
com.aquima.interactions.foundation.text.symbol.AbstractFormatOnlySymbol
com.aquima.interactions.framework.mask.impl.date.SpelledMonthSymbol
- All Implemented Interfaces:
IDateSymbol
,Serializable
- Direct Known Subclasses:
SpelledShortMonthSymbol
This is a symbol implementation to format a month of the year. This implementation is for masks only, so parsing
strings will throw an exception.
- Since:
- 6.0
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSpelledMonthSymbol
(MonthSpeller speller) This construct a spelled month symbol with a speller. -
Method Summary
Modifier and TypeMethodDescriptionvoid
format
(Calendar calendar, StringBuffer sb) Formats this symbol's field of the specified Calendar, and appends it to the StringBuffer.Return the pattern representation of this NumberSymbol.Methods inherited from class com.aquima.interactions.foundation.text.symbol.AbstractFormatOnlySymbol
getWidth, parse
-
Constructor Details
-
SpelledMonthSymbol
This construct a spelled month symbol with a speller.- Parameters:
speller
- The speller to use. (required)
-
-
Method Details
-
format
Description copied from interface:IDateSymbol
Formats this symbol's field of the specified Calendar, and appends it to the StringBuffer.- Parameters:
calendar
- Calendar object which holds the date/time that needs to be formatted. The instance is created inside the format method of the DateFormat class.sb
- StringBuffer in which to place the result of the formatting operation.
-
getPattern
Description copied from interface:IDateSymbol
Return the pattern representation of this NumberSymbol.- Returns:
- String representing the pattern.
-