|
Gephi Toolkit Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gephi.datalab.impl.SearchReplaceControllerImpl
public class SearchReplaceControllerImpl
Implementation of the SearchReplaceController interface declared in the Data Laboratory API.
SearchReplaceController| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.gephi.datalab.api.SearchReplaceController |
|---|
SearchReplaceController.SearchOptions, SearchReplaceController.SearchResult |
| Constructor Summary | |
|---|---|
SearchReplaceControllerImpl()
|
|
| Method Summary | |
|---|---|
boolean |
canReplace(SearchReplaceController.SearchResult result)
Indicates if a SearchResult can be replaced or not. |
SearchReplaceController.SearchResult |
findNext(SearchReplaceController.SearchOptions searchOptions)
Finds next (or first) ocurrence for the given search options. |
SearchReplaceController.SearchResult |
findNext(SearchReplaceController.SearchResult result)
Finds next ocurrence for the given search options contained in a SearchResult. |
SearchReplaceController.SearchResult |
replace(SearchReplaceController.SearchResult result,
java.lang.String replacement)
Replaces a SearchResult with the given replacement String. |
int |
replaceAll(SearchReplaceController.SearchOptions searchOptions,
java.lang.String replacement)
Replaces all SearchResults that can be replaced with the given search options from the beginning to the end of the data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchReplaceControllerImpl()
| Method Detail |
|---|
public SearchReplaceController.SearchResult findNext(SearchReplaceController.SearchOptions searchOptions)
SearchReplaceControllerFinds next (or first) ocurrence for the given search options.
Returns a SearchResult instance with the details or null if the search was not successful.
Modifies the given search options in order to match the next result the next time findNext is called
findNext in interface SearchReplaceControllersearchOptions - Options of the search
public SearchReplaceController.SearchResult findNext(SearchReplaceController.SearchResult result)
SearchReplaceControllerFinds next ocurrence for the given search options contained in a SearchResult.
Returns a SearchResult instance with the details or null if the search was not successful.
Modifies the given search options in order to match the next result the next time findNext is called
findNext in interface SearchReplaceControllerresult - Last result of the search
public boolean canReplace(SearchReplaceController.SearchResult result)
SearchReplaceControllerIndicates if a SearchResult can be replaced or not.
Computed columns and id columns cannot be replaced.
canReplace in interface SearchReplaceControllerresult - SearchResult to check before replacing
public SearchReplaceController.SearchResult replace(SearchReplaceController.SearchResult result,
java.lang.String replacement)
SearchReplaceControllerReplaces a SearchResult with the given replacement String.
Also tries to find next search result and returns it.
If the data has changed and the replacement can't be done it will just return next SearchResult calling findNext.
If useRegexReplaceMode is enabled, IndexOutOfBoundsException can be thrown when the replacement is not correct for the regular expression.
replace in interface SearchReplaceControllerresult - SearchResult to replacereplacement - Replacement String
public int replaceAll(SearchReplaceController.SearchOptions searchOptions,
java.lang.String replacement)
SearchReplaceControllerReplaces all SearchResults that can be replaced with the given search options from the beginning to the end of the data.
If useRegexReplaceMode is enabled, IndexOutOfBoundsException can be thrown when the replacement is not correct for the regular expression.
replaceAll in interface SearchReplaceControllersearchOptions - Search options for the searchesreplacement - Replacement String
|
Gephi Toolkit Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||