Class Calendaric

java.lang.Object
eu.bandm.tools.d2d2.base.PostProcessor
eu.bandm.tools.d2d2.postproc.Calendaric

public class Calendaric extends PostProcessor
For post-processing the d2d2/xml entries into a comprehensive and standardized text encoding.
  • Field Details

  • Constructor Details

    • Calendaric

      public Calendaric()
  • Method Details

    • process

      public ResultingStructure process(ResultingStructure input)
      Destructive impementation: Alter the input result element by replacing its (dummy=always empty) result auv-element with the tag "UTC" by the one with the encoded calendaric date as its contents. The encoding follows encodingFormat.
      Specified by:
      process in class PostProcessor
    • encode

      public static ResultingStructure encode(ResultingStructure input, String formatString)
      Does the reading of the data and their encoding. Allows to define more post-processing classes with different encoding strings. Interprets the sub-elements with the tags "year", "month", and "dayofmonth" as data of the "Gregorian Calendar".