org.openstreetmap.osmosis.core.domain.common
Interface TimestampContainer

All Known Implementing Classes:
SimpleTimestampContainer, UnparsedTimestampContainer

public interface TimestampContainer

Defines the interface for a class holding timestamps in one or both of parsed and unparsed forms. This allows a date to remain in text form throughout a pipeline if both ends utilise the date in the same format.

Author:
Brett Henderson

Method Summary
 java.lang.String getFormattedTimestamp(TimestampFormat timestampFormat)
          Gets the timestamp in a string format.
 java.util.Date getTimestamp()
           
 

Method Detail

getTimestamp

java.util.Date getTimestamp()
Returns:
The timestamp.

getFormattedTimestamp

java.lang.String getFormattedTimestamp(TimestampFormat timestampFormat)
Gets the timestamp in a string format.

Parameters:
timestampFormat - The formatter to use for formatting the timestamp into a string.
Returns:
The timestamp string.