|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Searchable
Interface that used to implement search logic in all the search capable components.
| Method Summary | |
|---|---|
int |
search(java.util.regex.Pattern pattern)
Search for the pattern from the beginning of the document. |
int |
search(java.util.regex.Pattern pattern,
int startIndex)
Search for the pattern from the start index. |
int |
search(java.util.regex.Pattern pattern,
int startIndex,
boolean backward)
Search for the pattern from the start index. |
int |
search(java.lang.String searchString)
Search searchString from the beginning of a document. |
int |
search(java.lang.String searchString,
int startIndex)
Search searchString from the given position in a document. |
int |
search(java.lang.String searchString,
int startIndex,
boolean backward)
Search searchString in the given direction from the some position in a document. |
| Method Detail |
|---|
int search(java.lang.String searchString)
searchString from the beginning of a document.
searchString - String we should find in a document.
String or -1 if a match cannot be found.
int search(java.lang.String searchString,
int startIndex)
searchString from the given position in a document.
searchString - String we should find in a document.startIndex - Start position in a document or -1 if we want to search from the beginning.
String or -1 if a match cannot be found.
int search(java.lang.String searchString,
int startIndex,
boolean backward)
searchString in the given direction from the some position in a document.
searchString - String we should find in a document.startIndex - Start position in a document or -1 if we want to search from the beginning.backward - Indicates search direction, will search from the given position towards the
beginning of a document if this parameter is true.
String or -1 if a match cannot be found.int search(java.util.regex.Pattern pattern)
pattern - Pattern for search
Pattern or -1 if a match cannot be found.
int search(java.util.regex.Pattern pattern,
int startIndex)
pattern - Pattern for searchstartIndex - starting index of search. If -1 then start from the beginning
int search(java.util.regex.Pattern pattern,
int startIndex,
boolean backward)
pattern - Pattern for searchstartIndex - starting index of search. If -1 then start from the beginningbackward - indicates the direction if true then search is backwards
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||