org.eclipse.rse.services.clientserver.search
Class SystemSearchStringMatcher
java.lang.Object
org.eclipse.rse.services.clientserver.search.SystemSearchStringMatcher
-
All Implemented Interfaces:
-
IMatcher,
ISystemSearchMatcher
-
public class SystemSearchStringMatcher
- extends
Object
- implements
ISystemSearchMatcher
A string matcher for search.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
SystemSearchStringMatcher
public SystemSearchStringMatcher(
String searchString,
boolean isCaseSensitive,
boolean isRegex)
- Constructor to create a string matcher.
-
Parameters:
-
searchString
- the search string. -
isCaseSensitive
- true
if the matching should be done in a case sensitive manner, false
otherwise. -
isRegex
- true
if the search string is a regular expression, false
otherwise.
-
Throws:
-
isSearchStringEmpty
public boolean isSearchStringEmpty()
- Returns whether the search string is empty.
-
-
-
Returns:
-
true
if the search string is empty, false
otherwise.
isSearchStringAsterisk
public boolean isSearchStringAsterisk()
- Returns whether the search string is "*".
-
-
-
Returns:
-
true
if the search string is "*", false
otherwise.
matches
public boolean matches(
String input)
- Returns whether there is a match for the given input. Returns
true
if the search string
is an empty string.
-
-
Specified by:
-
matches
in interface
IMatcher
-
-
Parameters:
-
input
- Input string to be matched
-
Returns:
-
true
if the input string matches this
matcher's criteria -
See Also:
-
org.eclipse.rse.services.clientserver.ISystemSearchMatcher#matches(java.lang.String)
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.