Package org.ctan.site.services.search
Class QueryContainer
java.lang.Object
org.ctan.site.services.search.QueryContainer
This class is a command object for passing search relevant parameters to the
SearchService and keeping the associated search results.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class represents a hit of the search. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe methodgetLocale
provides means to get the language of the fallback if the locale is null.boolean
The methodhasType
provides means to retrieve a type for a given key.The methodresetHits
provides means to reinitialise the hits.The methodsetType
provides means to set the value of a given type.
-
Constructor Details
-
QueryContainer
public QueryContainer()
-
-
Method Details
-
getLocale
The methodgetLocale
provides means to get the language of the fallback if the locale is null.- Parameters:
fallback
- the fallback value- Returns:
- null-safe locale
-
hasType
The methodhasType
provides means to retrieve a type for a given key.- Parameters:
key
- the key- Returns:
- the matching type
-
resetHits
The methodresetHits
provides means to reinitialise the hits.- Returns:
- this
-
setType
The methodsetType
provides means to set the value of a given type.- Parameters:
key
- the key of the typevalue
- the value of the type- Returns:
- the old value
-