org.openstreetmap.osmosis.core.sort.v0_5
Class EntitySorterFactory

java.lang.Object
  extended by org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory
      extended by org.openstreetmap.osmosis.core.sort.v0_5.EntitySorterFactory

public class EntitySorterFactory
extends TaskManagerFactory

The task manager factory for an entity sorter.

Author:
Brett Henderson

Constructor Summary
EntitySorterFactory()
          Creates a new instance.
 
Method Summary
protected  TaskManager createTaskManagerImpl(TaskConfiguration taskConfig)
          Create a new task manager containing a task instance.
 void registerComparator(java.lang.String comparatorType, java.util.Comparator<EntityContainer> comparator, boolean setAsDefault)
          Registers a new comparator.
 
Methods inherited from class org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory
createTaskManager, doesArgumentExist, getBooleanArgument, getDateArgument, getDateArgument, getDefaultIntegerArgument, getDefaultStringArgument, getDoubleArgument, getIntegerArgument, getIntegerArgument, getStringArgument, getStringArgument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntitySorterFactory

public EntitySorterFactory()
Creates a new instance.

Method Detail

registerComparator

public void registerComparator(java.lang.String comparatorType,
                               java.util.Comparator<EntityContainer> comparator,
                               boolean setAsDefault)
Registers a new comparator.

Parameters:
comparatorType - The name of the comparator.
comparator - The comparator.
setAsDefault - If true, this will be set to be the default comparator if no comparator is specified.

createTaskManagerImpl

protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig)
Create a new task manager containing a task instance.

Specified by:
createTaskManagerImpl in class TaskManagerFactory
Parameters:
taskConfig - Contains all information required to instantiate and configure the task.
Returns:
The newly created task manager.