Class PropertyListConfiguration.DateFieldParser

  • Enclosing class:
    PropertyListConfiguration

    private static final class PropertyListConfiguration.DateFieldParser
    extends PropertyListConfiguration.DateComponentParser
    A specialized date component parser implementation that deals with numeric calendar fields. The class is able to extract fields from a string literal and to format a literal from a calendar.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int calendarField
      Stores the calendar field to be processed.
      private int length
      Stores the length of this field.
      private int offset
      An optional offset to add to the calendar field.
    • Constructor Summary

      Constructors 
      Constructor Description
      DateFieldParser​(int calFld, int len)
      Creates a new instance of DateFieldParser.
      DateFieldParser​(int calFld, int len, int ofs)
      Creates a new instance of DateFieldParser and fully initializes it.
    • Field Detail

      • calendarField

        private final int calendarField
        Stores the calendar field to be processed.
      • length

        private final int length
        Stores the length of this field.
      • offset

        private final int offset
        An optional offset to add to the calendar field.
    • Constructor Detail

      • DateFieldParser

        public DateFieldParser​(int calFld,
                               int len)
        Creates a new instance of DateFieldParser.
        Parameters:
        calFld - the calendar field code
        len - the length of this field
      • DateFieldParser

        public DateFieldParser​(int calFld,
                               int len,
                               int ofs)
        Creates a new instance of DateFieldParser and fully initializes it.
        Parameters:
        calFld - the calendar field code
        len - the length of this field
        ofs - an offset to add to the calendar field