org.aspectj.ajde.internal
Class LstBuildConfigManager

java.lang.Object
  extended by org.aspectj.ajde.internal.LstBuildConfigManager
All Implemented Interfaces:
BuildConfigManager

public class LstBuildConfigManager
extends java.lang.Object
implements BuildConfigManager


Field Summary
protected  java.lang.String currConfigFilePath
           
 
Fields inherited from interface org.aspectj.ajde.internal.BuildConfigManager
CONFIG_FILE_SUFFIX, DEFAULT_CONFIG_LABEL
 
Constructor Summary
LstBuildConfigManager()
           
 
Method Summary
 void addFilesToConfig(java.lang.String configFilePath, java.util.List paths)
          Add files to a configuration.
 void addListener(BuildConfigListener configurationListener)
          Add a listner that will be notified of build configuration change events
 BuildConfigModel buildModel(java.lang.String configFilePath)
          Build a model for the corresponding configuration file.
 java.lang.String getActiveConfigFile()
          Returns the currently active build configuration file.
 java.util.List<java.lang.String> getAllBuildConfigFiles()
           
 void removeFilesFromConfig(java.lang.String configFilePath, java.util.List files)
          Remove files from a configuration.
 void removeListener(BuildConfigListener configurationListener)
          Remove a configuration listener.
 void setActiveConfigFile(java.lang.String currConfigFilePath)
          Sets the currently active build configuration file.
 void writeModel(BuildConfigModel model)
          Save the given configuration model to the file that it was generated from.
 void writePaths(java.lang.String configFilePath, java.util.List files)
          Write a list of source files into a configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currConfigFilePath

protected java.lang.String currConfigFilePath
Constructor Detail

LstBuildConfigManager

public LstBuildConfigManager()
Method Detail

buildModel

public BuildConfigModel buildModel(java.lang.String configFilePath)
Description copied from interface: BuildConfigManager
Build a model for the corresponding configuration file.

Specified by:
buildModel in interface BuildConfigManager

writeModel

public void writeModel(BuildConfigModel model)
Description copied from interface: BuildConfigManager
Save the given configuration model to the file that it was generated from.

Specified by:
writeModel in interface BuildConfigManager

writePaths

public void writePaths(java.lang.String configFilePath,
                       java.util.List files)
Description copied from interface: BuildConfigManager
Write a list of source files into a configuration file. File paths will be written relative to the path of the configuration file.

Specified by:
writePaths in interface BuildConfigManager

addFilesToConfig

public void addFilesToConfig(java.lang.String configFilePath,
                             java.util.List paths)
Description copied from interface: BuildConfigManager
Add files to a configuration.

Specified by:
addFilesToConfig in interface BuildConfigManager
Parameters:
configFilePath - full path to the configuration file
paths - list of full paths to the files to be added

removeFilesFromConfig

public void removeFilesFromConfig(java.lang.String configFilePath,
                                  java.util.List files)
Description copied from interface: BuildConfigManager
Remove files from a configuration.

Specified by:
removeFilesFromConfig in interface BuildConfigManager
Parameters:
configFilePath - full path to the configuration file
files - list of full paths to the files to be removed

getActiveConfigFile

public java.lang.String getActiveConfigFile()
Description copied from interface: BuildConfigManager
Returns the currently active build configuration file. The current active build configuration file that is set in this class is used for building and for updating the structure model.

Specified by:
getActiveConfigFile in interface BuildConfigManager
Returns:
full path to the file

setActiveConfigFile

public void setActiveConfigFile(java.lang.String currConfigFilePath)
Description copied from interface: BuildConfigManager
Sets the currently active build configuration file.

Specified by:
setActiveConfigFile in interface BuildConfigManager

addListener

public void addListener(BuildConfigListener configurationListener)
Description copied from interface: BuildConfigManager
Add a listner that will be notified of build configuration change events

Specified by:
addListener in interface BuildConfigManager

removeListener

public void removeListener(BuildConfigListener configurationListener)
Description copied from interface: BuildConfigManager
Remove a configuration listener.

Specified by:
removeListener in interface BuildConfigManager

getAllBuildConfigFiles

public java.util.List<java.lang.String> getAllBuildConfigFiles()
Specified by:
getAllBuildConfigFiles in interface BuildConfigManager
Returns:
list (of Strings) of all build configuration files found so far