de.dv.sbu.builder
Class BuilderInstruction

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

public class BuilderInstruction
extends java.lang.Object

A building command and a filtering for its triggering caused by a file, represented by a SourceFileInformation instance. The file filter will be asked if the file handler shall be executed. In this case no further builder instructions will be called.

Author:
Daniel Vogtland

Constructor Summary
BuilderInstruction()
          Creates a new not initialized instance.
BuilderInstruction(IFileFilter fileFilter, IFileHandler fileHandler)
          Creates a new instance defined by two members: The filter defining if this instruction shall be fired on the given file information.
 
Method Summary
 IFileFilter getFileFilter()
          Returns the filter defining if this instruction shall be fired on the given file information.
 IFileHandler getFileHandler()
          The file handler.
 void setFileFilter(IFileFilter fileFilter)
          Sets the file filter.
 void setFileHandler(IFileHandler fileHandler)
          Sets the file handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuilderInstruction

public BuilderInstruction()
Creates a new not initialized instance.


BuilderInstruction

public BuilderInstruction(IFileFilter fileFilter,
                          IFileHandler fileHandler)
                   throws java.lang.NullPointerException
Creates a new instance defined by two members: The filter defining if this instruction shall be fired on the given file information. The file handler. Will only be called if the filter accepted the file information.

Parameters:
fileFilter - The filter to set. Must not be null.
fileHandler - The file handler to set. Must not be null.
Throws:
java.lang.NullPointerException - An argument is null.
Method Detail

getFileFilter

public IFileFilter getFileFilter()
Returns the filter defining if this instruction shall be fired on the given file information.

Returns:
The defined filter.

getFileHandler

public IFileHandler getFileHandler()
The file handler. Will only be called if the filter accepted the file information.

Returns:
The defined file handler.

setFileFilter

public void setFileFilter(IFileFilter fileFilter)
                   throws java.lang.NullPointerException
Sets the file filter.

Parameters:
fileFilter - The instance to set.
Throws:
java.lang.NullPointerException - The argument is null.

setFileHandler

public void setFileHandler(IFileHandler fileHandler)
                    throws java.lang.NullPointerException
Sets the file handler.

Parameters:
fileHandler - The instance to set.
Throws:
java.lang.NullPointerException - The argument is null.