org.openstreetmap.osmosis.core.mysql.v0_5.impl
Class ActionChangeWriter

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

public class ActionChangeWriter
extends java.lang.Object
implements EntityProcessor

Writes entities to a database according to a specific action.

Author:
Brett Henderson

Constructor Summary
ActionChangeWriter(ChangeWriter changeWriter, ChangeAction action)
          Creates a new instance.
 
Method Summary
 void process(BoundContainer bound)
          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

ActionChangeWriter

public ActionChangeWriter(ChangeWriter changeWriter,
                          ChangeAction action)
Creates a new instance.

Parameters:
changeWriter - The underlying change writer.
action - The action to apply to all writes.
Method Detail

process

public void process(BoundContainer bound)
Process the bound.

Specified by:
process in interface EntityProcessor
Parameters:
bound - 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.