Class OptionalParamSnIndexerValueProcessor
- java.lang.Object
-
- de.hybris.platform.searchservices.indexer.service.impl.OptionalParamSnIndexerValueProcessor
-
- All Implemented Interfaces:
SnIndexerValueProcessor
public class OptionalParamSnIndexerValueProcessor extends java.lang.Object implements SnIndexerValueProcessor
Implementation ofSnIndexerValueProviderthat throws and exception for non optional fields without values.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOPTIONAL_PARAMstatic booleanOPTIONAL_PARAM_DEFAULT_VALUE
-
Constructor Summary
Constructors Constructor Description OptionalParamSnIndexerValueProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisOptional(SnIndexerFieldWrapper fieldWrapper)java.lang.Objectprocess(SnIndexerContext indexerContext, SnIndexerFieldWrapper fieldWrapper, java.lang.Object source)
-
-
-
Field Detail
-
OPTIONAL_PARAM
public static final java.lang.String OPTIONAL_PARAM
- See Also:
- Constant Field Values
-
OPTIONAL_PARAM_DEFAULT_VALUE
public static final boolean OPTIONAL_PARAM_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public java.lang.Object process(SnIndexerContext indexerContext, SnIndexerFieldWrapper fieldWrapper, java.lang.Object source) throws SnIndexerException
- Specified by:
processin interfaceSnIndexerValueProcessor- Parameters:
indexerContext- - the indexer contextfieldWrapper- - the field wrapper- Returns:
- the processed value
- Throws:
SnIndexerException
-
isOptional
protected boolean isOptional(SnIndexerFieldWrapper fieldWrapper)
-
-