KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > jayasoft > ivy > matcher > AnyMatcher


1 /*
2  * This file is subject to the licence found in LICENCE.TXT in the root directory of the project.
3  * Copyright Jayasoft 2005 - All rights reserved
4  *
5  * #SNAPSHOT#
6  */

7 package fr.jayasoft.ivy.matcher;
8
9 public class AnyMatcher implements Matcher {
10     private final static Matcher INSTANCE = new AnyMatcher();
11     
12     public static Matcher getInstance() {
13         return INSTANCE;
14     }
15     
16     private AnyMatcher() {
17         
18     }
19
20     public boolean matches(String JavaDoc str) {
21         return true;
22     }
23
24     public boolean isExact() {
25         return false;
26     }
27
28 }
29
Popular Tags