dsto.dfc.tools
Class WildcardResourceMatcher

java.lang.Object
  extended by dsto.dfc.tools.WildcardResourceMatcher
All Implemented Interfaces:
ResourceMatcher

public final class WildcardResourceMatcher
extends Object
implements ResourceMatcher

A resource matcher that matches via wilcard (file glob-like). Globbing is actually implemented using regular expressions, so it's not quite compatible.

Version:
$Revision$

Constructor Summary
WildcardResourceMatcher(String expression)
           
 
Method Summary
 boolean matches(String resourceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WildcardResourceMatcher

public WildcardResourceMatcher(String expression)
                        throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

matches

public boolean matches(String resourceName)
Specified by:
matches in interface ResourceMatcher


Copyright © 2008 Commonwealth of Australia