antsnest.configuration
Class AntsNestProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by antsnest.configuration.AntsNestProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class AntsNestProperties
extends Properties

Used to store properties Ant's Nest needs to function

Author:
Chris Clohosy
See Also:
Serialized Form

Field Summary
static String UNSET
          Constant representing an unset property
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
AntsNestProperties(File file)
          Constructs a new property list
 
Method Summary
 void addAntDocsPath(String path)
          Adds a path where Ant task documentation lies
 String[] getAntDocPaths()
          Gets the paths to the Ant tasks' documentation
 File getLastFile()
          Gets the last file that was being edited
 String getLastLevel()
          Gets which level Ant's Nest was it in when it last exited
 String getTaskExtModelPath()
          Gets the path to the Ant Task-Extension Model
 String getTaskModelPath()
          Gets the path to the Ant Task Model
 void load()
          Loads in the properties
 void save()
          Saves the properties
 void setLastFile(File lastFile)
          Sets the last file that was being edited
 void setLastLevel(String lastLevel)
          Sets the level which Ant's Nest was in when it last exited
 void setTaskExtModelPath(String path)
          Sets the path to the Ant Task-Extension Model
 void setTaskModelPath(String path)
          Sets the path to the Ant Task Model
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNSET

public static final String UNSET
Constant representing an unset property

See Also:
Constant Field Values
Constructor Detail

AntsNestProperties

public AntsNestProperties(File file)
Constructs a new property list

Parameters:
file - the file the properties reside in
Method Detail

save

public void save()
          throws IOException
Saves the properties

Throws:
IOException - if there's a problem saving

load

public void load()
          throws IOException
Loads in the properties

Throws:
IOException - if there's a problem loading

getTaskModelPath

public String getTaskModelPath()
Gets the path to the Ant Task Model

Returns:
a String, the path

setTaskModelPath

public void setTaskModelPath(String path)
Sets the path to the Ant Task Model

Parameters:
path - the path

getTaskExtModelPath

public String getTaskExtModelPath()
Gets the path to the Ant Task-Extension Model

Returns:
a String, the path

setTaskExtModelPath

public void setTaskExtModelPath(String path)
Sets the path to the Ant Task-Extension Model

Parameters:
path - the path

getLastLevel

public String getLastLevel()
Gets which level Ant's Nest was it in when it last exited

Returns:
a String, the level classname

setLastLevel

public void setLastLevel(String lastLevel)
Sets the level which Ant's Nest was in when it last exited

Parameters:
lastLevel - the level

getLastFile

public File getLastFile()
Gets the last file that was being edited

Returns:
a File, the file

setLastFile

public void setLastFile(File lastFile)
Sets the last file that was being edited

Parameters:
lastFile - the file

getAntDocPaths

public String[] getAntDocPaths()
Gets the paths to the Ant tasks' documentation

Returns:
a String[], the paths

addAntDocsPath

public void addAntDocsPath(String path)
Adds a path where Ant task documentation lies

Parameters:
path - the path