public class Name extends java.lang.Object implements ResourceSelector
Constructor and Description |
---|
Name() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 ResourceSelector
r
- the Resource to check.