org.apache.tools.ant.types.selectors
public class DepthSelector extends BaseExtendSelector
Since: 1.5
Field Summary | |
---|---|
int | max max attribute |
int | min min attribute |
static String | MAX_KEY Used for parameterized custom selector |
static String | MIN_KEY Used for parameterized custom selector |
Constructor Summary | |
---|---|
DepthSelector()
Creates a new DepthSelector instance.
|
Method Summary | |
---|---|
boolean | isSelected(File basedir, String filename, File file)
The heart of the matter. |
void | setMax(int max)
The minimum depth below the basedir before a file is selected.
|
void | setMin(int min)
The minimum depth below the basedir before a file is selected.
|
void | setParameters(Parameter[] parameters)
When using this as a custom selector, this method will be called.
|
String | toString() |
void | verifySettings()
Checks to make sure all settings are kosher. |
DepthSelector
instance.
Parameters: basedir the base directory the scan is being done from filename is the name of the file to check file is a java.io.File object the selector can use
Returns: whether the file should be selected or not
Parameters: max maximum directory levels below basedir to go
Parameters: min minimum directory levels below basedir to go
Parameters: parameters the complete set of parameters for this selector
Returns: a string describing this object