Class SpelledYearSymbol

java.lang.Object
com.aquima.interactions.foundation.text.symbol.AbstractFormatOnlySymbol
com.aquima.interactions.framework.mask.impl.date.SpelledYearSymbol
All Implemented Interfaces:
IDateSymbol, Serializable

public class SpelledYearSymbol extends AbstractFormatOnlySymbol
This is a symbol implementation to spell a year. This implementation is for masks only, so parsing strings will throw an exception.
Since:
6.0
Author:
Jon van Leuven
See Also:
  • Constructor Details Link icon

    • SpelledYearSymbol Link icon

      public SpelledYearSymbol(ISpeller speller)
      Construct a spelled year symbol with a speller.
      Parameters:
      speller - The speller used to spell the year (required)
  • Method Details Link icon

    • format Link icon

      public void format(Calendar calendar, StringBuffer sb)
      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.
    • format Link icon

      public void format(LocalDateTime ldt, StringBuilder sb)
      Description copied from interface: IDateSymbol
      Formats this symbol's field of the specified date/time, and appends it to the StringBuilder.
      Parameters:
      ldt - The date/time that needs to be formatted
      sb - StringBuilder in which to place the result of the formatting operation
    • getPattern Link icon

      public String getPattern()
      Description copied from interface: IDateSymbol
      Return the pattern representation of this DateSymbol.
      Returns:
      String representing the pattern.
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object