Class SearchServiceCriterionMode.CriterionWrappedValue
java.lang.Object
org.ametys.cms.search.advanced.WrappedValue
org.ametys.web.frontoffice.search.instance.model.SearchServiceCriterionMode.CriterionWrappedValue
- Enclosing class:
SearchServiceCriterionMode
A
WrappedValue
, being the return type of SearchServiceCriterionMode.getValue(org.ametys.web.frontoffice.search.instance.model.SearchServiceCriterion<T>, java.util.Map<java.lang.String, java.lang.Object>, java.util.Map<java.lang.String, java.lang.Object>)
. It can notify for enumerated criteria if empty value need to be requested, through requestEmptyValue()
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasValue()
Determines if a real value (not the none one) has been selectedboolean
Determines if an empty value request is necessary An empty value request is necessary if the wrapped value is from enumerated and not mandatory data, or if the user has selected none or all values for restricted user input.toString()
Methods inherited from class org.ametys.cms.search.advanced.WrappedValue
getValue, setValue
-
Method Details
-
requestEmptyValue
Determines if an empty value request is necessary An empty value request is necessary if the wrapped value is from enumerated and not mandatory data, or if the user has selected none or all values for restricted user input.- Returns:
true
if an empty value request is necessary,false
otherwise
-
hasValue
Determines if a real value (not the none one) has been selected- Returns:
true
if a value has been selected,false
otherwise
-
toString
- Overrides:
toString
in classWrappedValue
-