org.openstreetmap.osmosis.core.migrate.impl
Class EntityMigrater

java.lang.Object
  extended by org.openstreetmap.osmosis.core.migrate.impl.EntityMigrater

public class EntityMigrater
extends java.lang.Object

Provides conversion routines for entity classes between 0.5 and 0.6 format.

Author:
Brett Henderson

Constructor Summary
EntityMigrater()
           
 
Method Summary
 Bound migrate(Bound entity)
          Migrates a bound object from 0.5 to 0.6 format.
 Node migrate(Node entity)
          Migrates a node object from 0.5 to 0.6 format.
 Relation migrate(Relation entity)
          Migrates a relation object from 0.5 to 0.6 format.
 Way migrate(Way entity)
          Migrates a way object from 0.5 to 0.6 format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityMigrater

public EntityMigrater()
Method Detail

migrate

public Bound migrate(Bound entity)
Migrates a bound object from 0.5 to 0.6 format.

Parameters:
entity - The entity to migrate.
Returns:
The entity in 0.6 format.

migrate

public Node migrate(Node entity)
Migrates a node object from 0.5 to 0.6 format.

Parameters:
entity - The entity to migrate.
Returns:
The entity in 0.6 format.

migrate

public Way migrate(Way entity)
Migrates a way object from 0.5 to 0.6 format.

Parameters:
entity - The entity to migrate.
Returns:
The entity in 0.6 format.

migrate

public Relation migrate(Relation entity)
Migrates a relation object from 0.5 to 0.6 format.

Parameters:
entity - The entity to migrate.
Returns:
The entity in 0.6 format.