Package com.saperion.settings
Class SettingSearchInfo
java.lang.Object
com.saperion.settings.SettingSearchInfo
- All Implemented Interfaces:
Serializable
Defines how to search for a setting. Searching is possible for name, section or both.
A search is possible for one setting-type (long/regular) at a time only.
Name and section are not case-sensitive.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SettingSearchInfo
create()
getName()
boolean
isLong()
boolean
isValid()
longSetting
(boolean longSetting) Whether to search for long or for regular settings.name
(String name, SettingSearchInfo.MatchKind matchKind) Sets the name to search for and the match kind to search with.section
(String section, SettingSearchInfo.MatchKind matchKind) Sets the section to search for and the match kind to search with.toString()
-
Method Details
-
create
- Returns:
- new empty
SettingSearchInfo
-
name
Sets the name to search for and the match kind to search with.- Parameters:
name
- name to search formatchKind
- match-kind for the given setting name- Returns:
- current
SettingSearchInfo
instance
-
section
Sets the section to search for and the match kind to search with.- Parameters:
section
- section to search formatchKind
- match-kind for the given section name- Returns:
- current
SettingSearchInfo
instance
-
longSetting
Whether to search for long or for regular settings. Default is false (regular setting).- Parameters:
longSetting
- if true, search will be performed to long settings- Returns:
- current
SettingSearchInfo
instance
-
getName
- Returns:
- the name to search for
-
getNameMatchkind
- Returns:
- the match-kind for name matching.
-
getSection
- Returns:
- the section to search for
-
getSectionMatchkind
- Returns:
- the match-kind for section matching.
-
isLong
public boolean isLong()- Returns:
- whether to search for long or regular settings
-
isValid
public boolean isValid()- Returns:
- true if this is a valid
SettingSearchInfo
, which means that either name or section contain a value that is not null or empty.
-
toString
-