Top Description Fields Constructors Methods
org.apache.tools.ant.types.resources.selectors

public Class Name

extends Object
implements ResourceSelector
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.types.resources.selectors.ResourceSelector
Imports
org.apache.tools.ant.Project, org.apache.tools.ant.types.RegularExpression, .Resource, org.apache.tools.ant.types.selectors.SelectorUtils, org.apache.tools.ant.util.regexp.Regexp, .RegexpUtil

Name ResourceSelector.
Since
Ant 1.7

Field Summary

Modifier and TypeField and Description
private boolean
private Regexp
private boolean
private String
private Project
private RegularExpression
private String

Constructor Summary

AccessConstructor and Description
public
Name()

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

boolean
doesHandledirSep
()

Whether the difference between / and \ (the two common directory characters) is ignored.

public String

Returns:

the String selection pattern.
getName
()

Get the pattern used by this Name ResourceSelector.

public String

Returns:

the String selection pattern.
getRegex
()

Get the regular expression used by this Name ResourceSelector.

public boolean

Returns:

boolean case-sensitivity flag.
isCaseSensitive
()

Learn whether this Name ResourceSelector is case-sensitive.

public boolean

Returns:

whether the Resource was selected.
isSelected
(Resource
the Resource to check.
r
)

Implements org.apache.tools.ant.types.resources.selectors.ResourceSelector.isSelected.

Return true if this Resource is selected.
private boolean
private String
public void
setCaseSensitive(boolean
boolean case-sensitivity flag.
b
)

Set whether the name comparisons are case-sensitive.

public void
setHandleDirSep(boolean
a boolean, default is false.
handleDirSep
)

Attribute specifying whether to ignore the difference between / and \ (the two common directory characters).

public void
setName(String
the pattern String to set.
n
)

Set the pattern to compare names against.

public void
public void
setRegex(String
the regex to set.
r
)

Set the regular expression to compare names against.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

csback to summary
private boolean cs
expressionback to summary
private Regexp expression
handleDirSepback to summary
private boolean handleDirSep
patternback to summary
private String pattern
projectback to summary
private Project project
regback to summary
private RegularExpression reg
regexback to summary
private String regex

Constructor Detail

Nameback to summary
public Name()

Method Detail

doesHandledirSepback to summary
public boolean doesHandledirSep()

Whether the difference between / and \ (the two common directory characters) is ignored.

Returns:boolean

boolean

Since
Ant 1.8.0
getNameback to summary
public String getName()

Get the pattern used by this Name ResourceSelector.

Returns:String

the String selection pattern.

getRegexback to summary
public String getRegex()

Get the regular expression used by this Name ResourceSelector.

Returns:String

the String selection pattern.

Since
Ant 1.8.0
isCaseSensitiveback to summary
public boolean isCaseSensitive()

Learn whether this Name ResourceSelector is case-sensitive.

Returns:boolean

boolean case-sensitivity flag.

isSelectedback to summary
public boolean isSelected(Resource r)

Implements org.apache.tools.ant.types.resources.selectors.ResourceSelector.isSelected.

Return true if this Resource is selected.

Parameters
r:Resource

the Resource to check.

Returns:boolean

whether the Resource was selected.

matchesback to summary
private boolean matches(String name)
modifyback to summary
private String modify(String s)
setCaseSensitiveback to summary
public void setCaseSensitive(boolean b)

Set whether the name comparisons are case-sensitive.

Parameters
b:boolean

boolean case-sensitivity flag.

setHandleDirSepback to summary
public void setHandleDirSep(boolean handleDirSep)

Attribute specifying whether to ignore the difference between / and \ (the two common directory characters).

Parameters
handleDirSep:boolean

a boolean, default is false.

Since
Ant 1.8.0
setNameback to summary
public void setName(String n)

Set the pattern to compare names against.

Parameters
n:String

the pattern String to set.

setProjectback to summary
public void setProject(Project p)
setRegexback to summary
public void setRegex(String r)

Set the regular expression to compare names against.

Parameters
r:String

the regex to set.

Since
Ant 1.8.0