de.bsd.x2svg.ant
Class X2SvgSubTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by de.bsd.x2svg.ant.X2SvgBaseTask
              extended by de.bsd.x2svg.ant.X2SvgSubTask
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
ConvertorSubTask, ParserSubTask

public abstract class X2SvgSubTask
extends X2SvgBaseTask

The base task that is used by all X2SVG sub-tasks for common functionality.

Since:
1.1
Author:
gfloodgate

Field Summary
private  RuntimeParameters runtimeParameters
          The base runtime parameters for this sub-task.
private  java.util.Set<OutputType> types
          The collection of output types to also convert to.
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
X2SvgSubTask()
           
 
Method Summary
protected  java.util.Set<OutputType> getOutputTypes()
          Get the output types that this task will convert to.
protected  RuntimeParameters getRuntimeParameters()
          Get the runtime parameters intended for this class, or it's subtypes.
 void setOutputTypes(java.util.Set<OutputType> types)
          Set the output types that task output will also be converted to.
 void setRuntimeParameters(RuntimeParameters runtimeParameters)
          Set the base runtime parameters to be used by this task.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runtimeParameters

private RuntimeParameters runtimeParameters
The base runtime parameters for this sub-task.


types

private java.util.Set<OutputType> types
The collection of output types to also convert to.

Constructor Detail

X2SvgSubTask

public X2SvgSubTask()
Method Detail

setRuntimeParameters

public void setRuntimeParameters(RuntimeParameters runtimeParameters)
Set the base runtime parameters to be used by this task.

NB: This setter makes a copy of the supplied instance. It does not keep a reference to the parameters. This allows for heirarchical addition of new parameters down the tree.

Parameters:
runtimeParameters - The runtime parameters to use.

getRuntimeParameters

protected RuntimeParameters getRuntimeParameters()
Get the runtime parameters intended for this class, or it's subtypes.

Returns:
The runtime parameters for this task instance.

setOutputTypes

public void setOutputTypes(java.util.Set<OutputType> types)
Set the output types that task output will also be converted to.

NB: This setter makes a copy of the supplied instance. It does not keep a reference to the Set. This allows for heirarchical addition of new output types down the tree.

Parameters:
types - The set of output types to convert output to.

getOutputTypes

protected java.util.Set<OutputType> getOutputTypes()
Get the output types that this task will convert to.

Returns:
The set of output types this task is using.


x2svg version 1.2.1