Class BaseExtendSelector
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.types.DataType
- 
- org.apache.tools.ant.types.selectors.BaseSelector
- 
- org.apache.tools.ant.types.selectors.BaseExtendSelector
 
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable,- Parameterizable,- ResourceSelector,- ExtendFileSelector,- FileSelector
 - Direct Known Subclasses:
- ContainsRegexpSelector,- ContainsSelector,- DateSelector,- DepthSelector,- FilenameSelector,- ModifiedSelector,- SizeSelector,- TypeSelector
 
 public abstract class BaseExtendSelector extends BaseSelector implements ExtendFileSelector 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
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected Parameter[]parametersThe passed in parameter array.- 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description BaseExtendSelector()
 - 
Method SummaryModifier and Type Method Description protected Parameter[]getParameters()Allows access to the parameters gathered and set within the <custom> tag.abstract booleanisSelected(java.io.File basedir, java.lang.String filename, java.io.File file)Method that each selector will implement to create their selection behaviour.voidsetParameters(Parameter... parameters)Set all the Parameters for this custom selector, collected by the ExtendSelector class.- 
Methods inherited from class org.apache.tools.ant.types.selectors.BaseSelectorgetError, setError, setError, validate, verifySettings
 - 
Methods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 - 
Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tools.ant.types.selectors.FileSelectorisSelected
 
- 
 
- 
- 
- 
Field Detail- 
parametersprotected Parameter[] parameters The passed in parameter array.
 
- 
 - 
Method Detail- 
setParameterspublic void setParameters(Parameter... parameters) Set all the Parameters for this custom selector, collected by the ExtendSelector class.- Specified by:
- setParametersin interface- Parameterizable
- Parameters:
- parameters- the complete set of parameters for this selector
 
 - 
getParametersprotected Parameter[] getParameters() Allows access to the parameters gathered and set within the <custom> tag.- Returns:
- the set of parameters defined for this selector
 
 - 
isSelectedpublic abstract boolean isSelected(java.io.File basedir, java.lang.String filename, java.io.File file) throws BuildExceptionMethod 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.- Specified by:
- isSelectedin interface- FileSelector
- Specified by:
- isSelectedin class- BaseSelector
- Parameters:
- basedir- A java.io.File object for the base directory
- filename- The name of the file to check
- file- A File object for this filename
- Returns:
- whether the file should be selected or not
- Throws:
- BuildException- if an error occurs
 
 
- 
 
-