Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.actions
Class SimpleWildcardTester


java.lang.Object
  extended by 
org.eclipse.ui.actions.SimpleWildcardTester

public final class SimpleWildcardTester
extends Object

Implements an algorithm for very simple pattern matching in a string. There is only one feature: "*" may be used at the start or the end of the pattern to represent "one or more characters".


Constructor Summary
SimpleWildcardTester ()
           
 
Method Summary
static boolean testWildcard ( String pattern, String str)
          Returns whether a string matches a particular pattern.
static boolean testWildcardIgnoreCase ( String pattern, String str)
          Returns whether a string matches a particular pattern.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleWildcardTester

public SimpleWildcardTester()
Method Detail

testWildcard

public static boolean testWildcard(
String pattern,
                                   
String str)
Returns whether a string matches a particular pattern.

Parameters:
pattern - the input pattern
str - the string to test
Returns:
true if a match occurs; falseotherwise.

testWildcardIgnoreCase

public static boolean testWildcardIgnoreCase(
String pattern,
                                             
String str)
Returns whether a string matches a particular pattern. Both string and pattern are converted to lower case before pattern matching occurs.

Parameters:
pattern - the input pattern
str - the string to test
Returns:
true if a match occurs; falseotherwise.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire