org.eclipse.rse.services.clientserver.search
Class SystemSearchUtil
java.lang.Object
org.eclipse.rse.services.clientserver.search.SystemSearchUtil
-
public class SystemSearchUtil
- extends
Object
A utility class useful for search. It is a singleton.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
FILE_NAMES_SEP_STRING
public static
String FILE_NAMES_SEP_STRING
getInstance
public static
SystemSearchUtil getInstance()
- Gets the singleton instance of the class.
-
-
Returns:
- the singleton instance.
isValidRegex
public boolean isValidRegex(
String regexString)
- Check whether a regex string is valid.
-
-
Parameters:
-
regexString
- the regex string.
-
Returns:
-
true
if the regex string is valid, false
otherwise.
typesStringToSet
public
Set typesStringToSet(
String fileNamesString)
- Returns the file names from the given file names string.
-
-
Parameters:
-
fileNamesString
- the file names string.
-
Returns:
- a set of file names, or an empty set if none.
-
Throws:
-
NullPointerException
- if the file names string is null
.
typesStringToList
public
List typesStringToList(
String fileNamesString)
- Returns the file names from the given file names string.
-
-
Parameters:
-
fileNamesString
- the file names string.
-
Returns:
- a list of file names, or an empty list if none.
-
Throws:
-
NullPointerException
- if the file names string is null
.
typesListToString
public
String typesListToString(
List types)
- Convert list of types to string.
-
-
Parameters:
-
types
- the list of types.
-
Returns:
- the string representing the list of types.
typesSetToString
public
String typesSetToString(
Set types)
- Convert set of types to string.
-
-
Parameters:
-
types
- the set of types.
-
Returns:
- the string representing the set of types.
typesIterToString
public
String typesIterToString(
Iterator iter)
- Convert iterator of types to string.
-
-
Parameters:
-
iter
- iterator for types.
-
Returns:
- the string representing the set of types.
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.