public class SearchSetting extends java.lang.Object
SearchAction)| Modifier and Type | Field and Description |
|---|---|
boolean |
allElements
true to include all objects (even incomplete and deleted ones) |
boolean |
caseSensitive
true to perform a case-sensitive search |
boolean |
mapCSSSearch
true to execute a MapCSS selector |
SearchMode |
mode
Search mode
|
boolean |
regexSearch
true to perform a regex-based search |
java.lang.String |
text
Search text
|
| Constructor and Description |
|---|
SearchSetting()
Constructs a new
SearchSetting. |
SearchSetting(SearchSetting original)
Constructs a new
SearchSetting from an existing one. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
static SearchSetting |
readFromString(java.lang.String s)
Transforms a string following a certain format, namely "[R | A | D | S][C?,R?,A?,M?] [a-zA-Z]"
where the first part defines the mode of the search, see
SearchMode, the second defines
a set of attributes within the SearchSetting class and the second is the search query. |
java.lang.String |
toString() |
java.lang.String |
writeToString()
Builds a string representation of the
SearchSetting object,
see readFromString(String) for more details. |
public java.lang.String text
public SearchMode mode
public boolean caseSensitive
true to perform a case-sensitive searchpublic boolean regexSearch
true to perform a regex-based searchpublic boolean mapCSSSearch
true to execute a MapCSS selectorpublic boolean allElements
true to include all objects (even incomplete and deleted ones)public SearchSetting()
SearchSetting.public SearchSetting(SearchSetting original)
SearchSetting from an existing one.original - original search settingspublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static SearchSetting readFromString(java.lang.String s)
Transforms a string following a certain format, namely "[R | A | D | S][C?,R?,A?,M?] [a-zA-Z]"
where the first part defines the mode of the search, see SearchMode, the second defines
a set of attributes within the SearchSetting class and the second is the search query.
Attributes are as follows:
For example, "RC type:node" is a valid string representation of an object that replaces the current selection, is case sensitive and searches for all objects of type node.
s - A string representation of a SearchSetting object
from which the object must be built.SearchSetting defined by the input string.public java.lang.String writeToString()
SearchSetting object,
see readFromString(String) for more details.SearchSetting object.