org.apache.tools.ant.types.resources.selectors
public class Name extends Object implements ResourceSelector
Since: Ant 1.7
Method Summary | |
---|---|
boolean | doesHandledirSep()
Whether the difference between / and \ (the two common
directory characters) is ignored.
|
String | getName()
Get the pattern used by this Name ResourceSelector. |
String | getRegex()
Get the regular expression used by this Name ResourceSelector. |
boolean | isCaseSensitive()
Learn whether this Name ResourceSelector is case-sensitive. |
boolean | isSelected(Resource r)
Return true if this Resource is selected. |
void | setCaseSensitive(boolean b)
Set whether the name comparisons are case-sensitive. |
void | setHandleDirSep(boolean handleDirSep)
Attribute specifing whether to ignore the difference
between / and \ (the two common directory characters). |
void | setName(String n)
Set the pattern to compare names against. |
void | setProject(Project p) |
void | setRegex(String r)
Set the regular expression to compare names against. |
Since: Ant 1.8.0
Returns: the String selection pattern.
Returns: the String selection pattern.
Since: Ant 1.8.0
Returns: boolean case-sensitivity flag.
Parameters: r the Resource to check.
Returns: whether the Resource was selected.
Parameters: b boolean case-sensitivity flag.
Parameters: handleDirSep a boolean, default is false.
Since: Ant 1.8.0
Parameters: n the pattern String to set.
Parameters: r the regex to set.
Since: Ant 1.8.0