|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.types.resources.selectors.Name
public class Name
Name ResourceSelector.
| Constructor Summary | |
|---|---|
Name()
|
|
| Method Summary | |
|---|---|
boolean |
doesHandledirSep()
Whether the difference between / and \ (the two common directory characters) is ignored. |
java.lang.String |
getName()
Get the pattern used by this Name ResourceSelector. |
java.lang.String |
getRegex()
Get the regular expression 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 |
setHandleDirSep(boolean handleDirSep)
Attribute specifying whether to ignore the difference between / and \ (the two common directory characters). |
void |
setName(java.lang.String n)
Set the pattern to compare names against. |
void |
setProject(Project p)
|
void |
setRegex(java.lang.String r)
Set the regular expression to compare names against. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Name()
| Method Detail |
|---|
public void setProject(Project p)
public void setName(java.lang.String n)
n - the pattern String to set.public java.lang.String getName()
public void setRegex(java.lang.String r)
r - the regex to set.public java.lang.String getRegex()
public void setCaseSensitive(boolean b)
b - boolean case-sensitivity flag.public boolean isCaseSensitive()
public void setHandleDirSep(boolean handleDirSep)
handleDirSep - a boolean, default is false.public boolean doesHandledirSep()
public boolean isSelected(Resource r)
isSelected in interface ResourceSelectorr - the Resource to check.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||