Remote Systems
v6.4.1

com.ibm.etools.systems.core.clientserver.search
Class SystemSearchLineMatch

java.lang.Object
  extended bycom.ibm.etools.systems.core.clientserver.search.SystemSearchLineMatch

public class SystemSearchLineMatch
extends Object

This class holds information about search results for a line of text. Its instance variables are public so that we can access them without having to call methods (for performance reasons).


Constructor Summary
SystemSearchLineMatch(String line, int lineNumber)
          Constructor to create a search result for a line.
 
Method Summary
 void addEntry(int startOffset, int endOffset)
          Adds an entry.
 String getLine()
          Returns the line that matched.
 int getLineNumber()
          Returns the line number of the line that matched.
 Iterator getMatches()
          Gets the iterator for the matches in the line.
 int getNumOfMatches()
          Gets the number of matches in the line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemSearchLineMatch

public SystemSearchLineMatch(String line,
                             int lineNumber)
Constructor to create a search result for a line.

Parameters:
line - the line.
lineNumber - the line number.
Method Detail

getLine

public String getLine()
Returns the line that matched.

Returns:
the line.

getLineNumber

public int getLineNumber()
Returns the line number of the line that matched.

Returns:
the line number.

getMatches

public Iterator getMatches()
Gets the iterator for the matches in the line.

Returns:
the iterator over the list of matches.

getNumOfMatches

public int getNumOfMatches()
Gets the number of matches in the line.

Returns:
the number of matches.

addEntry

public void addEntry(int startOffset,
                     int endOffset)
Adds an entry.

Parameters:
startOffset - the offset from the beginning of the file where the match begins.
endOffset - the offset from the beginning of the file where the match ends.

Remote Systems
v6.4.1

Copyright © 2005 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.