public class ExecutableSelector extends java.lang.Object implements FileSelector, ResourceSelector
Executable is defined in terms of Files.isExecutable(java.nio.file.Path), this means the selector will
accept any file that exists and is executable by the
application.
| Constructor and Description |
|---|
ExecutableSelector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSelected(java.io.File basedir,
java.lang.String filename,
java.io.File file)
Method that each selector will implement to create their
selection behaviour.
|
boolean |
isSelected(Resource r)
Return true if this Resource is selected.
|
public boolean isSelected(java.io.File basedir,
java.lang.String filename,
java.io.File file)
FileSelectorisSelected in interface FileSelectorbasedir - A java.io.File object for the base directoryfilename - The name of the file to checkfile - A File object for this filenamepublic boolean isSelected(Resource r)
ResourceSelectorisSelected in interface ResourceSelectorr - the Resource to check.