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: SelectSelector [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.BaseSelectorContainer
               org.apache.tools.ant.types.selectors.SelectSelector

All Implemented Interfaces:
    SelectorContainer, FileSelector, Cloneable

This selector just holds one other selector and forwards all requests to it. It exists so that there is a single selector type that can exist outside of any targets, as an element of project. It overrides all of the reference stuff so that it works as expected. Note that this is the only selector you can reference.
Fields inherited from org.apache.tools.ant.types.DataType:
ref,  checked
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Constructor:
 public SelectSelector() 
Method from org.apache.tools.ant.types.selectors.SelectSelector Summary:
appendSelector,   getSelectors,   hasSelectors,   isSelected,   passesConditions,   selectorCount,   selectorElements,   setIf,   setIf,   setUnless,   setUnless,   toString,   verifySettings
Methods from org.apache.tools.ant.types.selectors.BaseSelectorContainer:
add,   addAnd,   addContains,   addContainsRegexp,   addCustom,   addDate,   addDepend,   addDepth,   addDifferent,   addFilename,   addMajority,   addModified,   addNone,   addNot,   addOr,   addPresent,   addReadable,   addSelector,   addSize,   addType,   addWritable,   appendSelector,   dieOnCircularReference,   getSelectors,   hasSelectors,   isSelected,   selectorCount,   selectorElements,   toString,   validate
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.SelectSelector Detail:
 public  void appendSelector(FileSelector selector) 
    Add a new selector into this container.
 public FileSelector[] getSelectors(Project p) 
    Returns the set of selectors as an array.
 public boolean hasSelectors() 
    Indicates whether there are any selectors here.
 public boolean isSelected(File basedir,
    String filename,
    File file) 
    Returns true (the file is selected) only if the if property (if any) exists, the unless property (if any) doesn't exist, and the contained selector (if any) selects the file. If there is no contained selector, return true (because we assume that the point was to test the if and unless conditions).
 public boolean passesConditions() 
    Ensures that the selector passes the conditions placed on it with if and unless.
 public int selectorCount() 
    Gives the count of the number of selectors in this container
 public Enumeration selectorElements() 
    Returns an enumerator for accessing the set of selectors.
 public  void setIf(Object ifProperty) 
    Sets the if attribute to an expression which must evaluate to true or the name of an existing property for the selector to select any files.
 public  void setIf(String ifProperty) 
    Sets the if attribute to an expression which must evaluate to true or the name of an existing property for the selector to select any files.
 public  void setUnless(Object unlessProperty) 
    Sets the unless attribute to an expression which must evaluate to false or the name of a property which cannot exist for the selector to select any files.
 public  void setUnless(String unlessProperty) 
    Sets the unless attribute to an expression which must evaluate to false or the name of a property which cannot exist for the selector to select any files.
 public String toString() 
 public  void verifySettings() 
    Makes sure that there is only one entry, sets an error message if not.