org.apache.tools.ant.types.selectors

Class OrSelector

public class OrSelector extends BaseSelectorContainer

This selector has a collection of other selectors, any of which have to select a file in order for this selector to select it.

Since: 1.5

Constructor Summary
OrSelector()
Default constructor.
Method Summary
booleanisSelected(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.
StringtoString()

Constructor Detail

OrSelector

public OrSelector()
Default constructor.

Method Detail

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.

Parameters: basedir the base directory the scan is being done from filename the name of the file to check file a java.io.File object for the filename that the selector can use

Returns: whether the file should be selected or not

toString

public String toString()

Returns: a string representation of the selector

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.