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