Class SplitValueFilter

  • All Implemented Interfaces:
    ValueFilter

    @UnitTest
    public class SplitValueFilter
    extends java.lang.Object
    implements ValueFilter
    splits any resolved value around matches of a regular expression (only if the value is of type String)
    • Field Detail

      • SPLIT_PARAM_DEFAULT_VALUE

        public static final boolean SPLIT_PARAM_DEFAULT_VALUE
        See Also:
        Constant Field Values
      • SPLIT_REGEX_PARAM

        public static final java.lang.String SPLIT_REGEX_PARAM
        See Also:
        Constant Field Values
      • SPLIT_REGEX_PARAM_DEFAULT_VALUE

        public static final java.lang.String SPLIT_REGEX_PARAM_DEFAULT_VALUE
        See Also:
        Constant Field Values
    • Constructor Detail

      • SplitValueFilter

        public SplitValueFilter()
    • Method Detail

      • doFilter

        public java.lang.Object doFilter​(IndexerBatchContext batchContext,
                                         IndexedProperty indexedProperty,
                                         java.lang.Object value)
        Specified by:
        doFilter in interface ValueFilter
        Parameters:
        batchContext - - The batch context
        indexedProperty - - The indexed properties that should contains the Bean Id of the formatter bean
        value - - The object to apply Split on in case in case it is of type String
        Returns:
        Returns the same value Object in case it is not string and in case it is string return List of the splitted values