Class Name
- java.lang.Object
- 
- org.apache.tools.ant.types.resources.selectors.Name
 
- 
- All Implemented Interfaces:
- ResourceSelector
 
 public class Name extends java.lang.Object implements ResourceSelector Name ResourceSelector.- Since:
- Ant 1.7
 
- 
- 
Constructor SummaryConstructors Constructor Description Name()
 - 
Method SummaryModifier and Type Method Description booleandoesHandledirSep()Whether the difference between / and \ (the two common directory characters) is ignored.java.lang.StringgetName()Get the pattern used by this Name ResourceSelector.java.lang.StringgetRegex()Get the regular expression used by this Name ResourceSelector.booleanisCaseSensitive()Learn whether this Name ResourceSelector is case-sensitive.booleanisSelected(Resource r)Return true if this Resource is selected.voidsetCaseSensitive(boolean b)Set whether the name comparisons are case-sensitive.voidsetHandleDirSep(boolean handleDirSep)Attribute specifying whether to ignore the difference between / and \ (the two common directory characters).voidsetName(java.lang.String n)Set the pattern to compare names against.voidsetProject(Project p)voidsetRegex(java.lang.String r)Set the regular expression to compare names against.
 
- 
- 
- 
Method Detail- 
setProjectpublic void setProject(Project p) 
 - 
setNamepublic void setName(java.lang.String n) Set the pattern to compare names against.- Parameters:
- n- the pattern String to set.
 
 - 
getNamepublic java.lang.String getName() Get the pattern used by this Name ResourceSelector.- Returns:
- the String selection pattern.
 
 - 
setRegexpublic void setRegex(java.lang.String r) Set the regular expression to compare names against.- Parameters:
- r- the regex to set.
- Since:
- Ant 1.8.0
 
 - 
getRegexpublic java.lang.String getRegex() Get the regular expression used by this Name ResourceSelector.- Returns:
- the String selection pattern.
- Since:
- Ant 1.8.0
 
 - 
setCaseSensitivepublic void setCaseSensitive(boolean b) Set whether the name comparisons are case-sensitive.- Parameters:
- b- boolean case-sensitivity flag.
 
 - 
isCaseSensitivepublic boolean isCaseSensitive() Learn whether this Name ResourceSelector is case-sensitive.- Returns:
- boolean case-sensitivity flag.
 
 - 
setHandleDirSeppublic 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
 
 - 
doesHandledirSeppublic boolean doesHandledirSep() Whether the difference between / and \ (the two common directory characters) is ignored.- Returns:
- boolean
- Since:
- Ant 1.8.0
 
 - 
isSelectedpublic boolean isSelected(Resource r) Return true if this Resource is selected.- Specified by:
- isSelectedin interface- ResourceSelector
- Parameters:
- r- the Resource to check.
- Returns:
- whether the Resource was selected.
 
 
- 
 
-