org.openstreetmap.osmosis.core.container.v0_6
Class EntityContainerBuilder

java.lang.Object
  extended by org.openstreetmap.osmosis.core.container.v0_6.EntityContainerBuilder
All Implemented Interfaces:
EntityProcessor, Task, Source

Deprecated. The builder classes are not required because entities are now writeable.

@Deprecated
public class EntityContainerBuilder
extends java.lang.Object
implements EntityProcessor, Source

Provides a mechanism to manipulate entities without directly manipulating and instantiating their containers. This class does nothing by default, sub-classes must override methods to add their own functionality

Author:
Brett Henderson

Constructor Summary
EntityContainerBuilder()
          Deprecated. Creates a new instance.
 
Method Summary
 void process(BoundContainer boundContainer)
          Deprecated. Process the bound.
 void process(NodeContainer nodeContainer)
          Deprecated. Process the node.
 void process(RelationContainer relationContainer)
          Deprecated. Process the relation.
 void process(WayContainer wayContainer)
          Deprecated. Process the way.
protected  boolean processEntity(EntityBuilder<?> builder)
          Deprecated. Performs generic entity processing.
protected  boolean processNode(NodeBuilder entityBuilder)
          Deprecated. Performs node specific processing.
protected  boolean processRelation(RelationBuilder entityBuilder)
          Deprecated. Performs relation specific processing.
protected  boolean processWay(WayBuilder entityBuilder)
          Deprecated. Performs way specific processing.
 void setSink(Sink sink)
          Deprecated. Sets the osm sink to send data to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityContainerBuilder

public EntityContainerBuilder()
Deprecated. 
Creates a new instance.

Method Detail

processEntity

protected boolean processEntity(EntityBuilder<?> builder)
Deprecated. 
Performs generic entity processing. This should be overridden by implementations wishing to perform generic entity processing.

Parameters:
builder - The entity builder to be processed.
Returns:
True if modifications were made to the entity builder during processing.

processNode

protected boolean processNode(NodeBuilder entityBuilder)
Deprecated. 
Performs node specific processing. This should be overridden by implementations wishing to perform node processing.

Parameters:
entityBuilder - The entity builder to be processed.
Returns:
True if modifications were made to the entity builder during processing.

processWay

protected boolean processWay(WayBuilder entityBuilder)
Deprecated. 
Performs way specific processing. This should be overridden by implementations wishing to perform way processing.

Parameters:
entityBuilder - The entity builder to be processed.
Returns:
True if modifications were made to the entity builder during processing.

processRelation

protected boolean processRelation(RelationBuilder entityBuilder)
Deprecated. 
Performs relation specific processing. This should be overridden by implementations wishing to perform relation processing.

Parameters:
entityBuilder - The entity builder to be processed.
Returns:
True if modifications were made to the entity builder during processing.

process

public void process(BoundContainer boundContainer)
Deprecated. 
Process the bound.

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

process

public void process(NodeContainer nodeContainer)
Deprecated. 
Process the node.

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

process

public void process(WayContainer wayContainer)
Deprecated. 
Process the way.

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

process

public void process(RelationContainer relationContainer)
Deprecated. 
Process the relation.

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

setSink

public void setSink(Sink sink)
Deprecated. 
Sets the osm sink to send data to.

Specified by:
setSink in interface Source
Parameters:
sink - The sink for receiving all produced data.