| org.apache.tools.ant.types.selectors.BaseSelector org.apache.tools.ant.types.selectors.BaseExtendSelector org.apache.tools.ant.types.selectors.ContainsSelector
ContainsSelector | public class ContainsSelector extends BaseExtendSelector implements ResourceSelector(Code) | | Selector that filters files/resources based on whether they contain a
particular string.
since: 1.5 |
Constructor Summary | |
public | ContainsSelector() Creates a new ContainsSelector instance. |
CASE_KEY | final public static String CASE_KEY(Code) | | Used for parameterized custom selector
|
CONTAINS_KEY | final public static String CONTAINS_KEY(Code) | | Used for parameterized custom selector
|
EXPRESSION_KEY | final public static String EXPRESSION_KEY(Code) | | Key to used for parameterized custom selector
|
WHITESPACE_KEY | final public static String WHITESPACE_KEY(Code) | | Used for parameterized custom selector
|
ContainsSelector | public ContainsSelector()(Code) | | Creates a new ContainsSelector instance.
|
isSelected | public boolean isSelected(File basedir, String filename, File file)(Code) | | The heart of the matter. This is where the selector gets to decide
on the inclusion of a file in a particular fileset.
Parameters: basedir - the base directory the scan is being done from Parameters: filename - is the name of the file to check Parameters: file - is a java.io.File object the selector can use whether the file should be selected or not |
isSelected | public boolean isSelected(Resource r)(Code) | | The heart of the matter. This is where the selector gets to decide
on the inclusion of a Resource.
Parameters: r - the Resource to check. whether the Resource is selected. |
setCasesensitive | public void setCasesensitive(boolean casesensitive)(Code) | | Whether to ignore case in the string being searched.
Parameters: casesensitive - whether to pay attention to case sensitivity |
setIgnorewhitespace | public void setIgnorewhitespace(boolean ignorewhitespace)(Code) | | Whether to ignore whitespace in the string being searched.
Parameters: ignorewhitespace - whether to ignore any whitespace(spaces, tabs, etc.) in the searchstring |
setParameters | public void setParameters(Parameter[] parameters)(Code) | | When using this as a custom selector, this method will be called.
It translates each parameter into the appropriate setXXX() call.
Parameters: parameters - the complete set of parameters for this selector |
setText | public void setText(String contains)(Code) | | The string to search for within a file.
Parameters: contains - the string that a file must contain to be selected. |
toString | public String toString()(Code) | | a string describing this object |
verifySettings | public void verifySettings()(Code) | | Checks to make sure all settings are kosher. In this case, it
means that the pattern attribute has been set.
|
Fields inherited from org.apache.tools.ant.types.selectors.BaseExtendSelector | protected Parameter[] parameters(Code)(Java Doc)
|
|
|