com.cometway.text
Class TextFinderResult

java.lang.Object
  extended by com.cometway.text.TextFinderResult

public class TextFinderResult
extends java.lang.Object

Represents a range of text returned by the ITextFinder interface.


Constructor Summary
TextFinderResult()
          Both starting and ending indexed are set to 0 (zero) by default.
TextFinderResult(int start, int end)
           
 
Method Summary
 int getEnd()
          Returns the ending index of the text result.
 int getStart()
          Returns the starting index of the text result.
 void setEnd(int end)
          Sets the ending index of the text result.
 void setStart(int start)
          Sets the starting index of the text result.
 java.lang.String toString()
          Returns the text result as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextFinderResult

public TextFinderResult()
Both starting and ending indexed are set to 0 (zero) by default.


TextFinderResult

public TextFinderResult(int start,
                        int end)
Parameters:
start - the starting index of the text result.
end - the ending index of the text result.
Method Detail

getStart

public int getStart()
Returns the starting index of the text result.


getEnd

public int getEnd()
Returns the ending index of the text result.


setStart

public void setStart(int start)
Sets the starting index of the text result.

Parameters:
start - the starting index of the text result.

setEnd

public void setEnd(int end)
Sets the ending index of the text result.

Parameters:
end - the ending index of the text result.

toString

public java.lang.String toString()
Returns the text result as a String.

Overrides:
toString in class java.lang.Object