Class EnumPropertyValueExtractor
java.lang.Object
io.jmix.search.index.mapping.propertyvalue.impl.AbstractPropertyValueExtractor
io.jmix.search.index.mapping.propertyvalue.impl.EnumPropertyValueExtractor
- All Implemented Interfaces:
- PropertyValueExtractor
@Component("search_EnumPropertyValueExtractor")
public class EnumPropertyValueExtractor
extends AbstractPropertyValueExtractor
- 
Field SummaryFieldsFields inherited from class io.jmix.search.index.mapping.propertyvalue.impl.AbstractPropertyValueExtractorobjectMapper
- 
Constructor SummaryConstructorsConstructorDescriptionEnumPropertyValueExtractor(Messages messages, CoreProperties coreProperties) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanisSupported(Object entity, MetaPropertyPath propertyPath, Map<String, Object> parameters) Checks if this value mapper supports value extraction of provided property.protected com.fasterxml.jackson.databind.JsonNodetransformMultipleValues(Iterable<?> values, Map<String, Object> parameters) Transform extracted value of multi-value property into result json.protected com.fasterxml.jackson.databind.JsonNodetransformSingleValue(Object value, Map<String, Object> parameters) Transform extracted value of single-value property into result json.Methods inherited from class io.jmix.search.index.mapping.propertyvalue.impl.AbstractPropertyValueExtractorgetFlatValueOrNull, getValue, isCollection, processValue
- 
Field Details- 
messages
- 
coreProperties
 
- 
- 
Constructor Details- 
EnumPropertyValueExtractor
 
- 
- 
Method Details- 
isSupportedprotected boolean isSupported(Object entity, MetaPropertyPath propertyPath, Map<String, Object> parameters) Description copied from class:AbstractPropertyValueExtractorChecks if this value mapper supports value extraction of provided property.- Specified by:
- isSupportedin class- AbstractPropertyValueExtractor
- Parameters:
- entity- instance
- propertyPath- property
- parameters- parameters
- Returns:
- true if value mapper supports this property, false otherwise
 
- 
transformSingleValueprotected com.fasterxml.jackson.databind.JsonNode transformSingleValue(Object value, Map<String, Object> parameters) Description copied from class:AbstractPropertyValueExtractorTransform extracted value of single-value property into result json.- Specified by:
- transformSingleValuein class- AbstractPropertyValueExtractor
- Parameters:
- value- value of single-value property
- parameters- parameters
- Returns:
- value as json
 
- 
transformMultipleValuesprotected com.fasterxml.jackson.databind.JsonNode transformMultipleValues(Iterable<?> values, Map<String, Object> parameters) Description copied from class:AbstractPropertyValueExtractorTransform extracted value of multi-value property into result json.- Specified by:
- transformMultipleValuesin class- AbstractPropertyValueExtractor
- Parameters:
- values- values of multi-value property
- parameters- parameters
- Returns:
- value as json
 
 
-