public class SearchSetting extends java.lang.Object
SearchAction)| Modifier and Type | Field and Description |
|---|---|
boolean |
allElements |
boolean |
caseSensitive |
boolean |
mapCSSSearch |
SearchMode |
mode |
boolean |
regexSearch |
java.lang.String |
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
public boolean regexSearch
public boolean mapCSSSearch
public boolean allElements
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.