| org.apache.tools.ant.types.selectors.BaseSelector org.apache.tools.ant.types.selectors.BaseExtendSelector
All known Subclasses: org.apache.tools.ant.types.selectors.ContainsSelector, org.apache.tools.ant.types.selectors.ContainsRegexpSelector, org.apache.tools.ant.types.selectors.DateSelector, org.apache.tools.ant.types.selectors.TypeSelector, org.apache.tools.ant.types.selectors.SizeSelector, org.apache.tools.ant.types.selectors.DepthSelector, org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector, org.apache.tools.ant.types.selectors.FilenameSelector,
BaseExtendSelector | abstract public class BaseExtendSelector extends BaseSelector implements ExtendFileSelector(Code) | | 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.
since: 1.5 |
Method Summary | |
protected Parameter[] | getParameters() Allows access to the parameters gathered and set within the
<custom> tag. | abstract public boolean | isSelected(File basedir, String filename, File file) Method that each selector will implement to create their
selection behaviour. | public void | setParameters(Parameter[] parameters) Set all the Parameters for this custom selector, collected by
the ExtendSelector class. |
parameters | protected Parameter[] parameters(Code) | | The passed in parameter array.
|
BaseExtendSelector | public BaseExtendSelector()(Code) | | Default constructor.
|
getParameters | protected Parameter[] getParameters()(Code) | | Allows access to the parameters gathered and set within the
<custom> tag.
the set of parameters defined for this selector |
isSelected | abstract public boolean isSelected(File basedir, String filename, File file) throws BuildException(Code) | | 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.
Parameters: basedir - A java.io.File object for the base directory Parameters: filename - The name of the file to check Parameters: file - A File object for this filename whether the file should be selected or not exception: BuildException - if an error occurs |
setParameters | public void setParameters(Parameter[] parameters)(Code) | | Set all the Parameters for this custom selector, collected by
the ExtendSelector class.
Parameters: parameters - the complete set of parameters for this selector |
|
|