org.netxms.base
Class Glob

java.lang.Object
  extended by org.netxms.base.Glob

public class Glob
extends java.lang.Object

Glob matcher


Constructor Summary
Glob()
           
 
Method Summary
static boolean match(java.lang.String pattern, java.lang.String string)
          Match string against glob
static boolean matchIgnoreCase(java.lang.String pattern, java.lang.String string)
          Match string against glob ignoring characters case
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Glob

public Glob()
Method Detail

match

public static boolean match(java.lang.String pattern,
                            java.lang.String string)
Match string against glob

Parameters:
pattern - glob
string - string to match
Returns:
true if string matches glob

matchIgnoreCase

public static boolean matchIgnoreCase(java.lang.String pattern,
                                      java.lang.String string)
Match string against glob ignoring characters case

Parameters:
pattern - glob
string - string to match
Returns:
true if string matches glob


Copyright © 2013. All Rights Reserved.