org.apache.maven.shared.utils.io
Class MatchPattern

java.lang.Object
  extended by org.apache.maven.shared.utils.io.MatchPattern

public class MatchPattern
extends Object

Describes a match target for SelectorUtils.

Significantly more efficient than using strings, since re-evaluation and re-tokenizing is avoided.

Author:
Kristian Rosenvold

Method Summary
static MatchPattern fromString(String source)
           
 String[] getTokenizedPathString()
           
 boolean matchPath(String str, boolean isCaseSensitive)
           
 boolean matchPatternStart(String str, boolean isCaseSensitive)
           
 boolean startsWith(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

matchPath

public boolean matchPath(String str,
                         boolean isCaseSensitive)

matchPatternStart

public boolean matchPatternStart(@Nonnull
                                 String str,
                                 boolean isCaseSensitive)

getTokenizedPathString

public String[] getTokenizedPathString()

startsWith

public boolean startsWith(String string)

fromString

public static MatchPattern fromString(String source)


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.