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

  




 

 

RSE
Release 3.0

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.0

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

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