Instances of ISearchCondition
are grouped under a single Search. Each condition is connected with the others of the search through the value of isAndSearch()
, such as:
- If TRUE, News have to match this Condition
- If FALSE, News that dont match this Condition have to match at least any other Condition that returns FALSE, or ALL Conditions that return TRUE on a call to
isAndSearch()
The condition contains the affected ISearchField
, which maps to a specific Field in the persistance layer.
The specififer maps to an Enumeration of possible values. They describe how the Search-Value should be used while searching. Some values are "is", "is not" and "begins with".
Last but not least, a call to getValue()
returns the value of this condition.
Example of a SearchCondition: "Title is'nt 'RSSOwl'"
where:
- Title belongs to
ISearchField
- is'nt belongs to
ISearchSpecifier
- 'RSSOwl' is returned by
getValue()
A group of search-conditions may or may not be related to a ISearchMark
. If they are related, that basically means that the search is stored in the persistance-layer and is displayed in the List of Marks.
@author bpasero