com.mindtree.techworks.insight.receiver
Class WildCardMatcher

java.lang.Object
  extended by com.mindtree.techworks.insight.receiver.WildCardMatcher

public final class WildCardMatcher
extends java.lang.Object

The WildCardMatcher class matches wildcard expression that are normally file names.

Version:
1.0, 06/01/03
Author:
m1003308(Siva Sajja)

Constructor Summary
WildCardMatcher(java.lang.String regexp)
          Constructor for this class
 
Method Summary
static boolean hasWildCardEntries(java.lang.String input)
          Checks for any wild card characters in the given string.
 boolean matches(java.lang.String name)
          Matches the give string with the regular expression passed with the constructor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WildCardMatcher

public WildCardMatcher(java.lang.String regexp)
Constructor for this class

Parameters:
regexp - the regular expression to match against
Method Detail

matches

public boolean matches(java.lang.String name)
Matches the give string with the regular expression passed with the constructor

Parameters:
name - The name to be matched with the regular expression.
Returns:
true if it matches the expresson, false otherwise

hasWildCardEntries

public static boolean hasWildCardEntries(java.lang.String input)
Checks for any wild card characters in the given string.

Parameters:
input - The input string.
Returns:
true if the input string has any wildcard characters, false otherwise


Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.