org.openstreetmap.osmosis.core.change.v0_6.impl
Class TimestampSetter

java.lang.Object
  extended by org.openstreetmap.osmosis.core.change.v0_6.impl.TimestampSetter

public class TimestampSetter
extends java.lang.Object

Updates the current timestamp on to entities. Note that the same time will be applied to all entities and will be the time that the internal timestamp was first derived.


Constructor Summary
TimestampSetter()
          Creates a new instance.
 
Method Summary
 EntityContainer updateTimestamp(EntityContainer entityContainer)
          Updates the timestamp on the supplied entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampSetter

public TimestampSetter()
Creates a new instance.

Method Detail

updateTimestamp

public EntityContainer updateTimestamp(EntityContainer entityContainer)
Updates the timestamp on the supplied entity. A new entity container may be created if the existing one is read-only.

Parameters:
entityContainer - The container holding the entity to be modified.
Returns:
A container holding an updated entity.