Save This Page
Home » apache-ant-1.8.1 » org.apache.tools » ant » types » selectors » [javadoc | source]
org.apache.tools.ant.types.selectors
public class: ExtendSelector [javadoc | source]
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.ExtendSelector

All Implemented Interfaces:
    FileSelector, Cloneable

Selector that selects files by forwarding the request on to other classes.
Fields inherited from org.apache.tools.ant.types.DataType:
ref,  checked
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Constructor:
 public ExtendSelector() 
Method from org.apache.tools.ant.types.selectors.ExtendSelector Summary:
addParam,   createClasspath,   getClasspath,   isSelected,   selectorCreate,   setClassname,   setClasspath,   setClasspathref,   verifySettings
Methods from org.apache.tools.ant.types.selectors.BaseSelector:
getError,   isSelected,   setError,   validate,   verifySettings
Methods from org.apache.tools.ant.types.DataType:
checkAttributesAllowed,   checkChildrenAllowed,   circularReference,   clone,   dieOnCircularReference,   dieOnCircularReference,   dieOnCircularReference,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getDataTypeName,   getRefid,   invokeCircularReferenceCheck,   isChecked,   isReference,   noChildrenAllowed,   pushAndInvokeCircularReferenceCheck,   setChecked,   setRefid,   toString,   tooManyAttributes
Methods from org.apache.tools.ant.ProjectComponent:
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 org.apache.tools.ant.types.selectors.ExtendSelector Detail:
 public  void addParam(Parameter p) 
    Create new parameters to pass to custom selector.
 public final Path createClasspath() 
    Specify the classpath to use to load the Selector (nested element).
 public final Path getClasspath() 
    Get the classpath
 public boolean isSelected(File basedir,
    String filename,
    File file) throws BuildException 
    Allows the custom selector to choose whether to select a file. This is also where the Parameters are passed to the custom selector, since we know we must have them all by now. And since we must know both classpath and classname, creating the class is deferred to here as well.
 public  void selectorCreate() 
    Instantiates the identified custom selector class.
 public  void setClassname(String classname) 
    Sets the classname of the custom selector.
 public final  void setClasspath(Path classpath) 
    Set the classpath to load the classname specified using an attribute.
 public  void setClasspathref(Reference r) 
    Set the classpath to use for loading a custom selector by using a reference.
 public  void verifySettings() 
    These are errors specific to ExtendSelector only. If there are errors in the custom selector, it should throw a BuildException when isSelected() is called.