antsnest.antinfo
Class DefaultAntInfoFactory

java.lang.Object
  extended by antsnest.antinfo.DefaultAntInfoFactory
All Implemented Interfaces:
AntInfoFactory

public class DefaultAntInfoFactory
extends Object
implements AntInfoFactory

Implementation of AntInfoFactory

Author:
Chris Clohosy
See Also:
AntInfoFactory, AntInfo

Constructor Summary
DefaultAntInfoFactory()
          Constructs a new factory
 
Method Summary
 AntInfo getAntInfo()
          Gets the Ant information
 void setTaskExtModel(File taskExtModelFile)
          Sets the task extension model to be used
 void setTaskModel(File taskModelFile)
          Sets the task model to be used
 void setTaskModel(String taskModelFileName)
          Sets the task model to be used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAntInfoFactory

public DefaultAntInfoFactory()
Constructs a new factory

Method Detail

setTaskModel

public void setTaskModel(File taskModelFile)
Sets the task model to be used

Parameters:
taskModelFile - the file to use

setTaskModel

public void setTaskModel(String taskModelFileName)
Sets the task model to be used

Parameters:
taskModelFileName - the name of the file to use

setTaskExtModel

public void setTaskExtModel(File taskExtModelFile)
Sets the task extension model to be used

Parameters:
taskExtModelFile - the file to use

getAntInfo

public AntInfo getAntInfo()
                   throws AntInfoException
Gets the Ant information

Specified by:
getAntInfo in interface AntInfoFactory
Returns:
an AntInfo, the information
Throws:
AntInfoException - if there's a problem creating the information