org.andromda.core.common
Class PathMatcher

java.lang.Object
  extended by org.andromda.core.common.PathMatcher

public class PathMatcher
extends java.lang.Object

Provides wild card matching on file paths (i.e. Cartridge.java will match *.java, etc).

Author:
Chad Brandon

Constructor Summary
PathMatcher()
           
 
Method Summary
static boolean wildcardMatch(java.lang.String path, java.lang.String pattern)
          Provides matching of simple wildcards.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathMatcher

public PathMatcher()
Method Detail

wildcardMatch

public static boolean wildcardMatch(java.lang.String path,
                                    java.lang.String pattern)
Provides matching of simple wildcards. (i.e. '*.java' etc.)

Parameters:
path - the path to match against.
pattern - the pattern to check if the path matches.
Returns:
true if the path matches the given pattern, false otherwise.


Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.