RSE
Release 3.4

org.eclipse.rse.services.clientserver.search
Class SystemSearchUtil

java.lang.Object
  extended by org.eclipse.rse.services.clientserver.search.SystemSearchUtil

public class SystemSearchUtil
extends Object

A utility class useful for search. It is a singleton.


Field Summary
static String FILE_NAMES_SEP_STRING
           
 
Method Summary
static SystemSearchUtil getInstance()
          Gets the singleton instance of the class.
 boolean isValidRegex(String regexString)
          Check whether a regex string is valid.
 String typesIterToString(Iterator iter)
          Convert iterator of types to string.
 String typesListToString(List types)
          Convert list of types to string.
 String typesSetToString(Set types)
          Convert set of types to string.
 List typesStringToList(String fileNamesString)
          Returns the file names from the given file names string.
 Set typesStringToSet(String fileNamesString)
          Returns the file names from the given file names string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_NAMES_SEP_STRING

public static String FILE_NAMES_SEP_STRING
Method Detail

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.

RSE
Release 3.4

Copyright (c) IBM Corporation and others 2000, 2012. All Rights Reserved.