Package eu.bandm.tools.d2d2.postproc
Class Calendaric
java.lang.Object
eu.bandm.tools.d2d2.postproc.Calendaric
- All Implemented Interfaces:
PostProcessor
For post-processing the d2d2/xml entries into a comprehensive and standardized
text encoding.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Format string, to be used byString.format(java.lang.String, java.lang.Object...)
.Fields inherited from interface eu.bandm.tools.d2d2.base.PostProcessor
method_name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResultingStructure
encode
(ResultingStructure input, String formatString) Does the reading of the data and their encoding.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.
-
Field Details
-
encodingFormat
Format string, to be used byString.format(java.lang.String, java.lang.Object...)
. See e.g. the Java API documentation atFormatter
, section "Date/Time Conversions" :The types are similar to but not completely identical to those defined by GNU date and POSIX strftime(3c). ... 'F' ISO 8601 complete date formatted as "%tY-%tm-%td".
- See Also:
-
-
Constructor Details
-
Calendaric
public Calendaric()
-
-
Method Details
-
process
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 followsencodingFormat
.- Specified by:
process
in interfacePostProcessor
-
encode
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".
-