org.apache.tools.ant.types.resources.selectors

Class Name

Implemented Interfaces:
ResourceSelector

public class Name
extends java.lang.Object
implements ResourceSelector

Name ResourceSelector.
Since:
Ant 1.7

Method Summary

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.

Method Details

getName

public String getName()
Get the pattern used by this Name ResourceSelector.
Returns:
the String selection pattern.

isCaseSensitive

public boolean isCaseSensitive()
Learn whether this Name ResourceSelector is case-sensitive.
Returns:
boolean case-sensitivity flag.

isSelected

public boolean isSelected(Resource r)
Return true if this Resource is selected.
Specified by:
isSelected in interface ResourceSelector
Parameters:
r - the Resource to check.
Returns:
whether the Resource was selected.

setCaseSensitive

public void setCaseSensitive(boolean b)
Set whether the name comparisons are case-sensitive.
Parameters:
b - boolean case-sensitivity flag.

setName

public void setName(String n)
Set the pattern to compare names against.
Parameters:
n - the pattern String to set.