Package org.apache.maven.plugins.clean
Interface Selector
-
- All Known Implementing Classes:
GlobSelector
interface SelectorDetermines whether a path is selected for deletion. The pathnames used for method parameters will be relative to some base directory and useFile.separatorCharas separator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancouldHoldSelected(java.lang.String pathname)Determines whether a directory could contain selected paths.booleanisSelected(java.lang.String pathname)Determines whether a path is selected for deletion.
-
-
-
Method Detail
-
isSelected
boolean isSelected(java.lang.String pathname)
Determines whether a path is selected for deletion.- Parameters:
pathname- The pathname to test, must not benull.- Returns:
trueif the given path is selected for deletion,falseotherwise.
-
couldHoldSelected
boolean couldHoldSelected(java.lang.String pathname)
Determines whether a directory could contain selected paths.- Parameters:
pathname- The directory pathname to test, must not benull.- Returns:
trueif the given directory might contain selected paths,falseif the directory will definitively not contain selected paths..
-
-