|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a handle to a search result.
Field Summary | |
---|---|
static String |
Copyright
|
static String |
SEARCH_RESULT_CLOSE_DELIMITER
|
static String |
SEARCH_RESULT_DELIMITER
|
static String |
SEARCH_RESULT_INDEX_DELIMITER
|
static String |
SEARCH_RESULT_OPEN_DELIMITER
|
Method Summary | |
---|---|
void |
addMatch(int startOffset,
int endOffset)
Add a match to the result. |
int |
getCharEnd(int matchIndex)
Gets the char end offset for the given match index. |
int |
getCharStart(int matchIndex)
Gets the char start offset for the given match index. |
int |
getIndex()
Gets the index of this search result in the context of its parent. |
SystemSearchString |
getMatchingSearchString()
Gets the search string that this result matches. |
String |
getText()
Gets the text to display for a search result. |
int |
numOfMatches()
Gets the number of matches in this line. |
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteLineReference |
---|
getAbsolutePath, getCharEnd, getCharStart, getLine, getParent |
Field Detail |
public static final String Copyright
public static final String SEARCH_RESULT_DELIMITER
public static final String SEARCH_RESULT_OPEN_DELIMITER
public static final String SEARCH_RESULT_CLOSE_DELIMITER
public static final String SEARCH_RESULT_INDEX_DELIMITER
Method Detail |
public String getText()
public int getIndex()
public SystemSearchString getMatchingSearchString()
public void addMatch(int startOffset, int endOffset)
startOffset
- the char start offset, from the beginning of the file.endOffset
- the char end offset, from the beginning of the file.public int numOfMatches()
public int getCharStart(int matchIndex)
matchIndex
- the match index. For example, to get the start offset for the first match, specify 0.
public int getCharEnd(int matchIndex)
matchIndex
- the match index. For example, to get the end offset for the first match, specify 0.
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |