de.dv.sbu.builder
Class BuilderConfiguration

java.lang.Object
  extended by de.dv.sbu.builder.BuilderConfiguration

public class BuilderConfiguration
extends java.lang.Object

Configuration used by a Builder

Author:
Daniel Vogtland

Constructor Summary
BuilderConfiguration()
          Creates a new instance initialized with the following default values: source root = 'src' resource root = 'resource' target root = 'out'
 
Method Summary
 java.util.List<BuilderInstruction> getInstructions()
          Returns the defined processors.
 java.io.File getResourceRoot()
          Returns the resource root directory.
 java.io.File getSourceRoot()
          Returns the source root directory.
 java.io.File getTargetRoot()
          Returns the target root directory.
 void setInstructions(java.util.List<BuilderInstruction> instructions)
          Sets the instructions.
 void setResourceRoot(java.io.File resourceRoot)
          Sets the resource root directory.
 void setSourceRoot(java.io.File sourceRoot)
          Sets the source root directory.
 void setTargetRoot(java.io.File targetRoot)
          Sets the target root directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuilderConfiguration

public BuilderConfiguration()
Creates a new instance initialized with the following default values: source root = 'src' resource root = 'resource' target root = 'out'

Method Detail

getSourceRoot

public java.io.File getSourceRoot()
Returns the source root directory.

Returns:
The root source directory.

setSourceRoot

public void setSourceRoot(java.io.File sourceRoot)
                   throws java.lang.NullPointerException
Sets the source root directory.

Parameters:
sourceRoot - The directory to set.
Throws:
java.lang.NullPointerException - The argument is null.

getTargetRoot

public java.io.File getTargetRoot()
Returns the target root directory.

Returns:
The target root directory.

setTargetRoot

public void setTargetRoot(java.io.File targetRoot)
                   throws java.lang.NullPointerException
Sets the target root directory.

Parameters:
targetRoot - The directory to set.
Throws:
java.lang.NullPointerException - The argument is null.

getResourceRoot

public java.io.File getResourceRoot()
Returns the resource root directory.

Returns:
The resource root directory.

setResourceRoot

public void setResourceRoot(java.io.File resourceRoot)
                     throws java.lang.NullPointerException
Sets the resource root directory.

Parameters:
resourceRoot - The directory to set.
Throws:
java.lang.NullPointerException - The argument is null.

getInstructions

public java.util.List<BuilderInstruction> getInstructions()
Returns the defined processors.

Returns:
The defined processors.

setInstructions

public void setInstructions(java.util.List<BuilderInstruction> instructions)
                     throws java.lang.NullPointerException
Sets the instructions.

Parameters:
instructions - The list to set. Not expected to contain null values.
Throws:
java.lang.NullPointerException - The list is null.