org.apache.tools.ant.types.selectors
Class BaseExtendSelector
- Cloneable, ExtendFileSelector, FileSelector, Parameterizable
public abstract class BaseExtendSelector
Convenience base class for all selectors accessed through ExtendSelector.
It provides support for gathering the parameters together as well as for
assigning an error message and throwing a build exception if an error is
detected.
protected Parameter[] | getParameters() - Allows access to the parameters gathered and set within the
<custom> tag.
|
abstract boolean | isSelected(File basedir, String filename, File file) - Method that each selector will implement to create their
selection behaviour.
|
void | setParameters(Parameter[] parameters) - Set all the Parameters for this custom selector, collected by
the ExtendSelector class.
|
checkAttributesAllowed , checkChildrenAllowed , circularReference , clone , dieOnCircularReference , dieOnCircularReference , dieOnCircularReference , getCheckedRef , getCheckedRef , getCheckedRef , getCheckedRef , getDataTypeName , getRefid , invokeCircularReferenceCheck , isChecked , isReference , noChildrenAllowed , setChecked , setRefid , toString , tooManyAttributes |
parameters
protected Parameter[] parameters
The passed in parameter array.
BaseExtendSelector
public BaseExtendSelector()
Default constructor.
getParameters
protected Parameter[] getParameters()
Allows access to the parameters gathered and set within the
<custom> tag.
- the set of parameters defined for this selector
isSelected
public abstract boolean isSelected(File basedir,
String filename,
File file)
throws BuildException
Method that each selector will implement to create their
selection behaviour. If there is a problem with the setup
of a selector, it can throw a BuildException to indicate
the problem.
- isSelected in interface FileSelector
- isSelected in interface BaseSelector
basedir
- A java.io.File object for the base directoryfilename
- The name of the file to checkfile
- A File object for this filename
- whether the file should be selected or not
setParameters
public void setParameters(Parameter[] parameters)
Set all the Parameters for this custom selector, collected by
the ExtendSelector class.
- setParameters in interface Parameterizable
parameters
- the complete set of parameters for this selector