org.andromda.core.common
Class PathMatcher
java.lang.Object
org.andromda.core.common.PathMatcher
public class PathMatcher
- extends Object
Provides wild card matching on file paths (i.e. Cartridge.java will match *.java, etc).
- Author:
- Chad Brandon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathMatcher
public PathMatcher()
wildcardMatch
public static boolean wildcardMatch(String path,
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-2012 AndroMDA.org. All Rights Reserved.