Class ReplaceTagger.Replacement

    • Method Detail

      • getToField

        public String getToField()
      • getToValue

        public String getToValue()
      • isRegex

        @Deprecated
        public boolean isRegex()
        Deprecated.
      • isWholeMatch

        @Deprecated
        public boolean isWholeMatch()
        Deprecated.
      • isReplaceAll

        @Deprecated
        public boolean isReplaceAll()
        Deprecated.
      • isCaseSensitive

        @Deprecated
        public boolean isCaseSensitive()
        Deprecated.
      • setFromField

        @Deprecated
        public void setFromField​(String fromField)
        Deprecated.
      • setFromValue

        @Deprecated
        public void setFromValue​(String fromValue)
        Deprecated.
      • setToField

        public void setToField​(String toField)
        Sets the field to store the replaced value.
        Parameters:
        toField - field to store the replaced value
        Since:
        2.2.0
      • setToValue

        public void setToValue​(String toValue)
        Sets the replacement value.
        Parameters:
        toValue - the replacement value
        Since:
        2.2.0
      • setRegex

        @Deprecated
        public void setRegex​(boolean regex)
        Deprecated.
      • setCaseSensitive

        @Deprecated
        public void setCaseSensitive​(boolean caseSensitive)
        Deprecated.
      • setWholeMatch

        @Deprecated
        public void setWholeMatch​(boolean wholeMatch)
        Deprecated.
      • setReplaceAll

        @Deprecated
        public void setReplaceAll​(boolean replaceAll)
        Deprecated.
      • getOnSet

        public PropertySetter getOnSet()
        Gets the property setter to use when a value is set.
        Returns:
        property setter
        Since:
        3.0.0
      • setOnSet

        public void setOnSet​(PropertySetter onSet)
        Sets the property setter to use when a value is set.
        Parameters:
        onSet - property setter
        Since:
        3.0.0
      • isDiscardUnchanged

        public boolean isDiscardUnchanged()
        Gets whether to discard values that did not change as a result of the replacement attempt.
        Returns:
        true if discarding unchanged values
        Since:
        3.0.0
      • setDiscardUnchanged

        public void setDiscardUnchanged​(boolean discardUnchanged)
        Sets whether to discard values that did not change as a result of the replacement attempt.
        Parameters:
        discardUnchanged - true if discarding unchanged values
        Since:
        3.0.0
      • getFieldMatcher

        public TextMatcher getFieldMatcher()
        Gets field matcher.
        Returns:
        field matcher
        Since:
        3.0.0
      • setFieldMatcher

        public void setFieldMatcher​(TextMatcher fieldMatcher)
        Sets field matcher.
        Parameters:
        fieldMatcher - field matcher
        Since:
        3.0.0
      • getValueMatcher

        public TextMatcher getValueMatcher()
        Gets value matcher.
        Returns:
        value matcher
        Since:
        3.0.0
      • setValueMatcher

        public void setValueMatcher​(TextMatcher valueMatcher)
        Sets value matcher.
        Parameters:
        valueMatcher - value matcher
        Since:
        3.0.0
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object