org.openstreetmap.osmosis.core.change.v0_5.impl
Class TimestampChangeSetter

java.lang.Object
  extended by org.openstreetmap.osmosis.core.change.v0_5.impl.TimestampChangeSetter
All Implemented Interfaces:
EntityProcessor

public class TimestampChangeSetter
extends java.lang.Object
implements EntityProcessor

An entity processor that copies the input entity but applies the current timestamp before sending it to the change sink. 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
TimestampChangeSetter(ChangeSink changeSink, ChangeAction action)
          Creates a new instance.
 
Method Summary
 void process(BoundContainer boundContainer)
          Process the bound.
 void process(NodeContainer nodeContainer)
          Process the node.
 void process(RelationContainer relationContainer)
          Process the relation.
 void process(WayContainer wayContainer)
          Process the way.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampChangeSetter

public TimestampChangeSetter(ChangeSink changeSink,
                             ChangeAction action)
Creates a new instance.

Parameters:
changeSink - The sink to send all changes to.
action - The action to apply to all entities.
Method Detail

process

public void process(BoundContainer boundContainer)
Process the bound.

Specified by:
process in interface EntityProcessor
Parameters:
boundContainer - The bound to be processed.

process

public void process(NodeContainer nodeContainer)
Process the node.

Specified by:
process in interface EntityProcessor
Parameters:
nodeContainer - The node to be processed.

process

public void process(WayContainer wayContainer)
Process the way.

Specified by:
process in interface EntityProcessor
Parameters:
wayContainer - The way to be processed.

process

public void process(RelationContainer relationContainer)
Process the relation.

Specified by:
process in interface EntityProcessor
Parameters:
relationContainer - The relation to be processed.