org.openstreetmap.osmosis.core.pipeline.common
Class TaskConfiguration

java.lang.Object
  extended by org.openstreetmap.osmosis.core.pipeline.common.TaskConfiguration

public class TaskConfiguration
extends java.lang.Object

Contains all information relating to the configuration of a single task.

Author:
Brett Henderson

Constructor Summary
TaskConfiguration(java.lang.String id, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> pipeArgs, java.util.Map<java.lang.String,java.lang.String> configArgs, java.lang.String defaultArg)
          Creates a new instance.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getConfigArgs()
          The configuration arguments for the task.
 java.lang.String getDefaultArg()
          Contains the single default argument (if supplied) to the task.
 java.lang.String getId()
          The unique identifier for the task.
 java.util.Map<java.lang.String,java.lang.String> getPipeArgs()
          The pipeline connection arguments for the task.
 java.lang.String getType()
          The type of the task to be created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskConfiguration

public TaskConfiguration(java.lang.String id,
                         java.lang.String type,
                         java.util.Map<java.lang.String,java.lang.String> pipeArgs,
                         java.util.Map<java.lang.String,java.lang.String> configArgs,
                         java.lang.String defaultArg)
Creates a new instance.

Parameters:
id - The identifier of the task.
type - The type of the task.
pipeArgs - The pipe arguments for the task.
configArgs - The configuration arguments for the task.
defaultArg - The default argument for the task.
Method Detail

getId

public java.lang.String getId()
The unique identifier for the task.

Returns:
The id.

getType

public java.lang.String getType()
The type of the task to be created.

Returns:
The type.

getPipeArgs

public java.util.Map<java.lang.String,java.lang.String> getPipeArgs()
The pipeline connection arguments for the task.

Returns:
The pipeArgs.

getConfigArgs

public java.util.Map<java.lang.String,java.lang.String> getConfigArgs()
The configuration arguments for the task.

Returns:
The configArgs.

getDefaultArg

public java.lang.String getDefaultArg()
Contains the single default argument (if supplied) to the task.

Returns:
The defaultArg or null if not available.