org.apache.tools.ant.types.selectors
Class AndSelector
- FileSelector, SelectorContainer
This selector has a collection of other selectors, all of which have to
select a file in order for this selector to select it.
boolean | isSelected(File basedir, String filename, File file) - Returns true (the file is selected) only if all other selectors
agree that the file should be selected.
|
String | toString()
|
add , addAnd , addContains , addContainsRegexp , addCustom , addDate , addDepend , addDepth , addDifferent , addFilename , addMajority , addModified , addNone , addNot , addOr , addPresent , addSelector , addSize , addType , appendSelector , getSelectors , hasSelectors , isSelected , selectorCount , selectorElements , toString , validate |
checkAttributesAllowed , checkChildrenAllowed , circularReference , dieOnCircularReference , getCheckedRef , getDescription , getRefid , isChecked , isReference , noChildrenAllowed , setChecked , setDescription , setRefid , tooManyAttributes |
AndSelector
public AndSelector()
Default constructor.
isSelected
public boolean isSelected(File basedir,
String filename,
File file)
Returns true (the file is selected) only if all other selectors
agree that the file should be selected.
- isSelected in interface FileSelector
- isSelected in interface BaseSelectorContainer
basedir
- the base directory the scan is being done fromfilename
- the name of the file to checkfile
- a java.io.File object for the filename that the selector
can use
- whether the file should be selected or not
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.