Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.services.ifs.search
Class IFSSearchHandler

java.lang.Object
  extended by com.ibm.etools.iseries.services.ifs.search.IFSSearchHandler

public class IFSSearchHandler
extends Object


Field Summary
protected  HashSet _alreadySearched
           
protected  AS400 _as400
           
protected  IHostSearchResultConfiguration _config
           
protected  int _depth
           
protected  SystemSearchFileNameMatcher _fileNameMatcher
           
protected  boolean _isCancelled
           
protected  boolean _isDone
           
protected  boolean _isFileSearch
           
protected  SystemSearchString _searchString
           
protected  SystemSearchStringMatcher _stringMatcher
           
 
Constructor Summary
IFSSearchHandler(IHostSearchResultConfiguration config, IFileService theFile)
           
 
Method Summary
 void cancel()
           
 void cancel(IProgressMonitor monitor)
           
protected  IHostSearchResult[] convert(String absPath, SystemSearchLineMatch[] lineMatches)
          Converts from system line matches to data elements that will be sent back.
protected  boolean doesFilePatternMatch(String compareStr)
           
protected  boolean hasSearchedDirectory(IFSHostFile file)
           
protected  void internalSearch(IFSHostFile theFile, int depth)
           
protected  boolean internalSearchWithinFile(String absPath, IFSHostFile theFile)
           
 void search(IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_alreadySearched

protected HashSet _alreadySearched

_isCancelled

protected boolean _isCancelled

_isDone

protected boolean _isDone

_depth

protected int _depth

_as400

protected AS400 _as400

_searchString

protected SystemSearchString _searchString

_stringMatcher

protected SystemSearchStringMatcher _stringMatcher

_fileNameMatcher

protected SystemSearchFileNameMatcher _fileNameMatcher

_isFileSearch

protected boolean _isFileSearch

_config

protected IHostSearchResultConfiguration _config
Constructor Detail

IFSSearchHandler

public IFSSearchHandler(IHostSearchResultConfiguration config,
                        IFileService theFile)
Method Detail

cancel

public void cancel()

hasSearchedDirectory

protected boolean hasSearchedDirectory(IFSHostFile file)

internalSearch

protected void internalSearch(IFSHostFile theFile,
                              int depth)

internalSearchWithinFile

protected boolean internalSearchWithinFile(String absPath,
                                           IFSHostFile theFile)

doesFilePatternMatch

protected boolean doesFilePatternMatch(String compareStr)

convert

protected IHostSearchResult[] convert(String absPath,
                                      SystemSearchLineMatch[] lineMatches)
Converts from system line matches to data elements that will be sent back.

Parameters:
deObj - the element representing the file for which matches have been found.
absPath - the absolute path of the file.
lineMatches - an array of line matches, or empty if no matches.

cancel

public void cancel(IProgressMonitor monitor)

search

public void search(IProgressMonitor monitor)

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.