RSE
Release 3.0

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

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

public class SystemSearchMatch
extends Object

This class holds information about a particular match.


Constructor Summary
SystemSearchMatch(int startOffset, int endOffset)
          Constructor for system search match.
 
Method Summary
 int getEndOffset()
          Gets offset from the beginning of the file where the match ends.
 int getLength()
          Gets the length of the match.
 int getStartOffset()
          Gets offset from the beginning of the file where the match begins.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemSearchMatch

public SystemSearchMatch(int startOffset,
                         int endOffset)
Constructor for system search match.

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.
Method Detail

getStartOffset

public int getStartOffset()
Gets offset from the beginning of the file where the match begins.

Returns:
the offset where the match begins.

getEndOffset

public int getEndOffset()
Gets offset from the beginning of the file where the match ends.

Returns:
the offset where the match ends.

getLength

public int getLength()
Gets the length of the match. Start offset subtracted from end offset plus 1.

Returns:
the length of the match.

RSE
Release 3.0

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