Class TokenFilter.ContainsString

    • Constructor Detail

      • ContainsString

        public ContainsString()
    • Method Detail

      • setContains

        public void setContains​(java.lang.String contains)
        the contains attribute
        Parameters:
        contains - the string that the token should contain
      • filter

        public java.lang.String filter​(java.lang.String string)
        Filter strings that contain the contains attribute
        Specified by:
        filter in interface TokenFilter.Filter
        Parameters:
        string - the string to be filtered
        Returns:
        null if the string does not contain "contains", string otherwise