001package org.gbif.api.util.formatter;
002
003
004import org.gbif.api.model.registry.eml.temporal.DateRange;
005import org.gbif.api.model.registry.eml.temporal.SingleDate;
006import org.gbif.api.model.registry.eml.temporal.VerbatimTimePeriod;
007
008/**
009 * Allows formatter to be dynamically selected based on the concrete type of TemporalCoverage at runtime.
010 *
011 */
012public interface TemporalCoverageFormatterVisitor {
013  String format(DateRange t);
014  String format(SingleDate t);
015  String format(VerbatimTimePeriod t);
016}