Lines Matching refs:template
237 * Returns true if name matches against template.<p>
243 * The <code>template</code> parameter
246 private boolean isMatched(String name, String template) {
248 return matchAllWildcards(name, template);
250 return matchLeftmostWildcard(name, template);
258 * Returns true if name matches against template.<p>
268 String template) {
270 template = template.toLowerCase();
272 StringTokenizer templateSt = new StringTokenizer(template, ".");
289 * Returns true if name matches against template.<p>
298 String template) {
300 template = template.toLowerCase();
303 int templateIdx = template.indexOf(".");
307 templateIdx = template.length();
312 template.substring(0, templateIdx))) {
315 return template.substring(templateIdx).equals(
324 * Returns true if the name matches against the template that may
327 private static boolean matchWildCards(String name, String template) {
329 int wildcardIdx = template.indexOf("*");
331 return name.equals(template);
335 String afterWildcard = template;
339 // match in sequence the non-wildcard chars in the template.