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 TypeMethodDescriptionbooleanhasValue()Determines if a real value (not the none one) has been selectedbooleanDetermines 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:
trueif an empty value request is necessary,falseotherwise
-
hasValue
Determines if a real value (not the none one) has been selected- Returns:
trueif a value has been selected,falseotherwise
-
toString
- Overrides:
toStringin classWrappedValue
-