Get the pattern used by this Name ResourceSelector.returnthe String selection pattern. return pattern;
return pattern;
Learn whether this Name ResourceSelector is case-sensitive.returnboolean case-sensitivity flag. return cs;
return cs;
Return true if this Resource is selected.paramr the Resource to check.returnwhether the Resource was selected. String n = r.getName(); if (SelectorUtils.match(pattern, n, cs)) { return true; } String s = r.toString(); return s.equals(n) ? false : SelectorUtils.match(pattern, s, cs);
String n = r.getName(); if (SelectorUtils.match(pattern, n, cs)) { return true; } String s = r.toString(); return s.equals(n) ? false : SelectorUtils.match(pattern, s, cs);
Set whether the name comparisons are case-sensitive.paramb boolean case-sensitivity flag. cs = b;
cs = b;
Set the pattern to compare names against.paramn the pattern String to set. pattern = n;
pattern = n;