edu.rice.cs.drjava.config
Class FileListProperty

java.lang.Object
  extended by edu.rice.cs.drjava.config.DrJavaProperty
      extended by edu.rice.cs.drjava.config.FileListProperty
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
RecursiveFileListProperty

public abstract class FileListProperty
extends DrJavaProperty

Class representing file lists that are not evaluated until necessary.

Version:
$Id$

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.rice.cs.drjava.config.DrJavaProperty
DrJavaProperty.InfiniteLoopException
 
Field Summary
protected  String _dir
          Relative directory.
protected  String _sep
          Separating string.
 
Fields inherited from class edu.rice.cs.drjava.config.DrJavaProperty
_attributes, _help, _isCurrent, _listening, _name, _value, DEACTIVATED_DUE_TO_ERROR
 
Constructor Summary
FileListProperty(String name, String sep, String dir, String help)
          Create an lazy file list property.
 
Method Summary
protected abstract  List<File> getList(PropertyMaps pm)
          Abstract factory method specifying the list.PropertyMaps pm
 void invalidate()
          Mark the value as stale.
 boolean isCurrent()
          Return true if the value is current.
 void resetAttributes()
          Reset the attributes.
 void update(PropertyMaps pm)
          Update the value by concatenating the list of documents.
 
Methods inherited from class edu.rice.cs.drjava.config.DrJavaProperty
_invalidate, equals, getAttribute, getCurrent, getHelp, getLazy, getName, hashCode, invalidateOthers, listenToInvalidatesOf, setAttribute, setAttributes, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_sep

protected String _sep
Separating string.


_dir

protected String _dir
Relative directory.

Constructor Detail

FileListProperty

public FileListProperty(String name,
                        String sep,
                        String dir,
                        String help)
Create an lazy file list property.

Method Detail

invalidate

public void invalidate()
Mark the value as stale.

Overrides:
invalidate in class DrJavaProperty

isCurrent

public boolean isCurrent()
Return true if the value is current.

Overrides:
isCurrent in class DrJavaProperty

getList

protected abstract List<File> getList(PropertyMaps pm)
Abstract factory method specifying the list.PropertyMaps pm

Parameters:
pm - PropertyMaps used for substitution when replacing variables

update

public void update(PropertyMaps pm)
Update the value by concatenating the list of documents.

Specified by:
update in class DrJavaProperty
Parameters:
pm - PropertyMaps used for substitution when replacing variables

resetAttributes

public void resetAttributes()
Reset the attributes.

Overrides:
resetAttributes in class DrJavaProperty