Save This Page
Home » apache-ant-1.8.1 » » ant » types » selectors » [javadoc | source]
abstract public class: BaseExtendSelector [javadoc | source]

All Implemented Interfaces:
    ExtendFileSelector, FileSelector, Cloneable

Direct Known Subclasses:
    DepthSelector, ContainsSelector, DateSelector, FilenameSelector, ModifiedSelector, TypeSelector, SizeSelector, ContainsRegexpSelector

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.
Field Summary
protected  Parameter[] parameters    The passed in parameter array. 
Fields inherited from
ref,  checked
Fields inherited from
project,  location,  description
 public BaseExtendSelector() 
Method from Summary:
getParameters,   isSelected,   setParameters
Methods from
getError,   isSelected,   setError,   validate,   verifySettings
Methods from
checkAttributesAllowed,   checkChildrenAllowed,   circularReference,   clone,   dieOnCircularReference,   dieOnCircularReference,   dieOnCircularReference,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getDataTypeName,   getRefid,   invokeCircularReferenceCheck,   isChecked,   isReference,   noChildrenAllowed,   pushAndInvokeCircularReferenceCheck,   setChecked,   setRefid,   toString,   tooManyAttributes
Methods from
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from Detail:
 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) 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.
 public  void setParameters(Parameter[] parameters) 
    Set all the Parameters for this custom selector, collected by the ExtendSelector class.