org.openstreetmap.osmosis.core.domain.common
Class UnparsedTimestampContainer

java.lang.Object
  extended by org.openstreetmap.osmosis.core.domain.common.UnparsedTimestampContainer
All Implemented Interfaces:
TimestampContainer

public class UnparsedTimestampContainer
extends java.lang.Object
implements TimestampContainer

A timestamp container implementation that holds a timestamp in textual form.

Author:
Brett Henderson

Constructor Summary
UnparsedTimestampContainer(TimestampFormat timestampFormat, java.lang.String timestampString)
          Creates a new instance.
 
Method Summary
 java.lang.String getFormattedTimestamp(TimestampFormat timestampFormat)
          Gets the timestamp in a string format.
 java.util.Date getTimestamp()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnparsedTimestampContainer

public UnparsedTimestampContainer(TimestampFormat timestampFormat,
                                  java.lang.String timestampString)
Creates a new instance.

Parameters:
timestampFormat - The format to use for parsing the timestamp string.
timestampString - The timestamp in unparsed string form.
Method Detail

getFormattedTimestamp

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

Specified by:
getFormattedTimestamp in interface TimestampContainer
Parameters:
timestampFormat - The formatter to use for formatting the timestamp into a string.
Returns:
The timestamp string.

getTimestamp

public java.util.Date getTimestamp()

Specified by:
getTimestamp in interface TimestampContainer
Returns:
The timestamp.