org.apache.tools.ant.types.resources.selectors
Class Name
java.lang.Objectorg.apache.tools.ant.types.resources.selectors.Name
- ResourceSelector
public class Name
extends java.lang.Object
Name ResourceSelector.
String | getName()- Get the pattern 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 | setName(String n)- Set the pattern to compare names against.
|
getName
public String getName()
Get the pattern used by this Name ResourceSelector.
- the String selection pattern.
isCaseSensitive
public boolean isCaseSensitive()
Learn whether this Name ResourceSelector is case-sensitive.
- boolean case-sensitivity flag.
isSelected
public boolean isSelected(Resource r)
Return true if this Resource is selected.
- isSelected in interface ResourceSelector
r - the Resource to check.
- whether the Resource was selected.
setCaseSensitive
public void setCaseSensitive(boolean b)
Set whether the name comparisons are case-sensitive.
b - boolean case-sensitivity flag.
setName
public void setName(String n)
Set the pattern to compare names against.
n - the pattern String to set.