org.apache.tools.ant.types.selectors
Class OrSelector
- Cloneable, FileSelector, SelectorContainer
This selector has a collection of other selectors, any 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) if any of the 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 , clone , dieOnCircularReference , dieOnCircularReference , dieOnCircularReference , getCheckedRef , getCheckedRef , getCheckedRef , getCheckedRef , getDataTypeName , getRefid , invokeCircularReferenceCheck , isChecked , isReference , noChildrenAllowed , setChecked , setRefid , toString , tooManyAttributes |
OrSelector
public OrSelector()
Default constructor.
isSelected
public boolean isSelected(File basedir,
String filename,
File file)
Returns true (the file is selected) if any of the 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