Class PropertyListConfiguration.DateFieldParser

java.lang.Object
org.apache.commons.configuration2.plist.PropertyListConfiguration.DateComponentParser
org.apache.commons.configuration2.plist.PropertyListConfiguration.DateFieldParser
Enclosing class:
PropertyListConfiguration

private static 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 Details

    • 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 Details

    • 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
  • Method Details